Unless I'm missing something, the hook function is passed a string as
input but there isn't any way to actually manipulate the response. I
suppose a similar issues exists with before_render. I would have
patched run_hooks(), but I didn't want to step on the other hooks...
--- controllers.py (revision 5488)
+++ controllers.py (working copy)
@@ -114,7 +114,8 @@
controller.decoration.run_hooks('before_render', remainder,
params,
output)
response = self._render_response(controller, output)
- controller.decoration.run_hooks('after_render', response)
+ for func in controller.decoration.hooks['after_render']:
+ response = func(response)
return response
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---