after checking out yafowil from github and upgrading to plone 4.4 ftom 4.3, some things have changed which break yafowil.
in this case, i have a yafowil form included in a plone viewlet.
2013-05-26 18:02:12 ERROR ZODB.Connection Couldn't load state for 0x152b
Traceback (most recent call last):
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/Connection.py", line 860, in setstate
self._setstate(obj)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/Connection.py", line 914, in _setstate
self._reader.setGhostState(obj, p)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/serialize.py", line 612, in setGhostState
state = self.getState(pickle)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/serialize.py", line 605, in getState
return unpickler.load()
File "/home/thet/dev/python27/lib/python2.7/copy_reg.py", line 48, in _reconstructor
obj = object.__new__(cls)
TypeError: ('object.__new__(Unset) is not safe, use Persistence.Persistent.__new__()', <function _reconstructor at 0x7f372425b9b0>, (<class 'yafowil.utils.Unset'>, <type 'object'>, None))
2013-05-26 18:02:12 ERROR root Exception while rendering an error message
Traceback (most recent call last):
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/Zope2-2.13.20-py2.7.egg/OFS/SimpleItem.py", line 242, in raise_standardErrorMessage
v = s(**kwargs)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/Products.CMFCore-2.2.7-py2.7.egg/Products/CMFCore/FSPythonScript.py", line 127, in __call__
return Script.__call__(self, *args, **kw)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/Zope2-2.13.20-py2.7.egg/Shared/DC/Scripts/Bindings.py", line 322, in __call__
return self._bindAndExec(args, kw, None)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/Zope2-2.13.20-py2.7.egg/Shared/DC/Scripts/Bindings.py", line 359, in _bindAndExec
return self._exec(bound_data, args, kw)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/Products.PythonScripts-2.13.2-py2.7.egg/Products/PythonScripts/PythonScript.py", line 344, in _exec
result = f(*args, **kw)
File "Script (Python)", line 35, in standard_error_message
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/Zope2-2.13.20-py2.7.egg/Shared/DC/Scripts/Bindings.py", line 322, in __call__
return self._bindAndExec(args, kw, None)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/Zope2-2.13.20-py2.7.egg/Shared/DC/Scripts/Bindings.py", line 359, in _bindAndExec
return self._exec(bound_data, args, kw)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/Products.CMFCore-2.2.7-py2.7.egg/Products/CMFCore/FSPageTemplate.py", line 237, in _exec
result = self.pt_render(extra_context=bound_names)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/Products.CMFCore-2.2.7-py2.7.egg/Products/CMFCore/FSPageTemplate.py", line 177, in pt_render
self, source, extra_context
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/Zope2-2.13.20-py2.7.egg/Products/PageTemplates/PageTemplate.py", line 79, in pt_render
showtal=showtal)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/zope.pagetemplate-3.6.3-py2.7.egg/zope/pagetemplate/pagetemplate.py", line 132, in pt_render
strictinsert=0, sourceAnnotations=sourceAnnotations
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/five.pt-2.2.1-py2.7.egg/five/pt/engine.py", line 93, in __call__
return self.template.render(**kwargs)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/z3c.pt-2.2.3-py2.7.egg/z3c/pt/pagetemplate.py", line 149, in render
return base_renderer(**context)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/Chameleon-2.11-py2.7.egg/chameleon/zpt/template.py", line 257, in render
return super(PageTemplate, self).render(**vars)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/Chameleon-2.11-py2.7.egg/chameleon/template.py", line 172, in render
self._render(stream, econtext, rcontext)
File "/home/thet-data/data/dev/g24new/g24.buildout/var/chameleon-cache/65a3b5d068f290f28aba98cd3d64c751fc9a7cd6.py", line 1784, in render
__macro.include(__stream, econtext.copy(), rcontext, __i18n_domain)
File "/home/thet-data/data/dev/g24new/g24.buildout/var/chameleon-cache/d6835db9b2e978986abd9a726e2c70c1230400f8.py", line 1283, in render_master
__cache_140158342923408 = _render_content_provider(econtext, __cache_140158342923408)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/z3c.pt-2.2.3-py2.7.egg/z3c/pt/expressions.py", line 61, in render_content_provider
return cp.render()
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/plone.app.viewletmanager-2.0.3-py2.7.egg/plone/app/viewletmanager/manager.py", line 155, in render
return BaseOrderedViewletManager.render(self)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/plone.app.viewletmanager-2.0.3-py2.7.egg/plone/app/viewletmanager/manager.py", line 86, in render
return u'\n'.join([viewlet.render() for viewlet in self.viewlets])
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/zope.browserpage-3.12.2-py2.7.egg/zope/browserpage/simpleviewclass.py", line 44, in __call__
return self.index(*args, **kw)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/Zope2-2.13.20-py2.7.egg/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
return self.im_func(im_self, *args, **kw)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/Zope2-2.13.20-py2.7.egg/Products/Five/browser/pagetemplatefile.py", line 59, in __call__
sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/zope.pagetemplate-3.6.3-py2.7.egg/zope/pagetemplate/pagetemplate.py", line 132, in pt_render
strictinsert=0, sourceAnnotations=sourceAnnotations
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/five.pt-2.2.1-py2.7.egg/five/pt/engine.py", line 93, in __call__
return self.template.render(**kwargs)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/z3c.pt-2.2.3-py2.7.egg/z3c/pt/pagetemplate.py", line 149, in render
return base_renderer(**context)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/Chameleon-2.11-py2.7.egg/chameleon/zpt/template.py", line 257, in render
return super(PageTemplate, self).render(**vars)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/Chameleon-2.11-py2.7.egg/chameleon/template.py", line 190, in render
raise_with_traceback(exc, tb)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/Chameleon-2.11-py2.7.egg/chameleon/template.py", line 172, in render
self._render(stream, econtext, rcontext)
File "/home/thet-data/data/dev/g24new/g24.buildout/var/chameleon-cache/f34e02fbd608df5b5caf08a8850ae6cb14c052eb.py", line 102, in render
__cache_143452688 = _render_content_provider(econtext, __cache_143452688)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/z3c.pt-2.2.3-py2.7.egg/z3c/pt/expressions.py", line 58, in render_content_provider
cp.update()
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/zope.viewlet-3.7.2-py2.7.egg/zope/viewlet/manager.py", line 112, in update
self._updateViewlets()
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/zope.viewlet-3.7.2-py2.7.egg/zope/viewlet/manager.py", line 118, in _updateViewlets
viewlet.update()
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/plone.app.layout-2.3.4-py2.7.egg/plone/app/layout/viewlets/common.py", line 187, in update
self.portal_tabs = portal_tabs_view.topLevelTabs()
File "/home/thet-data/data/dev/g24new/g24.buildout/src/Products.CMFPlone/Products/CMFPlone/browser/navigation.py", line 204, in topLevelTabs
for item in rawresult:
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/Products.ZCatalog-2.13.23-py2.7.egg/Products/ZCatalog/Lazy.py", line 190, in __getitem__
value = data[index] = self._func(self._seq[index])
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/Products.ZCatalog-2.13.23-py2.7.egg/Products/ZCatalog/Catalog.py", line 121, in __getitem__
r=self._v_result_class(self.data[index]).__of__(aq_parent(self))
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/Connection.py", line 860, in setstate
self._setstate(obj)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/Connection.py", line 914, in _setstate
self._reader.setGhostState(obj, p)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/serialize.py", line 612, in setGhostState
state = self.getState(pickle)
File "/home/thet-data/dotfiles-thet/home/.buildout/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/serialize.py", line 605, in getState
return unpickler.load()
File "/home/thet/dev/python27/lib/python2.7/copy_reg.py", line 48, in _reconstructor
obj = object.__new__(cls)
TypeError: ('object.__new__(Unset) is not safe, use Persistence.Persistent.__new__()', <function _reconstructor at 0x7f372425b9b0>, (<class 'yafowil.utils.Unset'>, <type 'object'>, None))
- Expression: "provider:plone.portaltop"
- Filename: ... theme/sunburst/skins/sunburst_templates/main_template.pt
- Location: (62:40)
- Source: ... l:replace="structure provider:plone.portaltop" />
^^^^^^^^^^^^^^^^^^^^^^^^
- Expression: "provider:plone.portalheader"
- Filename: ... 3.4-py2.7.egg/plone/app/layout/viewlets/portal_header.pt
- Location: (2:32)
- Source: ... :replace="structure provider:plone.portalheader" />
^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Arguments: repeat: {...} (0)
template: <ViewPageTemplateFile - at 0x7f37144ff450>
views: <ViewMapper - at 0x7f370c186290>
modules: <instance - at 0x2703a70>
args: <tuple - at 0x7f37242ee050>
here: <ImplicitAcquisitionWrapper Plone at 0x82d5aa0>
user: <ImplicitAcquisitionWrapper - at 0x8360a00>
nothing: <NoneType - at 0x84b1e0>
container: <ImplicitAcquisitionWrapper Plone at 0x82d5aa0>
request: <instance - at 0x7f370c0e7e18>
wrapped_repeat: <SafeMapping - at 0x7f370c0c9628>
traverse_subpath: <list - at 0x7f370c197320>
default: <object - at 0x7f3724257500>
loop: {...} (0)
context: <ImplicitAcquisitionWrapper Plone at 0x82d5aa0>
view: <SimpleViewletClass from /home/thet-data/dotfiles-thet/home/.buildout/eggs/plone.app.layout-2.3.4-py2.7.egg/plone/app/layout/viewlets/portal_header.pt plone.header at 0x7f370c186250>
translate: <function translate at 0x7f370c18f578>
root: <ImplicitAcquisitionWrapper Zope at 0x6a54e60>
options: {...} (0)
target_language: <NoneType - at 0x84b1e0>