Skip to content
This repository has been archived by the owner on Mar 8, 2018. It is now read-only.

Parameterized paths for actions #1

Open
rtyler opened this issue Jan 5, 2010 · 0 comments
Open

Parameterized paths for actions #1

rtyler opened this issue Jan 5, 2010 · 0 comments

Comments

@rtyler
Copy link
Owner

rtyler commented Jan 5, 2010

I'd like to be able to specify an action like:

 class home(controller.BaseController):
      @controller.action(paths=('/site/[int]',))
      def site(self, site_id,  **kwargs):
           pass

Whereas the "int" parameter becomes a positional argument in the dispatching of the function

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant