projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99f006c
)
wui/wapi/webish: HTML form checkboxes send the value "on", so let's interpret that...
author
Zooko O'Whielacronx
<zooko@zooko.com>
Sat, 1 Mar 2008 03:29:42 +0000
(20:29 -0700)
committer
Zooko O'Whielacronx
<zooko@zooko.com>
Sat, 1 Mar 2008 03:29:42 +0000
(20:29 -0700)
src/allmydata/webish.py
patch
|
blob
|
history
diff --git
a/src/allmydata/webish.py
b/src/allmydata/webish.py
index f8da62717bf8e3d30b3d1d7877b3fa43048db9e0..bb5845034b96110d59a25548390cd02a396eafff 100644
(file)
--- a/
src/allmydata/webish.py
+++ b/
src/allmydata/webish.py
@@
-33,8
+33,8
@@
class ILocalAccess(Interface):
can talk to the webserver control over the local (disk) filesystem."""
def boolean_of_arg(arg):
- assert arg.lower() in ("true", "t", "1", "false", "f", "0")
- return arg.lower() in ("true", "t", "1")
+ assert arg.lower() in ("true", "t", "1", "false", "f", "0"
, "on", "off"
)
+ return arg.lower() in ("true", "t", "1"
, "on"
)
def get_arg(req, argname, default=None, multiple=False):
"""Extract an argument from either the query args (req.args) or the form