Charlie Reiman wrote at 2003-1-14 11:39 -0800:
I'm in the middle of trying to reimplement some DTML stuff in ZPT and I'm hitting what must be newbie problems.
1) Iteration and python expressions.
I've got something like this:
<table class="info" width="100%" tal:repeat="origin python:here.getorigins( fd=request.other['from_date'], td=request.other['to_date'])">
I then want to nest another repeat statement, based on origin:
<tr class="somerow" tal:repeat="row python:here.innerstuff( request.other['from_date'], request.other['to_date'], origin)"> <!-- this line is borked -->
Using 'origin' here fails, This should not fail.
What happens precisely? Exception (Type, Value + Traceback!), wrong result?
...
2) Whither 'fmt='? There are three types of "fmt":
1. "C"-type format strings: use a python expression with the "%" operator 2. single parameter methods: use "obj/method" 3. special formatters: you find them in "Products.PythonScripts.standard" Dieter