[zope2-tracker] [Bug 181956] [NEW] TypeError in Five fiveconfigure.py
Launchpad Bug Tracker
181956 at bugs.launchpad.net
Sun Sep 12 10:32:09 EDT 2010
You have been subscribed to a public bug:
In Five/fiveconfigure.py with Zope 2.9.8, when there is a zcml error in
a Product that Five tries to initialise, this error is raised:
2008-01-11T18:56:23 ERROR Zope Couldn't install Five
Traceback (most recent call last):
File "/home/dixond/zope/app/zope-2.9.8/lib/python/OFS/Application.py", line 783, in install_product
initmethod(context)
File "/home/dixond/zope/app/zope-2.9.8/lib/python/Products/Five/__init__.py", line 29, in initialize
zcml.load_site()
File "/home/dixond/zope/app/zope-2.9.8/lib/python/Products/Five/zcml.py", line 41, in load_site
_context = xmlconfig.file(file)
File "/home/dixond/zope/app/zope-2.9.8/lib/python/zope/configuration/xmlconfig.py", line 558, in file
include(context, name, package)
File "/home/dixond/zope/app/zope-2.9.8/lib/python/zope/configuration/xmlconfig.py", line 494, in include
processxmlfile(f, context)
File "/home/dixond/zope/app/zope-2.9.8/lib/python/zope/configuration/xmlconfig.py", line 349, in processxmlfile
parser.parse(src)
File "/home/dixond/zope/app/python-2.4.4/lib/python2.4/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/home/dixond/zope/app/python-2.4.4/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/home/dixond/zope/app/python-2.4.4/lib/python2.4/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/home/dixond/zope/app/python-2.4.4/lib/python2.4/xml/sax/expatreader.py", line 348, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/home/dixond/zope/app/zope-2.9.8/lib/python/zope/configuration/xmlconfig.py", line 328, in endElementNS
self.context.end()
File "/home/dixond/zope/app/zope-2.9.8/lib/python/zope/configuration/config.py", line 544, in end
self.stack.pop().finish()
File "/home/dixond/zope/app/zope-2.9.8/lib/python/zope/configuration/config.py", line 692, in finish
actions = self.handler(context, **args)
File "/home/dixond/zope/app/zope-2.9.8/lib/python/Products/Five/fiveconfigure.py", line 88, in loadProducts
handleBrokenProduct(product)
File "/home/dixond/zope/app/zope-2.9.8/lib/python/Products/Five/fiveconfigure.py", line 66, in handleBrokenProduct
logger.error('Could not import Product %s' % product.__name__, error=True)
File "/home/dixond/zope/app/python-2.4.4/lib/python2.4/logging/__init__.py", line 999, in error
apply(self._log, (ERROR, msg, args), kwargs)
ZopeXMLConfigurationError: File "/home/dixond/zope/app/zope-2.9.8/lib/python/Products/Five/skel/site.zcml", line 13.2-13.23
TypeError: _log() got an unexpected keyword argument 'error'
This is because the original zLOG logger was changed for the python logger library, and the zLOG keyword argument 'error=True' was left behind in the handleBrokenProduct() function. This has been corrected in HEAD, but in persists in the latest 2.9.x Zope releases.
** Affects: zope2
Importance: Undecided
Status: Invalid
--
TypeError in Five fiveconfigure.py
https://bugs.launchpad.net/bugs/181956
You received this bug notification because you are a member of Zope 2 Developers, which is subscribed to Zope 2.
More information about the zope2-tracker
mailing list