Author: croberts
Date: 2012-08-16 16:46:10 +0000 (Thu, 16 Aug 2012)
New Revision: 5448
Modified:
trunk/cumin/python/cumin/objectselector.py
trunk/cumin/python/cumin/objectselector.strings
Log:
Now handling searching float columns with the basic operators for BZ705358
Modified: trunk/cumin/python/cumin/objectselector.py
===================================================================
--- trunk/cumin/python/cumin/objectselector.py 2012-08-15 19:50:50 UTC (rev 5447)
+++ trunk/cumin/python/cumin/objectselector.py 2012-08-16 16:46:10 UTC (rev 5448)
@@ -390,7 +390,7 @@
if sql_column.type.literal == "timestamp":
self.adapter.query.add_filter(self.SelectableFieldDateValueFilter(sql_column,
customvalue))
- elif sql_column.type.literal == "int8":
+ elif sql_column.type.literal == "int8" or sql_column.type.literal ==
"float8":
if operator == ">=":
self.adapter.query.add_filter(self.SelectableFieldValueFilter(sql_column,
">="))
elif operator == ">":
Modified: trunk/cumin/python/cumin/objectselector.strings
===================================================================
--- trunk/cumin/python/cumin/objectselector.strings 2012-08-15 19:50:50 UTC (rev 5447)
+++ trunk/cumin/python/cumin/objectselector.strings 2012-08-16 16:46:10 UTC (rev 5448)
@@ -308,7 +308,7 @@
function operator_toggle(select_box) {
field_type = select_box[select_box.selectedIndex].getAttribute("type");
- if (field_type != "int8") {
+ if (field_type != "int8" && field_type != "float8") {
select_box.getNext().setAttribute("style", "display:none");
select_box.getParent().getElement("label").setStyle("left","114px")
} else {
Show replies by date