[albatross-users] <al-input> and zero's

Michael C. Neel neel at mediapulse.com
Tue Nov 19 07:09:37 EST 2002


It doesn't look like albatross handle ints with a value of zero.  The
following shows the problem...

>>> import albatross
>>> ctx = albatross.SimpleContext('.')
>>> ctx.locals.zero = 0
>>> ctx.locals.one = 1
>>> albatross.Template(ctx, '<magic>', '''
... <al-input name="zero" whitespace>
... <al-input name="one" whitespace>
... ''').to_html(ctx)
>>> ctx.flush_content()
<input name="zero">
<input name="one" value="1">

One would expect that zero would be <input name="zero" value="0">.  I've
been trying different things, but cannot seem to find a way for
albatross to set a value to zero.

Mike



More information about the Albatross-users mailing list