'1' is also valid in the forms

This commit is contained in:
Yann Leboulanger 2005-04-24 16:14:50 +00:00
parent 7e733a195f
commit e2b6b84694
1 changed files with 1 additions and 1 deletions

View File

@ -441,7 +441,7 @@ class Connection:
for tag in tags: for tag in tags:
data = tag.getData() data = tag.getData()
if ctype == 'boolean': if ctype == 'boolean':
if data in ['yes', 'true', 'assent']: if data in ['yes', 'true', 'assent', '1']:
data = True data = True
else: else:
data = False data = False