Since __before__ isn't working i've cleaned up the patch_controller code
to be:
def patch_controller(c, f, hook_name = 'before_call'):
for name,m in inspect.getmembers(c, iscontroller):
Decoration.get_decoration(m).register_hook(hook_name, f)
return c
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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?hl=en
-~----------~----~----~----~------~----~------~--~---