[solved] ComponentLookupError: (<InterfaceClass getpaid.core.interfaces.IShoppingCartUtility>, '')

0 views
Skip to first unread message

lucielejard

unread,
Jan 16, 2008, 12:21:01 PM1/16/08
to getpaid-dev
I took the latest changes of getpaid and had the following error when
accessing my test site:

2008-01-16 12:07:35 ERROR root Exception while rendering an error
message
Traceback (most recent call last):
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
zope2/lib/python/OFS/SimpleItem.py", line 223, in
raise_standardErrorMessage
v = s(**kwargs)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
plone/CMFCore/FSPythonScript.py", line 108, in __call__
return Script.__call__(self, *args, **kw)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
zope2/lib/python/Shared/DC/Scripts/Bindings.py", line 311, in __call__
return self._bindAndExec(args, kw, None)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
zope2/lib/python/Shared/DC/Scripts/Bindings.py", line 348, in
_bindAndExec
return self._exec(bound_data, args, kw)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
plone/CMFCore/FSPythonScript.py", line 164, in _exec
result = f(*args, **kw)
File "Script (Python)", line 25, in standard_error_message
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
zope2/lib/python/Shared/DC/Scripts/Bindings.py", line 311, in __call__
return self._bindAndExec(args, kw, None)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
zope2/lib/python/Shared/DC/Scripts/Bindings.py", line 348, in
_bindAndExec
return self._exec(bound_data, args, kw)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
plone/CMFCore/FSPageTemplate.py", line 195, in _exec
result = self.pt_render(extra_context=bound_names)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/
develop-products/CacheSetup/patch_cmf.py", line 18, in FSPT_pt_render
return call_pattern(self, 'pt_render',
'__CacheSetup_FSPageTemplate_%s__', source, extra_context)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/
develop-products/CacheSetup/patch_utils.py", line 9, in call_pattern
return getattr(self, pattern % __name__)(*args, **kw)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
plone/CMFCore/FSPageTemplate.py", line 134, in pt_render
result = FSPageTemplate.inheritedAttribute('pt_render')(
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/
develop-products/CacheSetup/patch_cmf.py", line 56, in PT_pt_render
return call_pattern(self, 'pt_render', '__CacheSetup_PageTemplate_
%s__', source, extra_context)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/
develop-products/CacheSetup/patch_utils.py", line 9, in call_pattern
return getattr(self, pattern % __name__)(*args, **kw)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
zope2/lib/python/Products/PageTemplates/PageTemplate.py", line 104, in
pt_render
tal=not source, strictinsert=0)()
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
zope2/lib/python/TAL/TALInterpreter.py", line 238, in __call__
self.interpret(self.program)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
zope2/lib/python/TAL/TALInterpreter.py", line 281, in interpret
handlers[opcode](self, args)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
zope2/lib/python/TAL/TALInterpreter.py", line 749, in do_useMacro
self.interpret(macro)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
zope2/lib/python/TAL/TALInterpreter.py", line 281, in interpret
handlers[opcode](self, args)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
zope2/lib/python/TAL/TALInterpreter.py", line 457, in do_optTag_tal
self.do_optTag(stuff)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
zope2/lib/python/TAL/TALInterpreter.py", line 442, in do_optTag
return self.no_tag(start, program)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
zope2/lib/python/TAL/TALInterpreter.py", line 437, in no_tag
self.interpret(program)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
zope2/lib/python/TAL/TALInterpreter.py", line 281, in interpret
handlers[opcode](self, args)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
zope2/lib/python/TAL/TALInterpreter.py", line 749, in do_useMacro
self.interpret(macro)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
zope2/lib/python/TAL/TALInterpreter.py", line 281, in interpret
handlers[opcode](self, args)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
zope2/lib/python/TAL/TALInterpreter.py", line 507, in do_setLocal_tal
self.engine.setLocal(name, self.engine.evaluateValue(expr))
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
zope2/lib/python/Products/PageTemplates/TALES.py", line 221, in
evaluate
return expression(self)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
zope2/lib/python/Products/PageTemplates/Expressions.py", line 185, in
__call__
return self._eval(econtext)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
zope2/lib/python/Products/PageTemplates/Expressions.py", line 180, in
_eval
return render(ob, econtext.vars)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
zope2/lib/python/Products/PageTemplates/Expressions.py", line 85, in
render
ob = ob()
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
plone/CMFPlone/browser/plone.py", line 66, in globalize
self._initializeData(options=options)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
plone/CMFPlone/browser/plone.py", line 118, in _initializeData
self._data['actions'] = actions = (options.get('actions', None) or
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
plone/CMFPlone/ActionsTool.py", line 47, in listFilteredActionsFor
self._getActions(provider_name, actions, object)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
plone/CMFPlone/ActionsTool.py", line 34, in _getActions
actions.extend( provider.listActionInfos(object=object) )
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
plone/CMFCore/ActionProviderBase.py", line 107, in listActionInfos
if check_condition and not ai['available']:
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
plone/CMFCore/ActionInformation.py", line 87, in __getitem__
value = self.data[key] = value()
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
plone/CMFCore/ActionInformation.py", line 116, in _checkCondition
return self._action.testCondition(self._ec)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
plone/CMFCore/ActionInformation.py", line 236, in testCondition
return bool( self.condition(ec) )
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
plone/CMFCore/Expression.py", line 44, in __call__
res = compiled(econtext)
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
zope2/lib/python/Products/PageTemplates/ZRPythonExpr.py", line 47, in
__call__
return eval(code, g, {})
File "Python expression "path('object/
@@getpaid_control').showManageCart()"", line 1, in <expression>
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/
develop-products/PloneGetPaid/browser/content.py", line 320, in
showManageCart
utility = component.getUtility( igetpaid.IShoppingCartUtility )
File "/Users/lucie/Documents/SFUProjects/wrj/getpaid.buildout/parts/
zope2/lib/python/zope/component/__init__.py", line 257, in getUtility
raise ComponentLookupError(interface, name)

This is because of:
http://groups.google.com/group/getpaid-changes/browse_thread/thread/ff50c5144473f3ba#b73181e9da5e36c6

The IShoppingCartUtility is now persistent and is registered on
startup and is no more in the zcml. To fix the problem, go to
portal_setup and run the PloneGetPaid profile steps.

Lucie

Christopher Johnson

unread,
Jan 16, 2008, 2:16:51 PM1/16/08
to getpa...@googlegroups.com
Ok, thanks for pointing this out. I documented the error and fix on documentation section:
http://plone.org/products/getpaid/documentation/error/componentlookuperror-interfaceclass-getpaid-core-interfaces-ishoppingcartutility

Cheers,
Chris

   result = FSPageTemplate.inheritedAttribute ('pt_render')(
   self.engine.setLocal (name, self.engine.evaluateValue(expr))



--
Cofounder and CEO
ifPeople - Innovation for People
www.ifpeople.net
t: 678-608-3408
130 Boulevard NE, #6
Atlanta, GA 30312
Reply all
Reply to author
Forward
0 new messages