Re: [Zope] no accounts in root user folder?

2006-08-10 Thread JPenny
[EMAIL PROTECTED] wrote on 08/10/2006 02:02:28 PM: > Vangelis Mihalopoulos wrote at 2006-8-10 10:58 +0300: > >I have a zope app in a folder and have an exUserFolder in there to > >authenticate the app's users. The app is working fine and i get > >authenticated by the exUserFolder and everything

Re: [Zope] PUT_factory and File object?

2006-08-10 Thread Dieter Maurer
Eric Fernandez wrote at 2006-8-10 12:52 +0100: > ... >from OFS.Image import File > >def PUT_factory( self, name, typ, body ): >if typ.startswith('text'): >ob = File(name, '', body, content_type=typ) >return ob > > >However, I cannot upload jpg files anymore... What am I doing wrong

Re: [Zope] no accounts in root user folder?

2006-08-10 Thread Dieter Maurer
Vangelis Mihalopoulos wrote at 2006-8-10 10:58 +0300: >I have a zope app in a folder and have an exUserFolder in there to >authenticate the app's users. The app is working fine and i get >authenticated by the exUserFolder and everything works. I tried to >delete the single "admin" account (with

[Zope] Re: Using eggs in a Zope instance

2006-08-10 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anton Stonor wrote: > Python eggs are fun and powerful. However, there is one thing I can't > get right when using them for Zope projects: > > Sometimes I would like eggs to live in $INSTANCE/lib/python instead of > site-packages. E.g. if different in

Re: [Zope] PUT_factory and File object?

2006-08-10 Thread Eric Fernandez
Stefan H. Holek wrote: On 10. Aug 2006, at 13:52, Eric Fernandez wrote: def PUT_factory( self, name, typ, body ): ob = None if typ.startswith('text'): ob = File(name, '', body, content_type=typ) return ob However, I cannot upload jpg files anymore... What am I doing wron

Re: [Zope] PUT_factory and File object?

2006-08-10 Thread Stefan H. Holek
On 10. Aug 2006, at 13:52, Eric Fernandez wrote: def PUT_factory( self, name, typ, body ): ob = None if typ.startswith('text'): ob = File(name, '', body, content_type=typ) return ob However, I cannot upload jpg files anymore... What am I doing wrong there? Stefan --

Re: [Zope] PUT_factory and File object?

2006-08-10 Thread Eric Fernandez
Eric Fernandez wrote: Hi, I am trying to upload text files as File objects instead of DTML documents to avoid HTML escaping. What is the type of the File object in Zope ? The example in the Zope book are ZopePageTemplate and PythonScript objects,, but I just want a File object. This does not

[Zope] PUT_factory and File object?

2006-08-10 Thread Eric Fernandez
Hi, I am trying to upload text files as File objects instead of DTML documents to avoid HTML escaping. What is the type of the File object in Zope ? The example in the Zope book are ZopePageTemplate and PythonScript objects,, but I just want a File object. This does not work: def PUT_factory

Re: [Zope] Using eggs in a Zope instance

2006-08-10 Thread Chris McDonough
Can you not just copy the egg file to $INSTANCE/lib/python? - C On Aug 10, 2006, at 4:41 AM, Anton Stonor wrote: Python eggs are fun and powerful. However, there is one thing I can't get right when using them for Zope projects: Sometimes I would like eggs to live in $INSTANCE/lib/python ins

Re: [Zope] no accounts in root user folder?

2006-08-10 Thread Stefan H. Holek
Yes, you must never delete an account that owns ZODB objects. Stefan On 10. Aug 2006, at 09:58, Vangelis Mihalopoulos wrote: where 'call_backend' is an External Method called by a Python Script. All objects in zope are owned by the "admin". Could this be causing the problem? -- Anything

[Zope] Using eggs in a Zope instance

2006-08-10 Thread Anton Stonor
Python eggs are fun and powerful. However, there is one thing I can't get right when using them for Zope projects: Sometimes I would like eggs to live in $INSTANCE/lib/python instead of site-packages. E.g. if different instances needs different versions of a package. However, easy_install wo

[Zope] no accounts in root user folder?

2006-08-10 Thread Vangelis Mihalopoulos
Hello, I have a zope app in a folder and have an exUserFolder in there to authenticate the app's users. The app is working fine and i get authenticated by the exUserFolder and everything works. I tried to delete the single "admin" account (with Manager privileges) from the root standard user

Re: [Zope] how to detect when a object is added through the zmi

2006-08-10 Thread Gabriel Genellina
At Thursday 10/8/2006 04:37, Kees de Brabander wrote: Still learning and puzzling. I have an container object based on a product. I want to detect when a DTMLMethod with a specific id is added through the zmi, as to fire further action. Do I have any option? Which Zope version? Zope2: ObjectMa

Re: [Zope] how to detect when a object is added through the zmi

2006-08-10 Thread Andreas Jung
--On 10. August 2006 09:37:07 +0200 Kees de Brabander <[EMAIL PROTECTED]> wrote: Hi, Still learning and puzzling. I have an container object based on a product. I want to detect when a DTMLMethod with a specific id is added through the zmi, as to fire further action. Do I have any option? ti

RE: [Zope] The id "s5/begin" contains characters illegal in URLs

2006-08-10 Thread Gabriel Genellina
At Thursday 10/8/2006 04:01, Sinang, Danny wrote: The object RECEIPT_OF_SOURCE_DOCUMENTS does not support this operation. You should then ask the OpenFlow guys how to rename an item. Gabriel Genellina Softlab SRL ___

[Zope] how to detect when a object is added through the zmi

2006-08-10 Thread Kees de Brabander
Hi, Still learning and puzzling. I have an container object based on a product. I want to detect when a DTMLMethod with a specific id is added through the zmi, as to fire further action. Do I have any option? tia, cb ___ Zope maillist - Zope@zope.org h

RE: [Zope] The id "s5/begin" contains characters illegal in URLs

2006-08-10 Thread Sinang, Danny
> You must call manage_renameObject on the object *container*, passing the old name and the new name. Something like this: > object = result[1] > container = object.aq_parent > container.manage_renameObject(object.id, object.id.lower()) Thanks Gabriel. I did exactly as you suggested, but