Commit 20b4b7b8 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Modified to support view feature of ZSQLCatalog


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1940 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 10962e7e
......@@ -16,13 +16,14 @@ from_table_list:list
sort_on</params>
SELECT DISTINCT
<dtml-in getCatalogSearchResultKeys> <dtml-var sequence-item><dtml-if sequence-end> <dtml-else>, </dtml-if> </dtml-in>
FROM
<dtml-var "','.join(from_table_list)">
<dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>
<dtml-if selection_domain>, <dtml-var "selection_domain.asSqlJoinExpression()"> </dtml-if>
<dtml-if selection_report>, <dtml-var "selection_report.asSqlJoinExpression()"> </dtml-if>
WHERE
1 = 1
<dtml-in from_table_list><dtml-if "_['sequence-item']=='roles_and_users'">AND catalog.security_uid = <dtml-var sequence-item>.uid <dtml-else> AND catalog.uid = <dtml-var sequence-item>.uid </dtml-if> </dtml-in>
<dtml-if where_expression>
AND <dtml-var where_expression>
</dtml-if>
......
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