Phil Harris wrote:
Hi all,
I'm testing an external method which adds a folder and then adds a document to that folder and this happens when opening the tree in the management interface on that folder's parent:
Illegal State
Sorry, a Zope error occurred.
Traceback (innermost last): File /root/t/Zope/lib/python/ZPublisher/Publish.py, line 256, in publish_module File /root/t/Zope/lib/python/ZPublisher/Publish.py, line 161, in publish File /root/t/Zope/lib/python/ZPublisher/mapply.py, line 154, in mapply (Object: manage_menu) File /root/t/Zope/lib/python/ZPublisher/Publish.py, line 98, in call_object (Object: manage_menu) File /root/t/Zope/lib/python/App/special_dtml.py, line 120, in __call__ (Object: manage_menu) File /root/t/Zope/lib/python/DocumentTemplate/DT_String.py, line 514, in __call__ (Object: manage_menu) File /root/t/Zope/lib/python/TreeDisplay/TreeTag.py, line 154, in render (Object: a tree tag) File /root/t/Zope/lib/python/TreeDisplay/TreeTag.py, line 221, in tpRender (Object: ApplicationDefaultPermissions) File /root/t/Zope/lib/python/TreeDisplay/TreeTag.py, line 607, in decode_seq Illegal State: ['\000\000\000\000\000\000\000\001', '\000\000\000\000\000\000\003*']
I assume that you are using ZODB3. The tree tag (and possibly other things) try to use persistent object ids for generating HTML. This worked in ZODB 2 (aka BobpPOS) but not in ZODB 3, because ZODB 3 uses string object ids that contain binary data, like Nulls. I've checked in a fix for this for the tree tag. This fix will be in 2.0 alpha 3, which I plan to release tonight. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.