Skip to content

Commit ad723b3

Browse files
author
Richard Jones
committed
add "checked" to truth values for Boolean input
1 parent fa163de commit ad723b3

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

CHANGES.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
This file contains the changes to the Roundup system over time. The entries
22
are given with the most recent entry first.
33

4+
2004-05-?? 0.7.3
5+
Fixed:
6+
- add "checked" to truth values for Boolean input
7+
8+
49
2004-05-17 0.7.2
510
Fixed:
611
- anydbm sorting with None values (sf bug 952853)

doc/announcement.txt

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Roundup is a simple-to-use and -install issue-tracking system with
2+
command-line, web and e-mail interfaces. It is based on the winning design
3+
from Ka-Ping Yee in the Software Carpentry "Track" design competition.
4+
15
This maintenance release fixes some bugs in the 0.7 release of Roundup:
26

37
- anydbm sorting with None values (sf bug 952853)
@@ -35,13 +39,6 @@ Mailing lists - the place to ask questions:
3539
About Roundup
3640
=============
3741

38-
Roundup is a simple-to-use and -install issue-tracking system with
39-
command-line, web and e-mail interfaces. It is based on the winning design
40-
from Ka-Ping Yee in the Software Carpentry "Track" design competition.
41-
42-
Note: Ping is not responsible for this project. The contact for this
43-
project is [email protected].
44-
4542
Roundup manages a number of issues (with flexible properties such as
4643
"description", "priority", and so on) and provides the ability to:
4744

roundup/hyperdb.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: hyperdb.py,v 1.97 2004-05-02 23:16:05 richard Exp $
18+
# $Id: hyperdb.py,v 1.97.2.1 2004-05-18 21:50:30 richard Exp $
1919

2020
"""Hyperdatabase implementation, especially field types.
2121
"""
@@ -743,7 +743,8 @@ def rawToHyperdb(db, klass, itemid, propname, value,
743743
value = [str(x) for x in value]
744744
elif isinstance(proptype, Boolean):
745745
value = value.strip()
746-
value = value.lower() in ('yes', 'true', 'on', '1')
746+
# checked is a common HTML checkbox value
747+
value = value.lower() in ('checked', 'yes', 'true', 'on', '1')
747748
elif isinstance(proptype, Number):
748749
value = value.strip()
749750
try:

0 commit comments

Comments
 (0)