changeset 2290:b7b913dbfd7f maint-0.7

HTML templating isset() inverted [SF#951779]
author Richard Jones <richard@users.sourceforge.net>
date Wed, 12 May 2004 22:35:12 +0000
parents 105a4079b98f
children f58a7d857fef
files CHANGES.txt roundup/cgi/templating.py
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Wed May 12 22:31:37 2004 +0000
+++ b/CHANGES.txt	Wed May 12 22:35:12 2004 +0000
@@ -5,6 +5,7 @@
 Fixed:
 - anydbm sorting with None values (sf bug 952853)
 - roundup-server -g option not recognised (sf bug 952310)
+- HTML templating isset() inverted (sf bug 951779)
 
 
 2004-05-07 0.7.1
--- a/roundup/cgi/templating.py	Wed May 12 22:31:37 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/