temporarily needed hack, should move out with hooks refactoring
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 13 Aug 2009 11:06:07 +0200
changeset 2810 550dae61eb88
parent 2809 04fa75d43af4
child 2811 e1f3b8e7f19a
temporarily needed hack, should move out with hooks refactoring
server/serverconfig.py
--- a/server/serverconfig.py	Thu Aug 13 10:58:29 2009 +0200
+++ b/server/serverconfig.py	Thu Aug 13 11:06:07 2009 +0200
@@ -263,6 +263,8 @@
         except RegistryNotFound:
             return hooks
         for hookdef in apphookdefs:
+            # XXX < 3.5 bw compat
+            hookdef.__dict__['config'] = self
             for event, ertype in hookdef.register_to(vreg.schema):
                 if ertype == 'Any':
                     ertype = ''