David Bear wrote:
Will attempting to import a zexp file (and exported plone site) I get the following error:

    result=apply(object,args) # Type s<cr> to step into published object.
File "/home/webenv/zope/lib/python/OFS/ObjectManager.py", line 532, in manage_importObject
    raise BadRequest, 'Invalid file name %s' % escape(file)
BadRequest: Invalid file name InfoTechnical.zexp

Acording to ObjectManager source this exception is raised because you're suplying a path with a directory component (some/dir/InfoTechnical.zexp)

    def manage_importObject(self, file, REQUEST=None, set_owner=1):
        """Import an object from a file"""
        dirname, file=os.path.split(file)
        if dirname:
raise BadRequestException, 'Invalid file name %s' % escape(file)

                                  (@ @)
<>               Ojo por ojo y el mundo acabara ciego
/\ Alexis Roda - Universitat Rovira i Virgili - Reus, Tarragona (Spain)

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to