11 Sep
2008
11 Sep
'08
5:24 a.m.
--On 10. September 2008 19:57:29 -0700 David Bear <David.Bear@asu.edu> 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