Hi!
I use nested controllers in my TG2 project and have trouble using
authkits authorize decorator:
@expose(template="orms.templates.form")
@authorize(RemoteUser())
def show_edit_page_form(self,fill_by_page_label=None):
The decorator works fine in the RootController.
File '/Users/michael/programming/tg2/tg/controllers.py', line 162 in
_perform_call
output = controller(*remainder, **dict(params))
File '<string>', line 1 in <lambda>
File '/Users/michael/programming/AuthKit/authkit/authorize/
pylons_adaptors.py', line 32 in validate
return permission.check(app, request.environ, self.start_response)
AttributeError: 'PageController' object has no attribute
'start_response'
The controllers are nested in such a way
class RootController(BaseController):
page_editor=PageController()
Best regards,
Michael
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" 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/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---