Commit b20eddbd authored by Jean-Paul Smets's avatar Jean-Paul Smets

This adds some compatibility between old naming and new naming (SQL vs. Sql)....

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.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12051 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 391b2a38
...@@ -814,6 +814,10 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -814,6 +814,10 @@ class ZCatalog(Folder, Persistent, Implicit):
return catalog.buildSQLQuery(REQUEST=REQUEST, query_table=query_table, **kw) return catalog.buildSQLQuery(REQUEST=REQUEST, query_table=query_table, **kw)
return '' return ''
# Compatibility SQL Sql
security.declarePublic('buildSqlQuery')
buildSqlQuery = buildSQLQuery
def searchResults(self, REQUEST=None, used=None, sql_catalog_id=None, **kw): def searchResults(self, REQUEST=None, used=None, sql_catalog_id=None, **kw):
""" """
Search the catalog according to the ZTables search interface. Search the catalog according to the ZTables search interface.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment