[Zope] id question
Jens Vagelpohl
jens@zope.com
Sat, 17 Aug 2002 12:53:45 -0400
use the getId method on your object. this will work reliably in most cases
to get you the id
jens
On Saturday, August 17, 2002, at 12:00 , Andreas Kostyrka wrote:
> Hi!
>
> I've been wondering, if id can also be a method (callable object)?
> (I've been getting strange results from objectValues() :( )
>
> I seem to need this code in a PythonScript:
>
> for ob in container.objectValues(["Structured Document",
> "Ordered Folder"]):
> myid=ob.id
> if callable(myid):
> myid=myid()
> if myid=='index_html':
> pass
> else:
> pass
>
> If so, is there any way to get the "autocall" effect of <dtml-var id> in
> a PythonScript?
>
> Andreas
>