"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

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to