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

Gabriel Genellina gagsl-zope at yahoo.com.ar
Thu Aug 10 02:37:53 EDT 2006


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 :
>
>('S100/Begin', <activity at /dev/danny/wms/GeneralWorkflow/S100/Begin>)
>('S100/RECEIPT_OF_SOURCE_DOCUMENTS', <activity at
>/dev/danny/wms/GeneralWorkflow/S100/RECEIPT_OF_SOURCE_DOCUMENTS>)
>('S100/CHECK_MS_BATCHING', <activity at
>/dev/danny/wms/GeneralWorkflow/S100/CHECK_MS_BATCHING>)
>
>To call manage_renameObject (), I have to supply it with the object
>name.

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



Gabriel Genellina
Softlab SRL 


	
	
		
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas



More information about the Zope mailing list