31 Aug
2006
31 Aug
'06
6:36 p.m.
Is this the equivalence? <dtml-var day fmt=%02i> <td tal:replace="python:'%02i'%item['day']> or exists other way? Greetings.
6:54 p.m.
New subject: [Zope] DTML -> ZPT
Antonio Beamud Montero wrote:
Is this the equivalence?
<dtml-var day fmt=%02i>
<td tal:replace="python:'%02i'%item['day']>
or exists other way?
Yes, you format your output in a (possibly locales dependant) intermediate layer between your application and your template. In the easiest implementation it is a python script which queries the original item list and outputs a formattet item list you use directly w/ path expressions only. This way you can centrally control and switch your formatting w/o touching the templates anymore. Regards Tino Wildenhain
7157
Age (days ago)
7157
Last active (days ago)
2 comments
3 participants
participants (3)
-
Andreas Jung -
Antonio Beamud Montero -
Tino Wildenhain