[Zope] id question
Andreas Kostyrka
andreas@kostyrka.priv.at
17 Aug 2002 18:00:02 +0200
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