5 Nov 2004 14:49
copy support for portal_actions
Hi, I have found a large problem in pickling my Plone sites. There would seem to be a python function embedded in portal_actions: Doh - failed to copy http://localhost:8080/last-bastion.net/hosting/A000003/balclutha.org/mgmt/portal_actions Traceback (most recent call last): ~ File "/opt/zope2.7/lib/python/Products/BastionHosting/BastionHost.py", line 256, in _migrate_domains vv = v._getCopy(v) ~ File "/opt/zope2.7/instance/lib/python/OFS/CopySupport.py", line 435, in _getCopy ~ get_transaction().commit(1) ~ File "/opt/zope2.7/lib/python/ZODB/Transaction.py", line 241, in commit ~ ncommitted += self._commit_objects(objects) ~ File "/opt/zope2.7/lib/python/ZODB/Transaction.py", line 356, in _commit_objects ~ jar.commit(o, self) ~ File "/opt/zope2.7/lib/python/ZODB/Connection.py", line 452, in commit ~ dump(state) ~ File "/var/tmp/python-2.3.3-root/usr/lib/python2.3/copy_reg.py", line 69, in _reduce_ex ~ raise TypeError, "can't pickle %s objects" % base.__name__ TypeError: can't pickle function objects This can also be recreated when trying to paste one of these between sites. Does anyone have any advice as to a fix?? Alan
RSS Feed