TG it's starting to get many hooks, due to past reasons they are implemented in a way that is not really efficient and a bit chaotic.
I think that as they are a good way to extend the framework and will probably only expand in the future it would be a good time to think of a way to refactor them. Possible way are: 1) Create tg.hooks and write a bunch of utilities to make hooks cleaner and easy to use for people that want to create new hooks to use inside their own application 2) Use an existing solution for hooks. If we want to follow the second way I would suggest going with blinker which is a solid solution used also by Flask and that already works with Python3. Both for me are fine and in both cases I would point at keeping interface compatibility with the current hooks, I just want to provide a clear way to register and fire hooks as currently there is an api to register for them (app_config.register_hook) but not any public way to fire them or create new ones. -- 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.
