Re: Zope 2.12 and Globals.DevelopmentMode

Hanno Schlichting <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
On Fri, Feb 5, 2010 at 2:35 PM, Sylvain Viollon <[email protected]> wrote:
>   Maybe I missed something, but it seems to me that
>   Globals.DevelopmentMode in Zope 2.12 is always False, even if you
>   start Zope in fg, or set debug-mode to on in the configuration file.

This works for me and DevelopmentMode is set correctly.

Make sure you don't try to get the value too early (like at module
scope import time) but after the server has actually started up. So
don't do: "from Globals import DevelopmentMode" but "import Globals;
Globals.DevelopmentMode". I think the exact timing of the startup
process is somewhat different compared to prior versions.

Hanno
_______________________________________________
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 )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.