Problem with importing with transmogrifier
Alberto Lopes <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.user |
|---|---|
| Message-ID | <CAJZGDH=dux5gdOrp-d_3OpzfJrf15zL-gJ66r81dCoP47_Y8bw@mail.gmail.com> |
I am trying to migrate some content from a Plone 4.0.7 site (running on Windows 2003) to a Plone 4.3.1 test install (running on a Windows 7 machine). When I tried to import the tarball on the new site, here is the traceback I got: Traceback (innermost last): - Module ZPublisher.Publish, line 60, in publish - Module ZPublisher.mapply, line 77, in mapply - Module ZPublisher.Publish, line 46, in call_object - Module Products.GenericSetup.tool, line 565, in manage_importTarball - Module Products.GenericSetup.tool, line 350, in runAllImportStepsFromProfile - Module Products.GenericSetup.tool, line 1100, in _runImportStepsFromContext - Module Products.GenericSetup.tool, line 1015, in _doRunImportStep __traceback_info__: content_quinta - Module quintagroup.transmogrifier.exportimport, line 133, in importSiteStructure - Module collective.transmogrifier.utils, line 56, in constructPipeline - Module quintagroup.transmogrifier.manifest, line 137, in __init__ - Module quintagroup.transmogrifier.manifest, line 35, in __init__ - Module quintagroup.transmogrifier.manifest, line 38, in _advance - Module quintagroup.transmogrifier.manifest, line 173, in iterExtractingManifests - Module quintagroup.transmogrifier.reader, line 104, in __iter__ - Module quintagroup.transmogrifier.reader, line 96, in readFiles - Module Products.GenericSetup.context, line 355, in readDataFile AttributeError: 'NoneType' object has no attribute 'read' Checking the Products.GenericSetup.context code, on the readDataFile method, it has two parameters, filename and subdir. I debbuged to see what were the values for these parameters. It seems like quintagroup.transmogrifier.reader is calling that method passing not only the xml files contained in the tarball, but also the directories. The error happens because readDataFile tries to extract the "file", passing the directory name (line 347), and then tries to read it (line 352), but since extractfile returned None, there was no read method. Has anyone encounter this issue before? Any workarounds? Thanks in advance. ------------------------------------------------------------------------------ _______________________________________________ Plone-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plone-users