It is needed to update "legacy locations", e.g. copying config.instancehome to the INSTANCE_HOME built-in and into the environment. The debug_mode flag has a legacy location of Globals.DevelopmentMode.

Cheers,
Stefan

On 7. Jun 2006, at 14:28, Florent Guillaume wrote:

Stefan H. Holek wrote:
I use this to set debug-mode off:
    # Switch off debug mode
    import App.config
    config = App.config.getConfiguration()
    config.debug_mode = 0
    App.config.setConfiguration(config)

The setConfiguration() is probably unnecessary, you're modifying a mutable datastructure.

Florent

--
Anything that happens, happens.  --Douglas Adams


_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )

Reply via email to