Re: [Zope] Speaking of Python Methods....
22 Nov
2000
22 Nov
'00
9:24 p.m.
Steve Drees writes:
What's the PythonMethod equivalent of: <dtml-with callTypes> <dtml-var "_.getitem(_.str(2)).Name"> </dtml-with> To get the object:
getattr(callTypes,'2').Name then you must do something with it. "dtml-var" would render it. This means call it, if it is callable and convert to a string. The "callTypes" above may need to be replaced by "self.callTypes" or "context.callTypes", if "callTypes" is not yet in the functions namespace. Dieter
9266
Age (days ago)
9266
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dieter Maurer