[Zope-dev] After migrate to 2.10.1 ManagableIndex throws
TraversalErrors
Ian McCracken
ian at zenoss.com
Wed Jan 24 15:02:54 EST 2007
I'm migrating the Zenoss code to Zope 2.10.1. I've moved to Five 1.5.1,
CMFCore 1.6.2. Does anyone know if there's a quick fix for this problem?
Traceback (most recent call last):
File "/usr/local/zenoss/Products/ZenEvents/zenxevent.py", line 87, in ?
z = ZenXEvent()
File "/usr/local/zenoss/Products/ZenEvents/zenxevent.py", line 37, in __init__
EventServer.__init__(self)
File "/usr/local/zenoss/Products/ZenEvents/EventServer.py", line 69, in __init__
component=self.name))
File "/usr/local/zenoss/Products/ZenEvents/EventServer.py", line 105, in sendEvent
self.zem.sendEvent(evt)
File "/usr/local/zenoss/Products/ZenEvents/MySqlSendEvent.py", line 52, in sendEvent
event = self.applyEventContext(event)
File "/usr/local/zenoss/Products/ZenEvents/MySqlSendEvent.py", line 141, in applyEventContext
device = devices.findDevice(evt.device)
File "/usr/local/zenoss/Products/ZenModel/DeviceClass.py", line 351, in findDevice
ret = self._getCatalog().evalAdvancedQuery(query)
File "/usr/local/zenoss/Products/AdvancedQuery/eval.py", line 40, in eval
rs = _eval(query, cat)
File "/usr/local/zenoss/Products/AdvancedQuery/eval.py", line 16, in _eval
rs = query._eval(_QueryContext(cat))
File "/usr/local/zenoss/Products/AdvancedQuery/AdvancedQuery.py", line 82, in _eval
return context._applyIndex(self, term)
File "/usr/local/zenoss/Products/AdvancedQuery/AdvancedQuery.py", line 276, in _applyIndex
return _wrapLookup(cat.indexes[index].__of__(cat)._apply_index({index:spec})[0])
File "/usr/local/zenoss/Products/ManagableIndex/ManagableIndex.py", line 332, in _apply_index
t = prenorm(t, None)
File "/usr/local/zenoss/Products/ManagableIndex/ManagableIndex.py", line 570, in _prenormalizeTerm
return normalizer._normalize(value, object)
File "/usr/local/zenoss/Products/ManagableIndex/Evaluation.py", line 132, in _normalize
return evaluator._evaluate(value,object)
File "/usr/local/zenoss/Products/ManagableIndex/Evaluation.py", line 86, in _evaluate
v= EvalAndCall.inheritedAttribute('_evaluate')(self,value,object)
File "/usr/local/zenoss/Products/ManagableIndex/Evaluation.py", line 58, in _evaluate
return expr(context)
File "usr/local/zenoss/lib/python/zope/tales/expressions.py", line 217, in __call__
File "usr/local/zenoss/lib/python/Products/PageTemplates/Expressions.py", line 122, in _eval
File "usr/local/zenoss/lib/python/zope/tales/expressions.py", line 124, in _eval
File "usr/local/zenoss/lib/python/Products/PageTemplates/Expressions.py", line 74, in boboAwareZopeTraverse
File "usr/local/zenoss/lib/python/zope/traversing/adapters.py", line 161, in traversePathElement
zope.traversing.interfaces.TraversalError: ('No traversable adapter found', 'captainapollo')
I've been told it may involve a rewrite of ManagableIndex to use Zope 3
adapters...any thoughts?
Ian McCracken
Zenoss, Inc.
More information about the Zope-Dev
mailing list