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

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Jan 12 19:01:42 CET 2007


Author: jp
Date: Fri Jan 12 19:01:40 2007
New Revision: 12051

URL: http://svn.erp5.org?rev=12051&view=rev
Log:
This adds some compatibility between old naming and new naming (SQL vs. Sql). It also fixed asSQLJoinExpression so that domain trees may work again. This fix is a quick hack. The appropriate approach is to refactor the querying mechanism alltogether with queries in the catalog.

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

Modified: erp5/trunk/products/ZSQLCatalog/ZSQLCatalog.py
URL: http://svn.erp5.org/erp5/trunk/products/ZSQLCatalog/ZSQLCatalog.py?rev=12051&r1=12050&r2=12051&view=diff
==============================================================================
--- erp5/trunk/products/ZSQLCatalog/ZSQLCatalog.py (original)
+++ erp5/trunk/products/ZSQLCatalog/ZSQLCatalog.py Fri Jan 12 19:01:40 2007
@@ -814,6 +814,10 @@
       return catalog.buildSQLQuery(REQUEST=REQUEST, query_table=query_table, **kw)
     return ''
 
+  # Compatibility SQL Sql
+  security.declarePublic('buildSqlQuery')
+  buildSqlQuery = buildSQLQuery
+
   def searchResults(self, REQUEST=None, used=None, sql_catalog_id=None, **kw):
     """
     Search the catalog according to the ZTables search interface.




More information about the Erp5-report mailing list