equal
deleted
inserted
replaced
616 class BooleanField(Field): |
616 class BooleanField(Field): |
617 widget = Radio |
617 widget = Radio |
618 |
618 |
619 def vocabulary(self, form): |
619 def vocabulary(self, form): |
620 if self.choices: |
620 if self.choices: |
621 return self.choices |
621 return super(BooleanField, self).vocabulary(form) |
622 return [(form._cw._('yes'), '1'), (form._cw._('no'), '')] |
622 return [(form._cw._('yes'), '1'), (form._cw._('no'), '')] |
623 |
623 |
624 def process_form_value(self, form): |
624 def process_form_value(self, form): |
625 return bool(Field.process_form_value(self, form)) |
625 return bool(Field.process_form_value(self, form)) |
626 |
626 |