26 Nov
1999
26 Nov
'99
9:12 a.m.
Ethan Fremen wrote:
<dtml-let name=id pdf=end pdffile="name + pdf" filesize="_[pdffile].get_size() / 1024">
<p class="download"><a href="<dtml-var absolute_url>.pdf">Download</a> <dtml-var filesize>kb</p> </dtml-let>
Having now used it for the first time, I think that dtml-let and similar constructs should be pure python, as PythonMethods... Let's say I call that pythonmethood kb, then I'd do something like this: <dtml-var kb> or even better &dtml-kb; and kb would just return the final string I'm looking for (file size in KB). -- Ethan "mindlace" Fremen you cannot abdicate responsibility for your ideology.
9651
Age (days ago)
9651
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ethan Fremen