for a route like /company/:company_id/child_resource/id i do something like:
class ChildResourceController(BaseController):
def _get_method_args(self):
args = BaseController._get_method_args(self)
args['campaign'] = model.Company.get(args['campaign_id'])
return args
def myaction(self, company, id):
...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---