[stringtemplate-interest] Problem in multivalued attribute
handling?
Terence Parr
parrt at cs.usfca.edu
Mon Jul 10 11:01:23 PDT 2006
On Jul 7, 2006, at 2:55 PM, Colin Bean wrote:
> Hi Praki,
>
> I noticed a similar issue recently; I hadn't gotten around to looking
> at it in depth (I also hadn't verified it in 2.2 yet, but sounds like
> its still there). As far as I know, PyST won't render any attribute
> (that's passed as an int or float) with a value of zero. I haven't
> looked at the source code, but I assume that somewhere there's a
> conditional that checks for the value/existence of an attribute, then
> checks it in such a way that a 0 evaluates to false and ST doesn't
> think that the attribute exists. If you're passing integer values
> into a template, casting them to a string before passing them causes
> all zero values to render correctly (that's the workaround I've been
> using for now, anyway).
I think this is simply a disconnect; I'll work with Marq to figure
this out when he pops his head up :) He must be very busy right now.
Ter
More information about the stringtemplate-interest
mailing list