Mostly from the Pylons QuickWiki Tutorial
Dispatches to alternate controller methods based on HTTP method
Multiple keyword arguments should be passed, with the keyword corresponding to the HTTP method to dispatch on (DELETE, POST, GET, etc.) and the value being the function to call. The value should be a string indicating the name of the function to dispatch to.
Example:
class SomeController(BaseController): @pylons.rest.dispatch_on(POST='create_comment') def comment(self): # Do something with the comment def create_comment(self, id): # Do something if its a post to comment
Something New
Ok so let's try something new.
- stop wiki madness
- to with trac
- integrate in d2r
Look for Something New
Return to the FrontPage | Edit QuickWiki | Title List
