Hi, I want to use pyramid to build a restful service, what I found is using the handler class, e.g. config.add_handler(’hello’, ’/users/{action}’, handler=Hello)
but what I want to get is: /users -> user.list /users/1 -> show user /users/new /users/1/edit /users/1 method = PUT to update /users/1 method=DELETE /users method=POST to create a new user ... Is there any way to do this? or I have to add the route for each view manually config.add_route('users', '/users/{id}') config.add_route('users', '/users/{id}/edit') config.add_route('users', '/users/{id}', DELETE) .... that would be a very long list. Is there any way to do this? Thanks -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-de...@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en.