Hmmm: I'm having problems with a PTL template with this code:
"%04d" % x
where x can be either an int or a long. If I change it to
"%04d" % int(x)
it works. Here's a quick illustration of the bug:
>>> from quixote.html import *
>>> t = htmltext("%04d")
>>> t % 342
>>> t % 342L
Traceback (most recent call last):
File "", line 1, in ?
File "/usr/lib/python2.3/site-packages/quixote/_py_htmltext.py", line 91, in
__mod__
return klass(self.s % args)
TypeError: int argument required
Neil, any clue why this is happening? It's not immediately obvious from
a quick glance at the code.
Greg
--
Greg Ward http://www.gerg.ca/
OUR PLAN HAS FAILED STOP JOHN DENVER IS NOT TRULY DEAD
STOP HE LIVES ON IN HIS MUSIC STOP PLEASE ADVISE FULL STOP