Skip to content

Commit

Permalink
added note for improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
projekt01 committed Jul 6, 2013
1 parent 76d2c14 commit 47f250c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/z3c/form/browser/checkbox.py
Expand Up @@ -44,6 +44,9 @@ def update(self):
"""See z3c.form.interfaces.IWidget."""
super(CheckBoxWidget, self).update()
widget.addFieldClass(self)
# XXX: this is to early for setup items. See select widget how this
# sould be done. Setup the items here doens't allow to override the
# widget.value in updateWidgets, ri
self.items = []
for count, term in enumerate(self.terms):
checked = self.isChecked(term)
Expand Down
3 changes: 3 additions & 0 deletions src/z3c/form/browser/radio.py
Expand Up @@ -42,6 +42,9 @@ def isChecked(self, term):
def update(self):
"""See z3c.form.interfaces.IWidget."""
super(RadioWidget, self).update()
# XXX: this is to early for setup items. See select widget how this
# sould be done. Setup the items here doens't allow to override the
# widget.value in updateWidgets, ri
widget.addFieldClass(self)
self.items = []
for count, term in enumerate(self.terms):
Expand Down

0 comments on commit 47f250c

Please sign in to comment.