Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 2347:fbbda3b1816d
implement __nonzero__ for HTMLProperty
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 20 May 2004 23:16:58 +0000 |
| parents | 36ae1b14aaab |
| children | a53f87f2488a |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Thu May 20 22:18:37 2004 +0000 +++ b/roundup/cgi/templating.py Thu May 20 23:16:58 2004 +0000 @@ -1018,6 +1018,9 @@ return cmp(self._value, other._value) return cmp(self._value, other) + def __nonzero__(self): + return not not self._value + def isset(self): '''Is my _value not None?''' return self._value is not None
