[Zope-dev] Zope2 debug-mode vs ZCML dev-mode, ZCML conditionals
Hanno Schlichting
hanno at hannosch.eu
Tue Sep 15 02:38:45 EDT 2009
On Tue, Sep 15, 2009 at 8:00 AM, Thomas Lotze <tl at gocept.com> wrote:
> - Is Zope2 debug mode semantically equivalent to ZCML dev-mode, i.e.
> should the two be linked to each other in the first place?
I don't know what kind of functionality is usually switched on by the
zcml dev-mode. Are there any common examples?
Dev mode in Zope2 is turned on automatically if you run the process in
foreground mode and is very common to use. If any of the things
controlled by zcml dev mode affect performance or startup time in a
noticeable bad way, that would be worrying. If it's only additional
logging, development and debug helpers being switched on, that sounds
like the same type of functionality.
> - If so, is it a bug that ZCML dev-mode isn't controlled by Zope2 debug
> mode in a Five application? Or is it and we're just missing something?
Not a bug. Just not a feature implemented yet ;)
> - If the the two should be connected but aren't, what's the best way to
> fix things? Should this be fixed in Five? Otherwise, how to achieve
> switching on the ZCML dev-mode feature the right way?
I'd assume you'd need to add some logic into Five for this. Probably
register a different zcml handler for the directive as done for most
of the handlers.
I'd be +1 on this, if there's no performance or otherwise noticeable
drawback from it :)
Hanno
More information about the Zope-Dev
mailing list