Can not import XML export
[ A few days ago I started working with zope and I am really impressed. But now the first problem... ] I created simple folder containing a few DTML documents and methods, a couple of images and ZCatalog. Then I exported it using XML format. Now I try to import it into another Zope installation and I get an error suggesting some problem with XML tags. Error Type: TypeError Error Value: illegal argument type for built-in operation Traceback (innermost last): File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/lib/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ElementWithAttributes) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_importObject) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_importObject) File /usr/lib/zope/lib/python/OFS/ObjectManager.py, line 495, in manage_importObject (Object: ElementWithAttributes) File /usr/lib/zope/lib/python/ZODB/ExportImport.py, line 216, in importFile File /usr/lib/zope/lib/python/ZODB/ExportImport.py, line 316, in importXML File /usr/lib/zope/lib/python/Shared/DC/xml/xyap.py, line 57, in unknown_endtag File /usr/lib/zope/lib/python/Shared/DC/xml/ppml.py, line 748, in save_item TypeError: (see above) On both machines I used exactly the same Zope version (2.2.0) and Python version (1.5.2). So: - isn't it a bug? - can I do anything to import at least some parts of this file (say - by editing it manually in some way) - I would really like to import something today (tomorrow I will try usual zope export) Regards -- Marcin.Kasperski | You can even cancel and be left with a working system @softax.com.pl | reflecting investment to date. (Ken Beck's Fourth Marcin.Kasperski | Customer Right - part two) @bigfoot.com |
I made some experiments and found, that removing from the generated XML file all tags named <klass>, <state> and <object> (together with their contents) changes something - loading takes longer and is finished with different error: Error Type: AttributeError Error Value: 'string' object has no attribute '__dict__' I can not find word __dict__ anywhere in my xml file, maybe some of Base64 encoded object contain such a thing... My main suspicion is that I have problem with importing ZCatalog objects -- Marcin.Kasperski | As a slow-witted human being I have a very small head @softax.com.pl | and I had better learn to live with it and to respect Marcin.Kasperski | my limitations, rather than to try to ignore them. @bigfoot.com | (Dijskstra)
Marcin Kasperski wrote:
I made some experiments and found, that removing from the generated XML file all tags named <klass>, <state> and <object> (together with their contents) changes something - loading takes longer and is finished with different error:
Error Type: AttributeError Error Value: 'string' object has no attribute '__dict__'
I can not find word __dict__ anywhere in my xml file, maybe some of Base64 encoded object contain such a thing...
My main suspicion is that I have problem with importing ZCatalog objects
Let me mention that normal (.zxp) export and import on the same data worked perfectly. -- Marcin.Kasperski | The cost of a few uncorrected non-critical human @softax.com.pl | errors is less then the cost imposed by a process Marcin.Kasperski | that tries to prevent them. (Booch,Martin,Newkirk) @bigfoot.com |
participants (1)
-
Marcin Kasperski