17 Aug
2002
17 Aug
'02
4:53 p.m.
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