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


Attachment: pgpCxr0YdPdfK.pgp
Description: PGP signature

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

Reply via email to