[Zope] Call a string function
Chris McDonough
chrism@digicool.com
Mon, 04 Jun 2001 21:59:25 -0400
Hi Michael, this should work (assuming "num" is 49, for instance):
<dtml-var num fmt="%05d">
For more info on string formatting functions, see
http://www.myworld.privateweb.at/rk/pyformat.htm
"Montagne, Michael" wrote:
>
> Their is a function called zfill that can change a number (ie 49) into
> "00049". The numbers I return from my database are jobnumbers so they
> should show up with at least five digits. How do I call this function in a
> zope page?
>
> -mjm
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )