Hello, In Zope 3 / BlueBream / Grok there is a ZCML feature devmode, that can let your register things only for development or production.
As far as I know it is not available in Zope 2 (where only Globals.DevelopmentMode, or App.config.getConfiguration()... is available). I don't think it is very difficult to add and I know that would make my code much more readable. Regards, Sylvain, -- Sylvain Viollon -- Infrae t +31 10 243 7051 -- http://infrae.com Hoevestraat 10 3033GC Rotterdam -- The Netherlands _______________________________________________ Zope-Dev maillist - [email protected] https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
