|
From: Sinang, D. <D.S...@sp...> - 2006-08-10 07:43:38
|
Hello,
The Zope mailing list guys can't figure this out, and referred me to
you.
Hope someone here can help.
Regards,
Danny=20
-----Original Message-----
From: zop...@zo... [mailto:zop...@zo...] On Behalf Of
Sinang, Danny
Sent: Thursday, August 10, 2006 3:02 PM
To: zo...@zo...
Subject: RE: [Zope] The id "s5/begin" contains characters illegal in
URLs
> You must call manage_renameObject on the object *container*, passing
the old name and the new name. Something like this:
> object =3D result[1]
> container =3D object.aq_parent
> container.manage_renameObject(object.id, object.id.lower())
Thanks Gabriel.
I did exactly as you suggested, but ran into this error :
/////////////////////////////////////////////////
The id "begin" is invalid - it is already in use.
/////////////////////////////////////////////////
"Begin" is the first activity. It could be some reserved word within
OpenFlow or Zope - not really sure.=20
In any case, I tried skipping it, but ran into another error message
saying :
///////////////////////////////////////////////////////////////////////
The object RECEIPT_OF_SOURCE_DOCUMENTS does not support this operation.
///////////////////////////////////////////////////////////////////////
My code looks like this :
////////////////////////////////////////////////////////////////////////
/
wf =3D container.GeneralWorkflow
catalog =3D wf.Catalog
results =3D catalog.ZopeFind(wf, obj_metatypes=3D['Activity'], =
search_sub=3D1)
for result in results:
print result[1].id
if result[1].id <> 'Begin':
object =3D result[1]
container =3D object.aq_parent
container.manage_renameObject(object.id, object.id.lower())
return printed=20
////////////////////////////////////////////////////////////////////////
/
Regards,
Danny
_______________________________________________
Zope maillist - Zo...@zo...
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 )
|