Re: customize url for GET form

2010-09-03 Thread jean polo
ah ok, I was expecting something like that .. this is only for a *very* special case though, not for my normal form thingz.. thanks for all the advices ! cheers, _y On Sep 3, 6:39 pm, Tom Evans wrote: > On Fri, Sep 3, 2010 at 5:05 PM, jean polo wrote: > > ok sorry if I used a bad example with

Re: customize url for GET form

2010-09-03 Thread Tom Evans
On Fri, Sep 3, 2010 at 5:05 PM, jean polo wrote: > ok sorry if I used a bad example with id.. > I meant something like: > xx?bla=1,2,3,4 > > I got it working by using a special field ('bla') in my form which is > a CharField > then I parse bla: > arr = request.GET.get('bla').split(',') > if al

Re: customize url for GET form

2010-09-03 Thread jean polo
ok sorry if I used a bad example with id.. I meant something like: xx?bla=1,2,3,4 I got it working by using a special field ('bla') in my form which is a CharField then I parse bla: arr = request.GET.get('bla').split(',') if all items of arr are integers, I have my array of 'bla' =) cheers, _

Re: customize url for GET form

2010-09-03 Thread Alexandre González
Wel... but to do this, you must to catch the url and get from it... but really, with urls.py can you do that? Perhaps, with a regex line in urls.py as: (^\d+)?(/\d+)*/?$ you can get all the number style: http://url/1/2/3/4/5... but I don't know how do it exactly. On Fri, Sep 3, 2010 at 15:46, To

Re: customize url for GET form

2010-09-03 Thread Tom Evans
2010/9/3 Alexandre González : > I think that if you use id=1&id=2&id=3 you are overriding the id value... > It's no way to do that with GET > Au contraire: >>> from django.http import QueryDict >>> QueryDict('id=1&id=2&id=3') Cheers Tom -- You received this message because you are subscribe

Re: customize url for GET form

2010-09-03 Thread jean polo
well it was just to simplify some URLs but if you guys tell it's bad practice, I'll stick with it =) cheers, _j On Sep 3, 3:26 pm, Daniel Roseman wrote: > Why would you want to? The first is the standard HTTP method of > sending multiple items in a GET (and indeed in a POST, although you > don'

Re: customize url for GET form

2010-09-03 Thread Alexandre González
I think that if you use id=1&id=2&id=3 you are overriding the id value... It's no way to do that with GET On Fri, Sep 3, 2010 at 15:20, jean polo wrote: > hello > while using GET form, I can select several objects with an URL like: > xx?id=1&id=2&id=3 etc.. > > How could I have instead an UR

Re: customize url for GET form

2010-09-03 Thread Daniel Roseman
On Sep 3, 2:20 pm, jean polo wrote: > hello > while using GET form, I can select several objects with an URL like: > xx?id=1&id=2&id=3 etc.. > > How could I have instead an URL like that: > xx?id=1,2,3,4 etc... ?? > > Thanks, > _j Why would you want to? The first is the standard HTTP meth

customize url for GET form

2010-09-03 Thread jean polo
hello while using GET form, I can select several objects with an URL like: xx?id=1&id=2&id=3 etc.. How could I have instead an URL like that: xx?id=1,2,3,4 etc... ?? Thanks, _j -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to