[Zope-Coders] App.config.getConfiguration().debug_mode?

Chris Withers chrisw@nipltd.com
Mon, 19 May 2003 09:28:02 +0100


It isn't always there...

Can someone fix please?

cheers,

Chris

zope-tests@squishdot.org wrote:
> ======================================================================
> Python Version:2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)]
> 
> Modules included:
> Zope (HEAD)
> 
> Module testCatalog.py failed to load
> exceptions.AttributeError: DefaultConfiguration instance has no attribute 'debug_mode'
>   File "D:\ZopeTests\sandbox\Zope\utilities\testrunner.py", line 67, in getSuiteFromFile
>     module=imp.load_module(name, file, pathname, desc)
>   File "testCatalog.py", line 42, in ?
>     app = createDatabase()
>   File "testCatalog.py", line 26, in createDatabase
>     OFS.Application.import_products()
>   File "D:\ZopeTests\sandbox\Zope\lib\python\OFS\Application.py", line 510, in import_products
>     debug_mode = App.config.getConfiguration().debug_mode
> 
> 
> ----------------------------------------------------------------------
> Ran 2126 tests in 595.891s
> 
> OK
> 
> 
> _______________________________________________
> Zope-Coders mailing list
> Zope-Coders@zope.org
> http://mail.zope.org/mailman/listinfo/zope-coders
> 
>