[Zope-dev] Re: Unittests with different zope configuration?
Florent Guillaume
fg at nuxeo.com
Wed Jun 7 08:28:03 EDT 2006
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
--
Florent Guillaume, Nuxeo (Paris, France) Director of R&D
+33 1 40 33 71 59 http://nuxeo.com fg at nuxeo.com
More information about the Zope-Dev
mailing list