diff roundup/cgi/templating.py @ 1325:2e5a9fc7abd5

allow StringHTMLProperty in MultilinkHTMLProperty test to work
author Richard Jones <richard@users.sourceforge.net>
date Tue, 10 Dec 2002 23:14:33 +0000
parents 80eef084069a
children e2d51ba4f6b1
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Tue Dec 10 06:08:36 2002 +0000
+++ b/roundup/cgi/templating.py	Tue Dec 10 23:14:33 2002 +0000
@@ -1091,9 +1091,10 @@
         return klass(self._client, self._prop.classname, value)
 
     def __contains__(self, value):
-        ''' Support the "in" operator
+        ''' Support the "in" operator. We have to make sure the passed-in
+            value is a string first, not a *HTMLProperty.
         '''
-        return value in self._value
+        return str(value) in self._value
 
     def reverse(self):
         ''' return the list in reverse order

Roundup Issue Tracker: http://roundup-tracker.org/