diff roundup/cgi/templating.py @ 2289:6d16b967f89d

HTML templating isset() inverted [SF#951779]
author Richard Jones <richard@users.sourceforge.net>
date Wed, 12 May 2004 22:35:12 +0000
parents a13ec40cf8f5
children 7c8d2e9a0566
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Wed May 12 22:30:25 2004 +0000
+++ b/roundup/cgi/templating.py	Wed May 12 22:35:12 2004 +0000
@@ -7,7 +7,6 @@
 - Multilink property additions: change_note and new_upload
 - Add class.find() too
 - NumberHTMLProperty should support numeric operations
-- HTMLProperty should have an isset() method
 '''
 
 __docformat__ = 'restructuredtext'
@@ -1018,8 +1017,8 @@
         return cmp(self._value, other)
 
     def isset(self):
-        '''Is my _value None?'''
-        return self._value is None
+        '''Is my _value not None?'''
+        return self._value is not None
 
     def is_edit_ok(self):
         ''' Is the user allowed to Edit the current class?
@@ -1556,8 +1555,8 @@
         return str(value) in self._value
 
     def isset(self):
-        '''Is my _value []?'''
-        return self._value == []
+        '''Is my _value not []?'''
+        return self._value != []
 
     def reverse(self):
         ''' return the list in reverse order

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