changeset 4834 | b718626a0e60 |
parent 4699 | 8757fca2c308 |
child 4835 | 13b0b96d7982 |
--- a/server/hook.py Mon Mar 08 18:31:36 2010 +0100 +++ b/server/hook.py Mon Mar 08 19:02:35 2010 +0100 @@ -113,11 +113,8 @@ @lltrace def enabled_category(cls, req, **kwargs): if req is None: - # server startup / shutdown event - config = kwargs['repo'].config - else: - config = req.vreg.config - return config.is_hook_activated(cls) + return True # XXX how to deactivate server startup / shutdown event + return req.is_hook_activated(cls) @objectify_selector @lltrace