[Erp5-report] r17114 - /erp5/trunk/products/ZSQLCatalog/SQLCatalog.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Oct 23 11:54:26 CEST 2007


Author: vincent
Date: Tue Oct 23 11:54:26 2007
New Revision: 17114

URL: http://svn.erp5.org?rev=17114&view=rev
Log:
Add missing API method declarations.

Modified:
    erp5/trunk/products/ZSQLCatalog/SQLCatalog.py

Modified: erp5/trunk/products/ZSQLCatalog/SQLCatalog.py
URL: http://svn.erp5.org/erp5/trunk/products/ZSQLCatalog/SQLCatalog.py?rev=17114&r1=17113&r2=17114&view=diff
==============================================================================
--- erp5/trunk/products/ZSQLCatalog/SQLCatalog.py (original)
+++ erp5/trunk/products/ZSQLCatalog/SQLCatalog.py Tue Oct 23 11:54:26 2007
@@ -237,6 +237,30 @@
           precision = len(float_format.split('.')[1])
           key = "TRUNCATE(%s,%s)" % (key, precision)
     return key
+
+  def asSQLExpression(self, key_alias_dict=None,
+                      keyword_search_keys=None,
+                      full_text_search_keys=None,
+                      ignore_empty_string=1, stat__=0):
+    """
+      Return a dictionnary containing the keys and value types:
+        'where_expression': string
+        'select_expression_list': string
+    """
+    raise NotImplementedError
+
+  def getSQLKeyList(self):
+    """
+      Return a list of keys used by this query and its subqueries.
+    """
+    raise NotImplementedError
+  
+  def getRelatedTableMapDict(self):
+    """
+      Return for each key used by this query (plus ones used by its
+      subqueries) the table alias mapping.
+    """
+    raise NotImplementedError
 
 class Query(QueryMixin):
   """




More information about the Erp5-report mailing list