prop = removeSecurityProxy(prop)
_props = copy(prop.props)
print lastvalue
if self.context.__parent__ in _props.get(lastvalue, []):
_props[lastvalue].remove(self.context.__parent__)
if _props.has_key(self.context.value):
_props[self.context.value].append(self.context.__parent__)
else:
_props[self.context.value] = [self.context.__parent__]
prop.props = _props
prop._p_changed = 1
ObjectModifiedEvent(prop)
self <ZODB.serialize.ObjectWriter instance at 0x033A99B8>
state {'description': u'\u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e1', ‘name’: u'\u0441\u0432\u043e\…
u0439\u0441\u0442\u0432\u043e1', ‘props’: {False: }}
classmeta <class ‘intershop.content.props.tbool.tbool.TBool_Info’>
self <ZODB.serialize.ObjectWriter instance at 0x033A99B8>
state {'description': u'\u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e1', ‘name’: u'\u0441\u0432\u043e\…
u0439\u0441\u0442\u0432\u043e1', ‘props’: {False: }}
<< self._p.clear_memo()
self._p.dump(classmeta)
self._p.dump(state)
self._file.truncate()
return self._file.getvalue()>> self._p.dump(state)
UnpickleableError: Cannot pickle <type ‘zope.security._proxy._Proxy’> objects
Не может взять атрибут?