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

2006-08-10 Thread Sinang, Danny
Because '/' is a reserved character since it is used in URLs as path separator. Any workarounds ? Is there a way to refer to the said objects without using the '/' ? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope **

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

2006-08-10 Thread Andreas Jung
--On 10. August 2006 13:59:55 +0800 Sinang, Danny [EMAIL PROTECTED] wrote: Because '/' is a reserved character since it is used in URLs as path separator. Any workarounds ? Is there a way to refer to the said objects without using the '/' ? Huh? Usually you have no chance to create a

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

2006-08-10 Thread Sinang, Danny
Huh? Usually you have no chance to create a Zope object with such an id. So there is no need to rename something that can't exist be definition :-) Exactly. The said object, s5/Begin, is the Begin activity of the s5 process found in the GeneralWorkflow workflow - which is an OpenFlow (

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

2006-08-10 Thread Andreas Jung
--On 10. August 2006 14:19:40 +0800 Sinang, Danny [EMAIL PROTECTED] wrote: Huh? Usually you have no chance to create a Zope object with such an id. So there is no need to rename something that can't exist be definition :-) Exactly. The said object, s5/Begin, is the Begin activity of

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

2006-08-10 Thread Gabriel Genellina
At Thursday 10/8/2006 03:19, Sinang, Danny wrote: I was able to rename my processes (S5, S100, S200) to their lowercase counterparts since all I had to do was do : When I try to rename the activities found in those processes, I try to do likewise, but the ZopeFind results come out like this :

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 ran

[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

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

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?

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:

[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

[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

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

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

[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

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

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
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

[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

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

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 there?

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