[ZPatterns] Problem importing a ZPattern based site

Christian Scholz cs@comlounge.net
Mon, 17 Dec 2001 22:32:46 +0100


Hello everybody!

I have little problem after upgrading to Zope 2.4.3 and TransactionAgents 0.0.4

I do the following with my app:

1. Export it via the ZMI as file.xml
2. Import it again somewhere else (even on the same Zope instance)
3. I get the following error:

Error Type: TypeError
Error Value: ('__init__() takes at least 3 arguments (1 given)', <extension class
Products.ZPatterns.SkinScript.Components.Compute at 871f3d0>, ())

Traceback (innermost last):
  File /opt/zope24/lib/python/ZPublisher/Publish.py, line 223, in publish_module
  File /opt/zope24/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /opt/zope24/lib/python/Zope/__init__.py, line 226, in zpublisher_exception_hook
    (Object: Zope)
  File /opt/zope24/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /opt/zope24/lib/python/ZPublisher/mapply.py, line 160, in mapply
    (Object: manage_importObject)
  File /opt/zope24/lib/python/ZPublisher/Publish.py, line 112, in call_object
    (Object: manage_importObject)
  File /opt/zope24/lib/python/OFS/ObjectManager.py, line 584, in manage_importObject
    (Object: Zope)
  File /opt/zope24/lib/python/ZODB/ExportImport.py, line 142, in importFile
  File /opt/zope24/lib/python/OFS/XMLExportImport.py, line 191, in importXML
  File /opt/zope24/lib/python/ZODB/ExportImport.py, line 150, in importFile
  File /opt/zope24/lib/python/Products/TransactionAgents/__init__.py, line 54, in new_commit
  File /opt/zope24/lib/python/ZODB/Transaction.py, line 302, in commit
  File /opt/zope24/lib/python/ZODB/Connection.py, line 307, in commit
  File /opt/zope24/lib/python/ZODB/ExportImport.py, line 219, in _importDuringCommit
TypeError: (see above)


If I use .zexp it also does not work just with a more simple error message
(does not support this operation).

So is there any way to export/import my app again? 

Thanks for any help :)

Cheers,
  Christian

-- 
COM.lounge                                          http://comlounge.net/
communication & design                                 info@comlounge.net