Skip to content

Commit c1c69ec

Browse files
issue2550830: Fixed. Made LinkHTMLProperty a new-style class.
1 parent 47a2a11 commit c1c69ec

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ Features:
2626

2727
Fixed:
2828

29+
- issue2550830 An empty LinkHTMLProperty cannot be compared successfully.
30+
Improves the query editing page. Reported and fixed by R David Murray
31+
(Bernhard Reiter).
2932
- Fix Release-date of 1.5.0 in this file (thanks to Bernhard for
3033
discovery) (Ralf Schlatterbeck)
3134
- Pythons cgi form code can return a TypeError, we now guard for this

roundup/cgi/templating.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1903,7 +1903,7 @@ def field(self, size=30, **kwargs):
19031903
return self.input(name=self._formname, value=value, size=size,
19041904
**kwargs)
19051905

1906-
class LinkHTMLProperty(HTMLProperty):
1906+
class LinkHTMLProperty(HTMLProperty, object):
19071907
""" Link HTMLProperty
19081908
Include the above as well as being able to access the class
19091909
information. Stringifying the object itself results in the value
@@ -1912,6 +1912,9 @@ class LinkHTMLProperty(HTMLProperty):
19121912
property accessed (so item/assignedto/name would look up the user
19131913
entry identified by the assignedto property on item, and then the
19141914
name property of that user)
1915+
1916+
(Has been turned into a new-style class to enable comparisons
1917+
of values with None, see issue2550830.)
19151918
"""
19161919
def __init__(self, *args, **kw):
19171920
HTMLProperty.__init__(self, *args, **kw)

0 commit comments

Comments
 (0)