--On 10. September 2008 19:57:29 -0700 David Bear <[EMAIL PROTECTED]> wrote:
I have a script that calls a template. The template has a tal expressions like this <p tal:content="structure here/ploneDoc/getText"> </p> I want my script to call the template in such a way that the string 'ploneDoc' is replaced by a different string.
The well-known techniques for obtaining a object through acquisition obj = getattr(context, object_id) or path traversal obj = context.restrictedTraverse('/path/to/obj') also works here. -aj
pgpCxr0YdPdfK.pgp
Description: PGP signature
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )