issue 519
This commit is contained in:
@@ -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
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user