Does anyone now how I might take a string and turn it into an object reference in DTML? By that, I mean, I want to take a string like: 'object.subobject.subobject' from a database, and I want to reference it as <dtml-var object.subobject.subobject>. I think this is a simple, straightforward thing, but I've been wracking my brain over it.
"Leichtman, David J" wrote:
Does anyone now how I might take a string and turn it into an object reference in DTML?
By that, I mean, I want to take a string like: 'object.subobject.subobject' from a database, and I want to reference it as <dtml-var object.subobject.subobject>. I think this is a simple, straightforward thing, but I've been wracking my brain over it.
Well, your eample will work just fine with some quotes and a bit of fun: <dtml-var "object.subobject.subobject(_.None,_)"> but only because . is the seperator is python object syntax... cheers, Chris
participants (2)
-
Chris Withers -
Leichtman, David J