Skip to content

Commit dcf6188

Browse files
author
Richard Jones
committed
allow StringHTMLProperty in MultilinkHTMLProperty test to work
1 parent 1255558 commit dcf6188

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ are given with the most recent entry first.
1818
- bad entries for multilink editing in cgi don't traceback now (sf bug 640310)
1919
- detect and break email loops (sf bug 640854)
2020
- finished of handling of retired flag in filter() (sf bug 635260)
21+
- allow StringHTMLProperty in MultilinkHTMLProperty test to work
2122

2223

2324
2002-11-07 0.5.2

roundup/cgi/templating.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,9 +1091,10 @@ def __getitem__(self, num):
10911091
return klass(self._client, self._prop.classname, value)
10921092

10931093
def __contains__(self, value):
1094-
''' Support the "in" operator
1094+
''' Support the "in" operator. We have to make sure the passed-in
1095+
value is a string first, not a *HTMLProperty.
10951096
'''
1096-
return value in self._value
1097+
return str(value) in self._value
10971098

10981099
def reverse(self):
10991100
''' return the list in reverse order

0 commit comments

Comments
 (0)