Skip to content

Commit df490aa

Browse files
author
Richard Jones
committed
HTML templating isset() inverted [SF#951779]
1 parent 2eb8e44 commit df490aa

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ are given with the most recent entry first.
55
Fixed:
66
- anydbm sorting with None values (sf bug 952853)
77
- roundup-server -g option not recognised (sf bug 952310)
8+
- HTML templating isset() inverted (sf bug 951779)
89

910

1011
2004-05-07 0.7.1

roundup/cgi/templating.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
- Multilink property additions: change_note and new_upload
88
- Add class.find() too
99
- NumberHTMLProperty should support numeric operations
10-
- HTMLProperty should have an isset() method
1110
'''
1211

1312
__docformat__ = 'restructuredtext'
@@ -1018,8 +1017,8 @@ def __cmp__(self, other):
10181017
return cmp(self._value, other)
10191018

10201019
def isset(self):
1021-
'''Is my _value None?'''
1022-
return self._value is None
1020+
'''Is my _value not None?'''
1021+
return self._value is not None
10231022

10241023
def is_edit_ok(self):
10251024
''' Is the user allowed to Edit the current class?
@@ -1556,8 +1555,8 @@ def __contains__(self, value):
15561555
return str(value) in self._value
15571556

15581557
def isset(self):
1559-
'''Is my _value []?'''
1560-
return self._value == []
1558+
'''Is my _value not []?'''
1559+
return self._value != []
15611560

15621561
def reverse(self):
15631562
''' return the list in reverse order

0 commit comments

Comments
 (0)