[Erp5-report] r28661 - /erp5/trunk/products/ZSQLCatalog/Operator/OperatorBase.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Aug 27 16:18:17 CEST 2009
Author: jerome
Date: Thu Aug 27 16:18:16 2009
New Revision: 28661
URL: http://svn.erp5.org?rev=28661&view=rev
Log:
describe how 'format' parameter is used for queries where type=float
Modified:
erp5/trunk/products/ZSQLCatalog/Operator/OperatorBase.py
Modified: erp5/trunk/products/ZSQLCatalog/Operator/OperatorBase.py
URL: http://svn.erp5.org/erp5/trunk/products/ZSQLCatalog/Operator/OperatorBase.py?rev=28661&r1=28660&r2=28661&view=diff
==============================================================================
--- erp5/trunk/products/ZSQLCatalog/Operator/OperatorBase.py [utf8] (original)
+++ erp5/trunk/products/ZSQLCatalog/Operator/OperatorBase.py [utf8] Thu Aug 27 16:18:16 2009
@@ -82,6 +82,15 @@
@profiler_decorator
def columnFloatRenderer(column, format=None):
+ """Format a float column.
+
+ 'format' is a string describing the precision, in which '.' is used as
+ decimal separator. The number of decimal places in this format string is used
+ to search with this precision.
+
+ For example column=0.12345, format='0.00' will match values equals to 0.12
+ when truncated to 2 places.
+ """
if format is not None:
if '.' in format:
format = format.replace(' ', '')
More information about the Erp5-report
mailing list