incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [13/37] git commit: [#5749] ticket:504 Inherit Radio from InputField
Date Mon, 16 Dec 2013 22:16:13 GMT
[#5749] ticket:504 Inherit Radio from InputField

Shoudn't inherit from Checkbox, 'cause it causes exception in
prepare_context, when saving multiple milestone fields.


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/8fa3f50c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/8fa3f50c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/8fa3f50c

Branch: refs/heads/db/5424
Commit: 8fa3f50cf7ae0a691cb8bb24efabd334d4a90d18
Parents: 1ba6c8d
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Mon Dec 16 15:55:57 2013 +0200
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Mon Dec 16 17:28:02 2013 +0000

----------------------------------------------------------------------
 Allura/allura/lib/widgets/form_fields.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/8fa3f50c/Allura/allura/lib/widgets/form_fields.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/widgets/form_fields.py b/Allura/allura/lib/widgets/form_fields.py
index c53e342..f59b5fd 100644
--- a/Allura/allura/lib/widgets/form_fields.py
+++ b/Allura/allura/lib/widgets/form_fields.py
@@ -218,7 +218,7 @@ class SubmitButton(ew.SubmitButton):
     attrs={'class':'ui-state-default ui-button ui-button-text'}
 
 
-class Radio(ew.Checkbox):
+class Radio(ew.InputField):
     template=ew_core.render.Snippet('''<input {% if value %} checked{% endif %} {{widget.j2_attrs({
         'id':id,
         'type':field_type,
@@ -228,7 +228,7 @@ class Radio(ew.Checkbox):
         'value':value},
         attrs)}}>''', 'jinja2')
     defaults=dict(
-        ew.Checkbox.defaults,
+        ew.InputField.defaults,
         field_type='radio')
 
 


Mime
View raw message