"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...



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

Reply via email to