-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11 Sep 2010, at 16:37, Freewind wrote:
I'm using pylons, and my action of controller is:

class UserController(BaseController):

     def create(self):
          name = request.POST['name']
          email = request.POST['email']
          password = request.POST['password']
          ...
But I found in turbogears, I can do like this:

class UserController:

     def create(self, name, email, password):
          ...
How to do the same in pylons?


This is covered in the Pylons documentation here:

http://pylonshq.com/docs/en/1.0/configuration/#url-configuration

the Routes documentation here:

http://routes.groovie.org/setting_up.html

and the routing and dispatch of URLs has a chapter of its own in the Pylons book:

http://pylonsbook.com/en/1.1/urls-routing-and-dispatch.html

- --
Cheers,

Graham

http://www.linkedin.com/in/ghiggins






-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAkyNFBIACgkQOsmLt1NhivwXqACbB/MYJ9WK9/yowk4XIW9AczGM
VuEAnRTJKBSnF3JgzikD9A86R6lVDU9riQCVAgUBTI0UElnrWVZ7aXD1AQJQdQP/
ZuCChKztjXpUUAfjUEDZd7LA4p02g8ROcP2BqgUxnexuIFzyHBxmKBZHSCv+1mS4
I13Hc2Ess8uhkNcyZWfe7P7OiLBBlEhzcIlmIFyLfOuVuLTwzk3rQb3K7xM60rt9
CD3Bu+9sAI01IESJsNA6AEss1dvWw6BV+dW7I5vMaSI=
=BZpr
-----END PGP SIGNATURE-----

--
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