conestack / node

Other
24 stars 24 forks source link

TypeError: can't apply this __setattr__ to persistent.Persistent object #11

Closed agitator closed 7 years ago

agitator commented 7 years ago

happens within bda.plone.shop on checkout

works with: node = 0.9.16 plumber = 1.3.1

2017-06-12 11:26:49 ERROR Zope.SiteErrorLog 1497259609.90.514013698065 http://me2:8080/shop/vend/@@checkout
Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module Products.Five.browser.metaconfigure, line 485, in __call__
  Module Products.Five.browser.pagetemplatefile, line 125, in __call__
  Module Products.Five.browser.pagetemplatefile, line 59, in __call__
  Module zope.pagetemplate.pagetemplate, line 132, in pt_render
  Module five.pt.engine, line 98, in __call__
  Module z3c.pt.pagetemplate, line 163, in render
  Module chameleon.zpt.template, line 261, in render
  Module chameleon.template, line 191, in render
  Module chameleon.template, line 171, in render
  Module 4471db099838c2fe63fccd38b989137e.py, line 232, in render
  Module 46cab5ec889addc95c6997b24e2d7f15.py, line 1223, in render_master
  Module 46cab5ec889addc95c6997b24e2d7f15.py, line 458, in render_content
  Module 4471db099838c2fe63fccd38b989137e.py, line 220, in __fill_main
  Module 4471db099838c2fe63fccd38b989137e.py, line 107, in render_main
  Module five.pt.expressions, line 161, in __call__
  Module yafowil.plone.form, line 58, in __call__
  Module yafowil.plone.form, line 45, in render_form
  Module yafowil.controller, line 32, in __init__
  Module bda.plone.checkout.browser.form, line 371, in finish
  Module bda.plone.orders.common, line 278, in save
  Module bda.plone.checkout, line 55, in save
  Module plumber.instructions, line 390, in entrance
  Module plumber.instructions, line 402, in plumbing
  Module plumber.instructions, line 402, in plumbing
  Module node.behaviors.common, line 150, in __setitem__
  Module plumber.instructions, line 390, in entrance
  Module node.behaviors.common, line 31, in __setitem__
  Module plumber.instructions, line 390, in entrance
  Module node.ext.zodb.behaviors, line 68, in __setitem__
  Module node.behaviors.storage, line 31, in __setitem__
  Module node.utils, line 221, in wrapper
TypeError: can't apply this __setattr__ to persistent.Persistent object

 - Expression: "context/@@checkoutform"
 - Filename:   ... da.plone.checkout/src/bda/plone/checkout/browser/view.pt
 - Location:   (line 22: col 37)
 - Source:     ... ut replace="structure context/@@checkoutform" />
                                         ^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  repeat: {...} (0)
               template: <ViewPageTemplateFile - at 0x117ba3a10>
               views: <ViewMapper - at 0x119568350>
               modules: <instance - at 0x110ba4ef0>
               args: <tuple - at 0x10fe7b050>
               here: <ImplicitAcquisitionWrapper vend at 0x1194c06e0>
               user: <ImplicitAcquisitionWrapper - at 0x1194c0050>
               nothing: <NoneType - at 0x10fd7ce18>
               container: <ImplicitAcquisitionWrapper vend at 0x1194c06e0>
               request: <instance - at 0x1190d11b8>
               wrapped_repeat: <SafeMapping - at 0x119b40aa0>
               traverse_subpath: <list - at 0x1190d4b90>
               default: <object - at 0x10fed1ad0>
               loop: {...} (0)
               context: <ImplicitAcquisitionWrapper vend at 0x1194c06e0>
               view: <SimpleViewClass from /Users/peter/workspace/bda.plone.shop/devsrc/bda.plone.checkout/src/bda/plone/checkout/browser/view.pt checkout at 0x119568110>
               translate: <function translate at 0x1193eef50>
               root: <ImplicitAcquisitionWrapper Zope at 0x119184460>
               options: {...} (0)
               target_language: <NoneType - at 0x10fd7ce18>
rnixx commented 7 years ago

This is probably a side effect of a change in node.utils.instance_property. I need to figure out what happens

rnixx commented 7 years ago

Should be fixed via https://github.com/bluedynamics/node/commit/0ca2f370600eaa609c856d927f5cd61e2d0481e8

I also spent some love on node.ext.zodb https://github.com/bluedynamics/node.ext.zodb/compare/bb49c158ea...fe63110909

May you be so kind and try again with latest master versions of odict / node / node.exz.zodb ?

If everything is fine I'll drop a release.

agitator commented 7 years ago

works for me