[Zope] import error
hi all, The importing of my site is getting failed due to an error: Input MIME type 'text/x-web-markdown' for transform markdown_to_html is not registered in the MIME types registry I can't re-export my site as my system got crashed and i have only my backup which is a .zexp file. Is there any other possibility? Please help. Thanks in advance. - Bollywood news, movie reviews, film trailers and more! Click here.___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] import error
On Wed, Jan 11, 2006 at 03:00:43PM -0700, David Bear wrote: thanks for the info. I went and actually read the help text on the import/export screen where it states: == You may import Zope objects which have been previously exported to a file, by placing the file in the import directory of your Zope installation on the server. You should create the import directory in the root of your Zope installation if it does not yet exist. Note that by default, you will become the owner of the objects that you are importing. If you wish the imported objects to retain their existing ownership information, select retain existing ownership information. === does this mean I create a directory named 'import' at the instance home? It should be there already, it's created by mkzopeinstance.py. -- Paul Winkler http://www.slinkp.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] import error
Will attempting to import a zexp file (and exported plone site) I get the following error: 2006-01-11T09:44:03 ERROR(200) SiteError http://127.0.0.1:8180/do2/manage_importObject Traceback (most recent call last): File /home/webenv/zope/lib/python/ZPublisher/Publish.py, line 101, in publish request, bind=1) File /home/webenv/zope/lib/python/ZPublisher/mapply.py, line 88, in mapply if debug is not None: return debug(object,args,context) File /home/webenv/zope/lib/python/ZPublisher/Publish.py, line 39, in call_object result=apply(object,args) # Type scr 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 Either I'm missing something very simple, or something is very wrong. Any idea what the problem might be? -- David BearWhat's the difference between private knowledge and public knowledge? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] import error
David Bear wrote: Will attempting to import a zexp file (and exported plone site) I get the following error: result=apply(object,args) # Type scr 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) HTH -- (@ @) oOO(_)OOo-- Ojo por ojo y el mundo acabara ciego /\ Alexis Roda - Universitat Rovira i Virgili - Reus, Tarragona (Spain) --- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope-dev] Fwd: RE: [Zope] import error - No module named iclass
I'm upgrading to zope 2.6.0. When I try to import a ZClass based Product from zope 2.5.1 i get the following error. Error Type: ImportError Error Value: No module named iclass Yup. This was discussed about a week ago. Search the mailing list archives; but as I remember, only the ZClasses descended from ObjectManager have the problem, and then only if there is a non-empty list on the SubObjects tab. To export from 2.5.x, remove all from that list; then it will import fine into 2.6. Then, I presume that you can recreate the list of allowed subobjects, though I have not tried this. This worked fine. Thanks. Hi, I'm having the same problem migrating a zclass from 2.5.1 to 2.6. I've tryed the collector fix of ZClasses/ObjectManager.py and the subobjects tab thing, but that didnt solved my problem. My zclass has ZFolder as base class instead of ObjectManager: Base Classes: ZObject, ZFolder, CatalogAwareBase I'm looking at the ObjectManager.py to see if I can put it to work for my zclass, but I think in my case that doesnt make sense because my class dont have a subobject tab... I'm looking into the zen of iclass... Any ideias? thanks. Regards, Julio Silva I'm forwarding this mail to zope-dev because since this is related with 2.6.0 development changes against 2.5.1 maybe someone has other solutions, because the that is out there for ObjectManager doesnt solve my problem. Best Regards, Julio Silva --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.416 / Virus Database: 232 - Release Date: 11/6/2002
[Zope] Import Error 'PTKDemo' - but *no* PTKDemo objects around..
Hi all, I'm having a nightmare here. I have a Zope 2.2 (src, solaris) installation that I built from scratch. Then, because *it would not* import an exported folder from a 2.1.6 installation I had to use the Data.fs from the 2.1.6 installation and strip out everything other than the folder I was interested in. Things seemed to be ok, but I found a nasty error I can't get around. I wanted to use the 'advanced' tab on a ZSQL method and immediately got this traceback. This happens on *any* ZSQL method. I use the ZMySQL database adaptor. !-- Error type: ImportError Error value: No module named PTKDemo -- !-- Traceback (innermost last): File /home/zope/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/zope/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/zope/Zope-2.2.0/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: person_details) File /home/zope/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/zope/Zope-2.2.0/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_advancedForm) File /home/zope/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_advancedForm) File /home/zope/Zope-2.2.0/lib/python/App/special_dtml.py, line 121, in __call__ (Object: manage_advancedForm) File /home/zope/Zope-2.2.0/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: manage_advancedForm) File /home/zope/Zope-2.2.0/lib/python/Shared/DC/ZRDB/DA.py, line 505, in manage_product_zclass_info (Object: person_details) File /home/zope/Zope-2.2.0/lib/python/ZODB/Connection.py, line 447, in setstate ImportError: (see above) -- I've also tried this with Zope 2.2.1b1 and get the same result. Any thoughts would be appreciated here, I'm out of ideas. tone. -- Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5116 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )