Commits

Olemis Lang committed 83c261b

BH Dashboard #338 : BoolField = as_bool

  • Participants
  • Parent commits 3459851
  • Branches t338_widget_bool_fields

Comments (0)

Files changed (2)

+t338/t338_r1427886_BoolField.diff

File t338/t338_r1427886_BoolField.diff

+# HG changeset patch
+# Parent d143652322b7ec13c6bd1f0b7aaf7fa01297ba6a
+BH Dashboard #338 : Boolean fields for widget parameters
+
+diff -r d143652322b7 bloodhound_dashboard/bhdashboard/api.py
+--- a/bloodhound_dashboard/bhdashboard/api.py	Wed Jan 02 18:06:37 2013 +0000
++++ b/bloodhound_dashboard/bhdashboard/api.py	Mon Jan 07 13:28:47 2013 -0500
+@@ -34,6 +34,7 @@
+         Interface, TracError
+ from trac.perm import IPermissionRequestor
+ from trac.resource import get_resource_url, Resource, resource_exists
++from trac.util import as_bool
+ from trac.util.compat import set
+ from trac.util.datefmt import parse_date
+ from trac.util.translation import _
+@@ -411,3 +412,5 @@
+         else:
+             return loads(value)
+ 
++BoolField = as_bool
++