Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 1323:80eef084069a
Fix to handle bad form submissions, Links and the magic -1 form value.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 10 Dec 2002 06:02:00 +0000 |
| parents | c0546b95aad1 |
| children | 2e5a9fc7abd5 |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Tue Dec 10 00:46:55 2002 +0000 +++ b/roundup/cgi/templating.py Tue Dec 10 06:02:00 2002 +0000 @@ -930,6 +930,13 @@ entry identified by the assignedto property on item, and then the name property of that user) ''' + def __init__(self, *args): + HTMLProperty.__init__(self, *args) + # if we're representing a form value, then the -1 from the form really + # should be a None + if str(self._value) == '-1': + self._value = None + def __getattr__(self, attr): ''' return a new HTMLItem ''' #print 'Link.getattr', (self, attr, self._value)
