RajatShukla / getpaid

Automatically exported from code.google.com/p/getpaid
0 stars 0 forks source link

making a Plone Folder a collective.lineage "child site" results in getpaid ComponentLookupError #296

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. install getpaid & collective.lineage
2. add a Plone Folder -- NOT Affiliated with getpaid -- i.e. this folder is 
just a regular folder container not related to getpaid
3. select Sub-type = Child Site
4. Error occurs immediately after selecting "Child Site" -- ComponentLookupError

What is the expected output? What do you see instead?

What version of the product are you using? On what version of Plone? How
did you install it (tarball vs buildout vs...)?

customized getpaid.recipe.release-2.1-py2.4.egg to install latest getpaid 
releases and dependencies:
  getpaid.core-0.9.0 
  PloneGetPaid-0.10.1

Please provide any additional information below.

Exception Type      ComponentLookupError
Exception Value     (<ATFolder at /Plone/business-services>, <InterfaceClass 
getpaid.core.interfaces.IPaymentProcessor>, 'Testing Processor')

Traceback (innermost last):
  Module ZPublisher.Publish, line 119, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 42, in call_object
  Module Shared.DC.Scripts.Bindings, line 313, in __call__
  Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
  Module Products.CMFCore.FSPageTemplate, line 216, in _exec
  Module Products.CMFCore.FSPageTemplate, line 155, in pt_render
  Module Products.PageTemplates.PageTemplate, line 98, in pt_render
  Module zope.pagetemplate.pagetemplate, line 117, in pt_render
  Module zope.tal.talinterpreter, line 271, in __call__
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 891, in do_useMacro
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 536, in do_optTag_tal
  Module zope.tal.talinterpreter, line 521, in do_optTag
  Module zope.tal.talinterpreter, line 516, in no_tag
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 957, in do_defineSlot
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 536, in do_optTag_tal
  Module zope.tal.talinterpreter, line 521, in do_optTag
  Module zope.tal.talinterpreter, line 516, in no_tag
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 861, in do_defineMacro
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 534, in do_optTag_tal
  Module zope.tal.talinterpreter, line 516, in no_tag
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 745, in do_insertStructure_tal
  Module Products.PageTemplates.Expressions, line 223, in evaluateStructure
  Module zope.tales.tales, line 696, in evaluate
   - URL: file:/usr/local/Plone/buildout-cache/eggs/Plone-3.3.5-py2.4.egg/Products/CMFPlone/skins/plone_templates/main_template.pt
   - Line 114, Column 18
   - Expression: <StringExpr u'plone.contentviews'>
   - Names:
      {'container': <PloneSite at /Plone>,
       'context': <ATFolder at /Plone/business-services>,
       'default': <object object at 0x7ff307a4e1f0>,
       'here': <ATFolder at /Plone/business-services>,
       'loop': {},
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xe8efea8>,
       'request': <HTTPRequest, URL=http://207.134.1.54:8080/Plone/business-services/folder_listing>,
       'root': <Application at >,
       'template': <FSPageTemplate at /Plone/folder_listing used for /Plone/business-services>,
       'traverse_subpath': [],
       'user': <PropertiedUser 'admin'>}
  Module Products.Five.browser.providerexpression, line 37, in __call__
  Module plone.app.viewletmanager.manager, line 154, in render
  Module plone.app.viewletmanager.manager, line 83, in render
  Module plone.app.layout.viewlets.common, line 44, in render
  Module Shared.DC.Scripts.Bindings, line 313, in __call__
  Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
  Module Products.PageTemplates.PageTemplateFile, line 129, in _exec
  Module Products.PageTemplates.PageTemplate, line 98, in pt_render
  Module zope.pagetemplate.pagetemplate, line 117, in pt_render
  Module zope.tal.talinterpreter, line 271, in __call__
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 855, in do_condition
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 536, in do_optTag_tal
  Module zope.tal.talinterpreter, line 521, in do_optTag
  Module zope.tal.talinterpreter, line 516, in no_tag
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 534, in do_optTag_tal
  Module zope.tal.talinterpreter, line 516, in no_tag
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 745, in do_insertStructure_tal
  Module Products.PageTemplates.Expressions, line 223, in evaluateStructure
  Module zope.tales.tales, line 696, in evaluate
   - URL: contentactions
   - Line 32, Column 8
   - Expression: <StringExpr 'plone.contentmenu'>
   - Names:
      {'container': <ATFolder at /Plone/business-services>,
       'context': <ATFolder at /Plone/business-services>,
       'default': <object object at 0x7ff307a4e1f0>,
       'here': <ATFolder at /Plone/business-services>,
       'loop': {},
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xa90fc20>,
       'request': <HTTPRequest, URL=http://207.134.1.54:8080/Plone/business-services/folder_listing>,
       'root': <Application at >,
       'template': <ImplicitAcquirerWrapper object at 0xebacf90>,
       'traverse_subpath': [],
       'user': <PropertiedUser 'admin'>,
       'view': <Products.Five.viewlet.metaconfigure.ContentActionsViewlet object at 0xebadfd0>,
       'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper object at 0xebacfd0>}
  Module Products.Five.browser.providerexpression, line 37, in __call__
  Module Shared.DC.Scripts.Bindings, line 313, in __call__
  Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
  Module Products.PageTemplates.PageTemplateFile, line 129, in _exec
  Module Products.PageTemplates.PageTemplate, line 98, in pt_render
  Module zope.pagetemplate.pagetemplate, line 117, in pt_render
  Module zope.tal.talinterpreter, line 271, in __call__
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 586, in do_setLocal_tal
  Module zope.tales.tales, line 696, in evaluate
   - URL: contentmenu
   - Line 1, Column 0
   - Expression: <PathExpr standard:'view/menu'>
   - Names:
      {'container': <ATFolder at /Plone/business-services>,
       'context': <ATFolder at /Plone/business-services>,
       'default': <object object at 0x7ff307a4e1f0>,
       'here': <ATFolder at /Plone/business-services>,
       'loop': {},
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xe8f3440>,
       'request': <HTTPRequest, URL=http://207.134.1.54:8080/Plone/business-services/folder_listing>,
       'root': <Application at >,
       'template': <ImplicitAcquirerWrapper object at 0xebb1250>,
       'traverse_subpath': [],
       'user': <PropertiedUser 'admin'>,
       'view': <plone.app.contentmenu.view.ContentMenuProvider object at 0xeba5450>,
       'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper object at 0xebb1610>}
  Module zope.tales.expressions, line 217, in __call__
  Module Products.PageTemplates.Expressions, line 163, in _eval
  Module Products.PageTemplates.Expressions, line 125, in render
  Module plone.app.contentmenu.view, line 42, in menu
  Module zope.app.publisher.browser.menu, line 66, in getMenuItems
  Module zope.app.publisher.browser.menu, line 176, in getMenu
  Module plone.app.contentmenu.menu, line 90, in getMenuItems
  Module Products.CMFPlone.ActionsTool, line 83, in listActionInfos
  Module Products.CMFCore.ActionInformation, line 200, in __getitem__
  Module Products.CMFCore.Expression, line 48, in __call__
  Module Products.PageTemplates.ZRPythonExpr, line 49, in __call__
   - __traceback_info__: path('object/@@getpaid_control').allowMakeRecurringPayable()
  Module PythonExpr, line 1, in <expression>
  Module Products.PloneGetPaid.browser.content, line 299, in allowMakeRecurringPayable
  Module zope.component._api, line 90, in getAdapter
ComponentLookupError: (<ATFolder at /lnm/business-services>, <InterfaceClass 
getpaid.core.interfaces.IPaymentProcessor>, 'Testing Processor')

Original issue reported on code.google.com by onsom...@gmail.com on 7 Jul 2010 at 6:08

GoogleCodeExporter commented 8 years ago
i forgot to add:

1) I expected to see a Plone Folder converted to a collective.lineage child site
2) I'm using Plone-3.3.5 

Original comment by onsom...@gmail.com on 7 Jul 2010 at 6:20