[Zope] problem with manage_importObject
Hi to all! I have a problem using manage_importObject?file=... with zope2.9. In particular: object is successfully imported but if I shutdown and then reboot the server, I don't see anymore imported object. If I import the same object using web form Import/Export I have not this strange behavior. anyone can help me? very thanks, Fabio -- Dott. Fabio Marcone 2T srl Telefono+39 - 0871- 540154 Fax +39 - 0871- 571594 Email fabio.marcone(AT)duet.it Indirizzo Viale B. Croce 573 66013 Chieti Scalo (CH) GNU/Linux registered user #400424 ___ 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] problem with manage_importObject
Eric Bréhault wrote: Hello, What about just doing the import yourself: container._importObjectFromFile(f) (rather than using the ZMI's manage_importObject method through a zope client connection) ? Eric BREHAULT On 3/12/07, Fabio Marcone [EMAIL PROTECTED] wrote: Jens Vagelpohl wrote: I have a problem using manage_importObject?file=... with zope2.9. In particular: object is successfully imported but if I shutdown and then reboot the server, I don't see anymore imported object. If I import the same object using web form Import/Export I have not this strange behavior. Are you calling manage_importObject from Python code? Are you sure the transaction is committed? If you're calling this in some external script (such as a script run via zopectl run) without starting a normal web request you may have to explicitly commit the transaction. jens perhaps this is the problem... in fact /var/lib/zope2.9/instance/myinstance/var is empty after importObject operation using python script. but the commit has been introduced in zope 2.9? I use the same code in zope2.7 without problem. in a python script I use: zopeClient(' http://localhost:9673/manage_importObject?file=app.zexp',myuser,mypassword ) where zopeClient is: def zopeClient(url,username,passwd): f = Function(url) f.username = username f.password = passwd apply(f,(),{}) How I can do commit? Thanks, Fabio ___ 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 ) -- Dott. Fabio Marcone 2T srl Telefono+39 - 0871- 540154 Fax +39 - 0871- 571594 Email fabio.marcone(AT)duet.it Indirizzo Viale B. Croce 573 66013 Chieti Scalo (CH) GNU/Linux registered user #400424 ___ 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 ) well, I have no container because my script python is not an external method or a script python in zope. I try with: import Zope2 Zope2.configure(...) app=Zope2.app() app.manage_delObjects(ids=index_html) app.manage_importObject(index_html.zexp) but with no results Now I'm trying with urllib2 and urlopen with authentication but when I reboot the machine, zope application disappeared. do you know a method to commit http transaction in zope? any suggests? Thanks, Fabio -- Dott. Fabio Marcone 2T srl Telefono+39 - 0871- 540154 Fax +39 - 0871- 571594 Email fabio.marcone(AT)duet.it Indirizzo Viale B. Croce 573 66013 Chieti Scalo (CH) GNU/Linux registered user #400424 ___ 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] BaseRequest error
Hi! When I try to import Function from ZPublisher.Client, I got this error: No module named event. error comes from: zope.event import notify can you help me? I use Funtion in zope 2.6 without problems. Thanks in advance, Fabio -- Dott. Fabio Marcone 2T srl Telefono+39 - 0871- 540154 Fax +39 - 0871- 571594 Email fabio.marcone(AT)duet.it Indirizzo Viale B. Croce 573 66013 Chieti Scalo (CH) GNU/Linux registered user #400424 ___ 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] searching zope free hosting
Hi to all! I'm searching a zope free hosting to publish my homepage. Unfortunately freezope.org and objectis.net are unavailable. is there another service like these? Thanks in advance, Fabio -- Dott. Fabio Marcone 2T srl Telefono+39 - 0871- 540154 Fax +39 - 0871- 571594 Email [EMAIL PROTECTED] Indirizzo Viale B. Croce 573 66013 Chieti Scalo (CH) GNU/Linux registered user #400424 ___ 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] searching zope free hosting
Chris Withers wrote: Fabio Marcone wrote: I'm searching a zope free hosting to publish my homepage. Unfortunately freezope.org and objectis.net are unavailable. http://register.freezope.org/ looks like it's working to me... Chris Thanks, within 2 days they accept or reject my subscription. Fabio -- Dott. Fabio Marcone 2T srl Telefono+39 - 0871- 540154 Fax +39 - 0871- 571594 Email [EMAIL PROTECTED] Indirizzo Viale B. Croce 573 66013 Chieti Scalo (CH) GNU/Linux registered user #400424 ___ 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] ldap
Hi! I'm looking for a zope-ldap howto. In particular I need to use a ldap connection in a zpt and I set Connection and Filter LDAP correctly (in test page) but not in a zpt (I have a key error on ldap filter) Anyone can help me? Thanks, Fabio -- Dott. Fabio Marcone 2T srl Telefono +39 - 0871- 540154 Fax +39 - 0871- 571594 Indirizzo Viale B. Croce 573, 66013 Chieti Scalo (CH) ___ 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] ldap
I don't know I install it using debian Sarge package. but exists documentation about it? or exist another similar product? I need to access and modify a ldap directory from zope. Do you think I have to do it from python? Thanks, Fabio Alle 12:46, venerdì 22 aprile 05, Jens Vagelpohl ha scritto: On Apr 22, 2005, at 11:38, Fabio Marcone wrote: Hi! I'm looking for a zope-ldap howto. In particular I need to use a ldap connection in a zpt and I set Connection and Filter LDAP correctly (in test page) but not in a zpt (I have a key error on ldap filter) Anyone can help me? If you are talking specifically about the ZopeLDAP product, that's been deprecated years ago and has not seen any maintenance for 4 years or so. jens ___ 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 ) -- Dott. Fabio Marcone 2T srl Telefono +39 - 0871- 540154 Fax +39 - 0871- 571594 Indirizzo Viale B. Croce 573, 66013 Chieti Scalo (CH) ___ 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] browsing server filesystem
Hi! I need to browse (from a client) server file system. Does exist a zope object to do that? or, how can I do it? (I think external method in python, isn't it?) Thanks, Fabio ___ 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 )