kapilt / getpaid

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

AttributeError: debug when trying to go to @@manage-getpaid-shipping-methods #195

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
<snip>
   Module Products.PloneGetPaid.browser.admin, line 173, in __call__
<snip>
   Module Products.PageTemplates.TALES, line 221, in evaluate
    - URL: settings-shipping
    - Line 8, Column 6
    - Expression: string:'getpaid.shipment.settings'
    - Names:
       {'container': <PloneSite at /test>,
        'context': <PloneSite at /test>,
        'default': <Products.PageTemplates.TALES.Default instance at 
0xb6ffba0c>,
        'here': <PloneSite at /test>,
        'loop': <Products.PageTemplates.TALES.SafeMapping object at 
0xb682d52c>,
        'modules': 
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 
0xb702a2ac>,
        'nothing': None,
        'options': {'args': ()},
        'repeat': <Products.PageTemplates.TALES.SafeMapping object at 
0xb682d52c>,
        'request': <HTTPRequest, 
URL=http://192.168.1.12:8080/test/@@manage-getpaid-shipping-methods>,
        'root': <Application at >,
        'template': <ImplicitAcquirerWrapper object at 0xb2ddab6c>,
        'traverse_subpath': [],
        'user': <PropertiedUser 'chris'>,
        'view': <Products.Five.metaclass.ShippingSettings object at 
0xb31d2dcc>,
        'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper 
object at 0xb3102a8c>}
   Module Products.Five.browser.ProviderExpression, line 62, in __call__
   Module zope.viewlet.manager, line 113, in render
   Module Products.PloneGetPaid.browser.admin, line 203, in render
<snip>
   Module Products.PageTemplates.TALES, line 221, in evaluate
    - URL: form
    - Line 59, Column 10
    - Expression: standard:'widget'
    - Names:
       {'container': <PloneSite at /test>,
        'context': <PloneSite at /test>,
        'default': <Products.PageTemplates.TALES.Default instance at 
0xb6ffba0c>,
        'here': <PloneSite at /test>,
        'loop': <Products.PageTemplates.TALES.SafeMapping object at 
0xb2ce75cc>,
        'modules': 
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 
0xb702a2ac>,
        'nothing': None,
        'options': {'args': ()},
        'repeat': <Products.PageTemplates.TALES.SafeMapping object at 
0xb2ce75cc>,
        'request': <HTTPRequest, 
URL=http://192.168.1.12:8080/test/@@manage-getpaid-shipping-methods>,
        'root': <Application at >,
        'template': <ImplicitAcquirerWrapper object at 0xb2ddc2cc>,
        'traverse_subpath': [],
        'user': <PropertiedUser 'chris'>,
        'view': <Products.Five.viewlet.metaconfigure.ShippingServices 
object at 0xb3112dac>,
        'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper 
object at 0xb2dd9b6c>}
<snip>
   Module ZPublisher.HTTPRequest, line 1227, in __getattr__
AttributeError: debug

Original issue reported on code.google.com by cwith...@gmail.com on 22 Apr 2008 at 1:56

GoogleCodeExporter commented 8 years ago
From Kapil:

this is a pain of zope3 in zope2 issue. the actual issue is some of the
zope.app.form widget (orderedmultiselect at least) expect an attribute thats
present in the zope3 request object which is not present in zope2. getpaid
includes some base views which (PloneGetPaid.browser.base.BaseView ) which
setup some of the required attributes to make zope3 views work better in
zope2. looking over the implementation of the components of the traceback,
it appears that this issue surfaced for plone 2.5 installations when the
shipping settings were refactored earlier this year to use viewlets/views
which don't include the getpaid compatibility layer. although this issue
does currently exhibit itself in plone3.0 due to the underlying attribute
being present in zope3's request implementation

Original comment by cwith...@gmail.com on 22 Apr 2008 at 1:57

GoogleCodeExporter commented 8 years ago

Original comment by cjj.ifpe...@gmail.com on 22 Apr 2008 at 2:39

GoogleCodeExporter commented 8 years ago
fixed in rev1485

Original comment by cjj.ifpe...@gmail.com on 23 Apr 2008 at 10:05