Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 4864:f630eb0adcee
issue2550830: Fixed. Made LinkHTMLProperty a new-style class.
| author | Bernhard Reiter <bernhard@intevation.de> |
|---|---|
| date | Wed, 12 Mar 2014 17:45:45 +0100 |
| parents | e8ae54db8b95 |
| children | cdec6ed210d0 |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Wed Mar 12 08:46:57 2014 +0100 +++ b/roundup/cgi/templating.py Wed Mar 12 17:45:45 2014 +0100 @@ -1903,7 +1903,7 @@ return self.input(name=self._formname, value=value, size=size, **kwargs) -class LinkHTMLProperty(HTMLProperty): +class LinkHTMLProperty(HTMLProperty, object): """ Link HTMLProperty Include the above as well as being able to access the class information. Stringifying the object itself results in the value @@ -1912,6 +1912,9 @@ property accessed (so item/assignedto/name would look up the user entry identified by the assignedto property on item, and then the name property of that user) + + (Has been turned into a new-style class to enable comparisons + of values with None, see issue2550830.) """ def __init__(self, *args, **kw): HTMLProperty.__init__(self, *args, **kw)
