On Nov 6, 4:44 pm, Alberto Valverde <[EMAIL PROTECTED]> wrote:
> Humberto Diógenes wrote:
>
> >  http://localhost/location/edit?location_id=123
>
> > class LocationController(BaseController):
> >     def edit(self, location_id):
> >         return 'Editing %s' % location_id
>
> >   TypeError: edit() takes exactly 2 arguments (1 given)
>
> Yes, pull location_id from the request GET parameters:
>
> employment_id = request.GET.get('employment_id')

Thanks, Alberto. But as I said, I'm trying to port an old application
-- that means I would have to add one request.GET line for every
parameter in every controller function (and then remove all parameters
from the function signature).

I could do that, but what I'd really like to know is this: does Pylons
support query string "parameter injection"? If not, how difficult
would it be to implement that?

--
Humberto Diógenes
http://humberto.digi.com.br


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to