[rhmessaging-commits] rhmessaging commits: r3993 - mgmt/newdata/cumin/python/cumin.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Wed May 26 14:19:35 EDT 2010


Author: eallen
Date: 2010-05-26 14:19:34 -0400 (Wed, 26 May 2010)
New Revision: 3993

Modified:
   mgmt/newdata/cumin/python/cumin/objectselector.py
Log:
Fixed problem with all checkboxes on a ObjectSelectionTable being checked

Modified: mgmt/newdata/cumin/python/cumin/objectselector.py
===================================================================
--- mgmt/newdata/cumin/python/cumin/objectselector.py	2010-05-26 15:20:39 UTC (rev 3992)
+++ mgmt/newdata/cumin/python/cumin/objectselector.py	2010-05-26 18:19:34 UTC (rev 3993)
@@ -149,6 +149,11 @@
 
         return "onclick=\"%s\"" % value
 
+    def render_checked_attr(self, session, record):
+        checks = self.get(session)
+        return record[self.parent.parent.field.index] in checks \
+            and "checked=\"checked\"" or ""
+
 class ObjectLinkColumn(ObjectAttributeColumn, LinkColumn):
     def __init__(self, app, name, attr, id_attr, frame_path):
         super(ObjectLinkColumn, self).__init__(app, name, attr)



More information about the rhmessaging-commits mailing list