Identation failed in patch code after pasted here. Patch file is attached
> [1]:
>
> *** form.py 2010-03-20 19:40:06.000000000 +0200--- form_modified.py
> 2011-03-17 10:10:01.198136668 +0200****************** 301,307 ****
> return '<input %s/>' % attrs
>
> def set_value(self, value):! self.checked = bool(value)
>
> def get_value(self):
> return self.checked--- 301,313 ----
> return '<input %s/>' % attrs
>
> def set_value(self, value):! if isinstance(value, list):!
> if self.value in value:! self.checked = True! else:!
> self.checked = False! else:! self.checked = bool(value)
>
> def get_value(self):
> return self.checked
>
> --
> Aydın Şen
>
--
Aydın Şen
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/webpy?hl=en.
*** form.py 2010-03-20 19:40:06.000000000 +0200
--- form_modified.py 2011-03-17 10:10:01.198136668 +0200
***************
*** 301,307 ****
return '<input %s/>' % attrs
def set_value(self, value):
! self.checked = bool(value)
def get_value(self):
return self.checked
--- 301,313 ----
return '<input %s/>' % attrs
def set_value(self, value):
! if isinstance(value, list):
! if self.value in value:
! self.checked = True
! else:
! self.checked = False
! else:
! self.checked = bool(value)
def get_value(self):
return self.checked