[ZPT] Formulators "form" TALES namespace and "result"
Philip Kilner
phil at xfr.co.uk
Fri Oct 1 09:30:52 EDT 2004
Hi List,
Am wrestling with a TALES expression which is used in a Formulator form.
The form lies within a repeat in my ZPT, where I am calling e.g. : -
<span tal:replace="result/CompanyName">org name</span>
Now, in Formulator I tend to thing of "form" as being equivalent to
"here" - but I find that I can neither access the variables I'm using in
the repeat (e.g. form/result/filed gives a key error) nor direct access
to the ZSQL method, e.g. : -
python: form.zsql_method().dictionaries()[0]['field_name']
...where I get "List Index Out of Range".
I feel as though I'm confused about name spaces for TALES within the
form - can anybody help?
--
Regards,
PhilK
Email: phil at xfr.co.uk / Voicemail & Facsimile: 07092 070518
"Work as if you lived in the early days of a better nation." - Alasdair Gray
More information about the ZPT
mailing list