How do i get an object id if i know the str(id) I can do an objectValues call and the if strOfId in objectValues but it seems a long way around Thanks
It depends upon where you are and what you are writing in but a simple obj = getattr(container, id) will work if you are in the same folder and in a Python Script. -- Andy McKay Agmweb Consulting http://www.agmweb.ca ----- Original Message ----- From: "Drew Nichols" <drew@mena.org.au> To: <zope@zope.org> Sent: Wednesday, August 28, 2002 5:46 PM Subject: [Zope] Object reference from string
How do i get an object id if i know the str(id) I can do an objectValues call and the if strOfId in objectValues but it seems a long way around
Thanks
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Andy McKay -
Drew Nichols