[Zope-dev] Re: Unittests with different zope configuration?

2006-06-07 Thread Florent Guillaume
Zope core doesn't use the legacy locations anymore however, right? It would potentially impact only third-party products? Florent On 7 Jun 2006, at 14:47, Stefan H. Holek wrote: It is needed to update "legacy locations", e.g. copying config.instancehome to the INSTANCE_HOME built-in and into

[Zope-dev] Re: Unittests with different zope configuration?

2006-06-07 Thread Stefan H. Holek
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 wrot

Re: [Zope-dev] Re: Unittests with different zope configuration?

2006-06-07 Thread Andreas Jung
--On 7. Juni 2006 14:28:03 +0200 Florent Guillaume <[EMAIL PROTECTED]> 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

[Zope-dev] Re: Unittests with different zope configuration?

2006-06-07 Thread Florent Guillaume
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 da

Re: [Zope-dev] Re: Unittests with different zope configuration?

2006-06-07 Thread Andreas Jung
--On 7. Juni 2006 08:50:41 -0230 Rocky Burt <[EMAIL PROTECTED]> wrote: On Wed, 2006-07-06 at 12:04 +0200, 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 A

[Zope-dev] Re: Unittests with different zope configuration?

2006-06-07 Thread Rocky Burt
On Wed, 2006-07-06 at 12:04 +0200, 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) Oh wow, this trick should c