equal
deleted
inserted
replaced
677 self.max = max |
677 self.max = max |
678 |
678 |
679 |
679 |
680 class BooleanField(Field): |
680 class BooleanField(Field): |
681 widget = Radio |
681 widget = Radio |
|
682 |
|
683 def vocabulary(self, form): |
|
684 if self.choices: |
|
685 return self.choices |
|
686 return [(form.req._('yes'), '1'), (form.req._('no'), '')] |
682 |
687 |
683 |
688 |
684 class FloatField(IntField): |
689 class FloatField(IntField): |
685 def format_single_value(self, req, value): |
690 def format_single_value(self, req, value): |
686 formatstr = entity.req.property_value('ui.float-format') |
691 formatstr = entity.req.property_value('ui.float-format') |