Author: eallen
Date: 2008-09-22 15:48:51 -0400 (Mon, 22 Sep 2008)
New Revision: 2527
Modified:
mgmt/trunk/cumin/python/cumin/widgets.py
mgmt/trunk/cumin/python/cumin/widgets.strings
Log:
Added float type to Editable properties
Modified: mgmt/trunk/cumin/python/cumin/widgets.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/widgets.py 2008-09-22 19:48:09 UTC (rev 2526)
+++ mgmt/trunk/cumin/python/cumin/widgets.py 2008-09-22 19:48:51 UTC (rev 2527)
@@ -334,7 +334,7 @@
writer = Writer()
if not writable:
self.__readonly_template.render(writer, session, item)
- elif type == "number":
+ elif type == "float" or type == "integer":
self.__number_template.render(writer, session, item)
else:
uvalue = value.upper()
@@ -665,10 +665,12 @@
self.add_column(self.ids)
col = self.QNameColumn(app, "q_id")
- self.add_hidden_column(col)
+ col.visible = False
+ self.add_column(col)
col = self.ENameColumn(app, "e_id")
- self.add_hidden_column(col)
+ col.visible = False
+ self.add_column(col)
col = self.KeyColumn(app, "key")
self.add_column(col)
Modified: mgmt/trunk/cumin/python/cumin/widgets.strings
===================================================================
--- mgmt/trunk/cumin/python/cumin/widgets.strings 2008-09-22 19:48:09 UTC (rev 2526)
+++ mgmt/trunk/cumin/python/cumin/widgets.strings 2008-09-22 19:48:51 UTC (rev 2527)
@@ -359,6 +359,7 @@
[EditablePropertyRenderer.readonly_html]
<span class="edit_readonly">{display_val}</span><input
type="hidden" name="{ptype_name}"
value="{ptype_value}"/><input type="hidden"
name="{pname}" value="{val}"/>
+{orig_value}
[EditablePropertyRenderer.orig_html]
<input type="hidden" name="{porig_name}"
value="{porig_value}"/>
Show replies by date