issue 519

This commit is contained in:
Massimo Di Pierro
2011-12-16 11:14:20 -06:00
parent 6ae47144cd
commit d225912bab
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.4 (2011-12-16 10:35:39) stable
Version 1.99.4 (2011-12-16 11:14:12) stable
+4 -2
View File
@@ -1583,7 +1583,9 @@ class INPUT(DIV):
_value = None
else:
_value = str(self['_value'])
if t == 'checkbox' and not '_checked' in self.attributes:
if '_checked' in self.attributes and not 'value' in self.attributes:
pass
elif t == 'checkbox':
if not _value:
_value = self['_value'] = 'on'
if not value:
@@ -1593,7 +1595,7 @@ class INPUT(DIV):
elif not isinstance(value,(list,tuple)):
value = str(value).split('|')
self['_checked'] = _value in value and 'checked' or None
elif t == 'radio' and not '_checked' in self.attributes:
elif t == 'radio':
if str(value) == str(_value):
self['_checked'] = 'checked'
else: