Commit f2032cd1 authored by Julien Muchembled's avatar Julien Muchembled

Clean XML of Z SQL Methods of most erp5_* BT

Excluded BT:
- erp5_banking_*
- erp5_bpm
- erp5_full_text_sphinxse_catalog
- erp5_mysql_ndb_catalog

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41518 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e9039a4e
No related merge requests found
...@@ -6,49 +6,6 @@ ...@@ -6,49 +6,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>table_0</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>table_1</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list>
<string>table_0</string>
<string>table_1</string>
</list>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>arguments_src</string> </key> <key> <string>arguments_src</string> </key>
<value> <string>table_0\r\n <value> <string>table_0\r\n
...@@ -75,56 +32,6 @@ AND <dtml-var table_0>.uid = catalog.uid ...@@ -75,56 +32,6 @@ AND <dtml-var table_0>.uid = catalog.uid
]]></string> </value> ]]></string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<dtml-var table_1>.uid = <dtml-var table_0>.category_uid\n
<dtml-if expr="portal_preferences.getPreferredAccountingTransactionGap()">\n
AND <dtml-var table_1>.relative_url LIKE <dtml-sqlvar expr="portal_preferences.getPreferredAccountingTransactionGap()+\'%\'" type="string">\n
</dtml-if>\n
AND <dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.gap.getUid()">\n
AND <dtml-var table_0>.uid = catalog.uid
]]></string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -6,49 +6,6 @@ ...@@ -6,49 +6,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>table_0</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>table_1</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list>
<string>table_0</string>
<string>table_1</string>
</list>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>arguments_src</string> </key> <key> <string>arguments_src</string> </key>
<value> <string>table_0\r\n <value> <string>table_0\r\n
...@@ -77,58 +34,6 @@ AND <dtml-var table_0>.category_strict_membership = 1\n ...@@ -77,58 +34,6 @@ AND <dtml-var table_0>.category_strict_membership = 1\n
]]></string> </value> ]]></string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<dtml-var table_1>.uid = <dtml-var table_0>.category_uid\n
<dtml-if expr="portal_preferences.getPreferredAccountingTransactionGap()">\n
AND <dtml-var table_1>.relative_url LIKE <dtml-sqlvar expr="portal_preferences.getPreferredAccountingTransactionGap()+\'%\'" type="string">\n
</dtml-if>\n
AND <dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.gap.getUid()">\n
AND <dtml-var table_0>.uid = catalog.uid\n
AND <dtml-var table_0>.category_strict_membership = 1\n
]]></string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -14,73 +14,6 @@ ...@@ -14,73 +14,6 @@
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>at_date</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>node_uid</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>section_uid</string> </key>
<value>
<dictionary>
<item>
<key> <string>type</string> </key>
<value> <string>list</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>simulation_state</string> </key>
<value>
<dictionary>
<item>
<key> <string>type</string> </key>
<value> <string>list</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list>
<string>node_uid</string>
<string>at_date</string>
<string>section_uid</string>
<string>simulation_state</string>
</list>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>_col</string> </key> <key> <string>_col</string> </key>
<value> <value>
...@@ -219,93 +152,6 @@ ORDER BY\n ...@@ -219,93 +152,6 @@ ORDER BY\n
]]></string> </value> ]]></string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<dtml-let query="portal_catalog.buildSQLQuery(query=portal_catalog.getSecurityQuery())">\n
SELECT DISTINCT\n
catalog.relative_url,\n
catalog.path,\n
catalog.title,\n
catalog.portal_type,\n
catalog.validation_state\n
FROM\n
<dtml-in prefix="table" expr="query[\'from_table_list\']">\n
<dtml-if "table_key not in (\'stock\', \'catalog\')">\n
<dtml-var table_item> AS <dtml-var table_key>,\n
</dtml-if>\n
</dtml-in>\n
catalog,\n
stock\n
WHERE\n
stock.mirror_section_uid = catalog.uid\n
<dtml-if node_uid>\n
AND stock.node_uid = <dtml-sqlvar node_uid type="string">\n
</dtml-if>\n
<dtml-if at_date>\n
AND stock.date <= <dtml-sqlvar at_date type="datetime">\n
</dtml-if>\n
<dtml-if simulation_state>\n
AND ( stock.simulation_state IN (<dtml-in simulation_state><dtml-sqlvar sequence-item type="string">\n
<dtml-unless sequence-end>, </dtml-unless></dtml-in>) )\n
</dtml-if>\n
\n
<dtml-if section_uid>\n
AND (\n
stock.section_uid IN ( <dtml-in section_uid><dtml-sqlvar sequence-item type="int">\n
<dtml-unless sequence-end>, </dtml-unless> </dtml-in> )\n
)\n
</dtml-if>\n
\n
AND stock.portal_type in ( <dtml-in getPortalAccountingMovementTypeList><dtml-sqlvar\n
sequence-item type="string"><dtml-unless sequence-end>, </dtml-unless></dtml-in> )\n
<dtml-if "query[\'where_expression\']">\n
AND <dtml-var "query[\'where_expression\']">\n
</dtml-if>\n
ORDER BY\n
catalog.portal_type, catalog.title\n
</dtml-let>
]]></string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -14,90 +14,6 @@ ...@@ -14,90 +14,6 @@
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>at_date</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>node_uid</string> </key>
<value>
<dictionary>
<item>
<key> <string>type</string> </key>
<value> <string>list</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value>
<dictionary>
<item>
<key> <string>type</string> </key>
<value> <string>list</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>section_uid</string> </key>
<value>
<dictionary>
<item>
<key> <string>type</string> </key>
<value> <string>list</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>simulation_state</string> </key>
<value>
<dictionary>
<item>
<key> <string>type</string> </key>
<value> <string>list</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list>
<string>node_uid</string>
<string>section_uid</string>
<string>simulation_state</string>
<string>portal_type</string>
<string>at_date</string>
</list>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>allow_simple_one_argument_traversal</string> </key> <key> <string>allow_simple_one_argument_traversal</string> </key>
<value> <value>
...@@ -239,136 +155,6 @@ ORDER BY mirror_section_title, date ...@@ -239,136 +155,6 @@ ORDER BY mirror_section_title, date
]]></string> </value> ]]></string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<dtml-comment>Returns all movements <= at_date which does not have a grouping\n
reference or having a grouping reference with movements where date is after the\n
at_date. \n
\n
Here, a group of movement means:\n
section_uid is from section_uid:list, or is the same if section_uid is not passed.\n
mirror_section_uid is the same\n
node_uid is the same\n
grouping_reference is the same\n
</dtml-comment>\n
\n
( SELECT catalog.path as path,\n
catalog.uid as uid,\n
mirror_section.relative_url as mirror_section_relative_url,\n
mirror_section.title as mirror_section_title,\n
stock.date as date,\n
IFNULL(stock.total_price, 0) as total_price,\n
IFNULL(stock.quantity, 0) as total_quantity\n
\n
FROM catalog, stock LEFT JOIN catalog AS mirror_section on \n
( stock.mirror_section_uid = mirror_section.uid )\n
\n
WHERE stock.node_uid in (<dtml-in node_uid><dtml-var sequence-item>\n
<dtml-unless sequence-end>, </dtml-unless></dtml-in>) and\n
<dtml-if simulation_state>\n
stock.simulation_state in (<dtml-in simulation_state>\n
<dtml-sqlvar sequence-item type="string">\n
<dtml-unless sequence-end>, </dtml-unless> </dtml-in simulation_state> ) and\n
</dtml-if>\n
stock.portal_type in (<dtml-in portal_type>\n
<dtml-sqlvar sequence-item type="string">\n
<dtml-unless sequence-end>, </dtml-unless> </dtml-in portal_type> ) and\n
<dtml-if section_uid>\n
stock.section_uid in (<dtml-in section_uid><dtml-var sequence-item>\n
<dtml-unless sequence-end>, </dtml-unless> </dtml-in section_uid> ) and\n
</dtml-if>\n
catalog.uid=stock.uid and\n
stock.date <= <dtml-sqlvar "at_date" type="datetime"> and\n
catalog.grouping_reference is NULL\n
) UNION (\n
SELECT\n
catalog.path as path,\n
catalog.uid as uid,\n
mirror_section.relative_url as mirror_section_relative_url,\n
mirror_section.title as mirror_section_title,\n
stock.date as date,\n
IFNULL(stock.total_price, 0) as total_price,\n
IFNULL(stock.quantity, 0) as total_quantity\n
\n
FROM catalog AS catalog_2, stock AS stock_2, \n
catalog AS catalog, stock AS stock LEFT JOIN catalog AS mirror_section\n
ON ( stock.mirror_section_uid = mirror_section.uid )\n
\n
WHERE stock.node_uid in (<dtml-in node_uid><dtml-var sequence-item>\n
<dtml-unless sequence-end>, </dtml-unless></dtml-in>) and\n
<dtml-if simulation_state>\n
stock.simulation_state in (<dtml-in simulation_state>\n
<dtml-sqlvar sequence-item type="string">\n
<dtml-unless sequence-end>, </dtml-unless> </dtml-in simulation_state> ) and\n
</dtml-if>\n
stock.portal_type in (<dtml-in portal_type>\n
<dtml-sqlvar sequence-item type="string">\n
<dtml-unless sequence-end>, </dtml-unless> </dtml-in portal_type> ) and\n
<dtml-if section_uid>\n
stock.section_uid in (<dtml-in section_uid><dtml-var sequence-item>\n
<dtml-unless sequence-end>, </dtml-unless> </dtml-in section_uid> ) and\n
</dtml-if>\n
stock.date <= <dtml-sqlvar "at_date" type="datetime"> and\n
catalog.uid = stock.uid and\n
catalog_2.uid = stock_2.uid and\n
catalog.grouping_reference = catalog_2.grouping_reference and\n
catalog.grouping_reference is not NULL and\n
<dtml-if section_uid>\n
stock_2.section_uid in (<dtml-in section_uid><dtml-var sequence-item>\n
<dtml-unless sequence-end>, </dtml-unless> </dtml-in section_uid> ) and\n
<dtml-else>\n
stock_2.section_uid = stock.section_uid and\n
</dtml-if>\n
stock.mirror_section_uid = stock_2.mirror_section_uid and\n
stock_2.simulation_state != \'cancelled\' and\n
stock.node_uid = stock_2.node_uid\n
GROUP BY catalog.uid, stock.uid\n
HAVING max(stock_2.date) > <dtml-sqlvar "at_date" type="datetime">\n
)\n
\n
ORDER BY mirror_section_title, date
]]></string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -14,68 +14,6 @@ ...@@ -14,68 +14,6 @@
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>from_table_list</string> </key>
<value>
<dictionary>
<item>
<key> <string>type</string> </key>
<value> <string>list</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>max_movement_date</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>order_by_expression</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>where_expression</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list>
<string>from_table_list</string>
<string>where_expression</string>
<string>order_by_expression</string>
<string>max_movement_date</string>
</list>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>allow_simple_one_argument_traversal</string> </key> <key> <string>allow_simple_one_argument_traversal</string> </key>
<value> <value>
...@@ -173,93 +111,6 @@ WHERE\n ...@@ -173,93 +111,6 @@ WHERE\n
]]></string> </value> ]]></string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
SELECT\n
catalog.uid,\n
catalog.path,\n
catalog.relative_url,\n
catalog.id\n
\n
FROM\n
movement\n
, catalog as parent\n
, catalog as grandparent\n
<dtml-in prefix="table" expr="from_table_list"> \n
<dtml-if expr="table_key not in (\'catalog\', \'movement\')">\n
, <dtml-var table_item> AS <dtml-var table_key>\n
</dtml-if>\n
</dtml-in>\n
, catalog\n
LEFT JOIN category \n
ON (catalog.uid = category.uid\n
AND category.base_category_uid = <dtml-sqlvar "portal_categories.delivery.getUid()" type="int">)\n
WHERE\n
1=1\n
<dtml-if where_expression>\n
AND <dtml-var where_expression> \n
</dtml-if>\n
\n
AND parent.uid = catalog.parent_uid\n
AND grandparent.uid = parent.parent_uid\n
\n
AND ((\n
grandparent.simulation_state NOT IN (\'cancelled\', \'deleted\')\n
AND ( movement.start_date < <dtml-sqlvar max_movement_date type="datetime"> OR \n
movement.stop_date < <dtml-sqlvar max_movement_date type="datetime"> )\n
) OR (\n
grandparent.simulation_state in (\'confirmed\', \'stopped\', \'delivered\')\n
))\n
\n
AND movement.uid = catalog.uid\n
AND movement.resource_uid is not NULL\n
AND category.category_uid is NULL\n
\n
<dtml-if order_by_expression>\n
ORDER BY <dtml-var order_by_expression>\n
</dtml-if>
]]></string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
1411 1412
\ No newline at end of file \ No newline at end of file
...@@ -6,33 +6,6 @@ ...@@ -6,33 +6,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>_col</string> </key> <key> <string>_col</string> </key>
<value> <value>
...@@ -65,57 +38,6 @@ INSERT INTO roles_and_users (uid, allowedRolesAndUsers) VALUES\n ...@@ -65,57 +38,6 @@ INSERT INTO roles_and_users (uid, allowedRolesAndUsers) VALUES\n
]]></string> </value> ]]></string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
DELETE FROM roles_and_users\n
<dtml-var sql_delimiter>\n
INSERT INTO roles_and_users (uid, allowedRolesAndUsers) VALUES\n
<dtml-in expr="getPortalObject().portal_catalog.getSQLCatalog().getRoleAndSecurityUidList()">\n
(<dtml-sqlvar sequence-item type="int">,<dtml-sqlvar sequence-key type="string">)<dtml-if sequence-end><dtml-else>,</dtml-if>\n
\n
</dtml-in>
]]></string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
129 130
\ No newline at end of file \ No newline at end of file
...@@ -6,33 +6,6 @@ ...@@ -6,33 +6,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>_col</string> </key> <key> <string>_col</string> </key>
<value> <value>
...@@ -104,47 +77,6 @@ ...@@ -104,47 +77,6 @@
<key> <string>src</string> </key> <key> <string>src</string> </key>
<value> <string>select catalog.uid from catalog where portal_type = "Bank Account" or portal_type = "Account"</string> </value> <value> <string>select catalog.uid from catalog where portal_type = "Bank Account" or portal_type = "Account"</string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>select catalog.uid from catalog where portal_type = "Bank Account" or portal_type = "Account"</string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -6,49 +6,6 @@ ...@@ -6,49 +6,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>account_node_uid</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>account_uid_list</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list>
<string>account_uid_list</string>
<string>account_node_uid</string>
</list>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>_col</string> </key> <key> <string>_col</string> </key>
<value> <value>
...@@ -142,68 +99,6 @@ where \n ...@@ -142,68 +99,6 @@ where \n
]]></string> </value> ]]></string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
select distinct(stock.node_uid) \n
from stock \n
where \n
(1)\n
<dtml-if account_uid_list>\n
or \n
(stock.payment_uid not in ( \n
<dtml-in account_uid_list>\n
<dtml-unless sequence-start>, </dtml-unless>\n
<dtml-sqlvar sequence-item type="int">\n
</dtml-in>\n
) \n
or stock.payment_uid is NULL\n
or stock.payment_uid = "")\n
</dtml-if>\n
<dtml-if account_node_uid>\n
and stock.node_uid != <dtml-sqlvar account_node_uid type="int" >\n
</dtml-if>
]]></string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -6,42 +6,6 @@ ...@@ -6,42 +6,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>account_uid_list</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list>
<string>account_uid_list</string>
</list>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>_col</string> </key> <key> <string>_col</string> </key>
<value> <value>
...@@ -131,65 +95,6 @@ where \n ...@@ -131,65 +95,6 @@ where \n
]]></string> </value> ]]></string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
select distinct(stock.payment_uid) \n
from stock \n
where \n
(1)\n
<dtml-if account_uid_list>\n
and\n
stock.payment_uid in (\n
<dtml-in account_uid_list>\n
<dtml-unless sequence-start>, </dtml-unless>\n
<dtml-sqlvar sequence-item type="int">\n
</dtml-in>\n
) \n
</dtml-if>\n
and stock.payment_uid is not NULL \n
and stock.payment_uid != ""
]]></string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
93 94
\ No newline at end of file \ No newline at end of file
...@@ -6,56 +6,6 @@ ...@@ -6,56 +6,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>query_table</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>table_0</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>table_1</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list>
<string>table_0</string>
<string>table_1</string>
<string>query_table</string>
</list>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>arguments_src</string> </key> <key> <string>arguments_src</string> </key>
<value> <string>table_0\r\n <value> <string>table_0\r\n
...@@ -83,56 +33,6 @@ AND <dtml-var table_0>.id = \'default_email\'\n ...@@ -83,56 +33,6 @@ AND <dtml-var table_0>.id = \'default_email\'\n
]]></string> </value> ]]></string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<dtml-var table_0>.uid = <dtml-var table_1>.uid\n
AND <dtml-var table_0>.parent_uid = <dtml-var query_table>.uid\n
AND <dtml-var table_0>.portal_type = \'Email\'\n
AND <dtml-var table_0>.id = \'default_email\'\n
\n
]]></string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -6,49 +6,6 @@ ...@@ -6,49 +6,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>table_0</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>table_1</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list>
<string>table_0</string>
<string>table_1</string>
</list>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>allow_simple_one_argument_traversal</string> </key> <key> <string>allow_simple_one_argument_traversal</string> </key>
<value> <value>
...@@ -107,56 +64,6 @@ AND <dtml-var table_1>.portal_type = \'Person\'\n ...@@ -107,56 +64,6 @@ AND <dtml-var table_1>.portal_type = \'Person\'\n
]]></string> </value> ]]></string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<dtml-var table_1>.uid = <dtml-var table_0>.category_uid\n
AND <dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.destination.getUid()">\n
AND <dtml-var table_0>.uid = catalog.uid\n
AND <dtml-var table_1>.portal_type = \'Person\'\n
\n
]]></string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -6,49 +6,6 @@ ...@@ -6,49 +6,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>query_table</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>table_0</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list>
<string>table_0</string>
<string>query_table</string>
</list>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>arguments_src</string> </key> <key> <string>arguments_src</string> </key>
<value> <string>table_0\r\n <value> <string>table_0\r\n
...@@ -71,52 +28,6 @@ AND <dtml-var table_0>.portal_type = \'Person\' ...@@ -71,52 +28,6 @@ AND <dtml-var table_0>.portal_type = \'Person\'
]]></string> </value> ]]></string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<dtml-var query_table>.owner = <dtml-var table_0>.reference\n
AND <dtml-var table_0>.portal_type = \'Person\'
]]></string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -6,63 +6,6 @@ ...@@ -6,63 +6,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>table_0</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>table_1</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>table_2</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>table_3</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list>
<string>table_0</string>
<string>table_1</string>
<string>table_2</string>
<string>table_3</string>
</list>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>arguments_src</string> </key> <key> <string>arguments_src</string> </key>
<value> <string>table_0\r\n <value> <string>table_0\r\n
...@@ -91,56 +34,6 @@ AND <dtml-var table_1>.category_uid = <dtml-var table_3>.uid ...@@ -91,56 +34,6 @@ AND <dtml-var table_1>.category_uid = <dtml-var table_3>.uid
]]></string> </value> ]]></string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<dtml-var table_0>.uid = catalog.uid\n
AND <dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.resource.getUid()">\n
AND <dtml-var table_0>.category_uid=<dtml-var table_2>.uid\n
AND <dtml-var table_1>.uid = <dtml-var table_2>.uid\n
AND <dtml-var table_1>.base_category_uid = <dtml-var "portal_categories.use.getUid()">\n
AND <dtml-var table_1>.category_uid = <dtml-var table_3>.uid
]]></string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -6,49 +6,6 @@ ...@@ -6,49 +6,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>table_0</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>table_1</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list>
<string>table_0</string>
<string>table_1</string>
</list>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>allow_simple_one_argument_traversal</string> </key> <key> <string>allow_simple_one_argument_traversal</string> </key>
<value> <value>
...@@ -107,56 +64,6 @@ AND <dtml-var table_1>.portal_type = \'Organisation\'\n ...@@ -107,56 +64,6 @@ AND <dtml-var table_1>.portal_type = \'Organisation\'\n
]]></string> </value> ]]></string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<dtml-var table_1>.uid = <dtml-var table_0>.category_uid\n
AND <dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.source.getUid()">\n
AND <dtml-var table_0>.uid = catalog.uid\n
AND <dtml-var table_1>.portal_type = \'Organisation\'\n
\n
]]></string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -6,49 +6,6 @@ ...@@ -6,49 +6,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>table_0</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>table_1</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list>
<string>table_0</string>
<string>table_1</string>
</list>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>allow_simple_one_argument_traversal</string> </key> <key> <string>allow_simple_one_argument_traversal</string> </key>
<value> <value>
...@@ -107,56 +64,6 @@ AND <dtml-var table_1>.portal_type = \'Person\'\n ...@@ -107,56 +64,6 @@ AND <dtml-var table_1>.portal_type = \'Person\'\n
]]></string> </value> ]]></string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<dtml-var table_1>.uid = <dtml-var table_0>.category_uid\n
AND <dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.source.getUid()">\n
AND <dtml-var table_0>.uid = catalog.uid\n
AND <dtml-var table_1>.portal_type = \'Person\'\n
\n
]]></string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
913 914
\ No newline at end of file \ No newline at end of file
...@@ -14,85 +14,6 @@ ...@@ -14,85 +14,6 @@
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>from_date</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>node</string> </key>
<value>
<dictionary>
<item>
<key> <string>type</string> </key>
<value> <string>list</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value>
<dictionary>
<item>
<key> <string>type</string> </key>
<value> <string>list</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>resource</string> </key>
<value>
<dictionary>
<item>
<key> <string>type</string> </key>
<value> <string>list</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>to_date</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list>
<string>from_date</string>
<string>to_date</string>
<string>node</string>
<string>resource</string>
<string>portal_type</string>
</list>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>allow_simple_one_argument_traversal</string> </key> <key> <string>allow_simple_one_argument_traversal</string> </key>
<value> <value>
...@@ -187,89 +108,6 @@ AND\n ...@@ -187,89 +108,6 @@ AND\n
]]></string> </value> ]]></string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
SELECT\n
CASE \n
WHEN (mirror_date=date) THEN \n
SUM(quantity)\n
ELSE\n
SUM(quantity * TIME_TO_SEC(TIMEDIFF(LEAST(<dtml-sqlvar expr="to_date" type="datetime">, mirror_date), \n
GREATEST(date, <dtml-sqlvar expr="from_date" type="datetime">))) / \n
TIME_TO_SEC(TIMEDIFF(mirror_date, date)))\n
END AS total_quantity,\n
<dtml-sqlvar expr="from_date" type="datetime"> AS from_date,\n
<dtml-sqlvar expr="to_date" type="datetime"> AS to_date\n
FROM\n
stock\n
WHERE\n
(date < <dtml-sqlvar expr="to_date" type="datetime">) \n
AND \n
(mirror_date >= <dtml-sqlvar expr="from_date" type="datetime">)\n
AND\n
node_uid in (\n
<dtml-in node>\n
<dtml-sqlvar sequence-item type="int">\n
<dtml-unless sequence-end>, </dtml-unless> \n
</dtml-in node> )\n
\n
<dtml-if resource>\n
AND\n
resource_uid in (\n
<dtml-in resource>\n
<dtml-sqlvar sequence-item type="int">\n
<dtml-unless sequence-end>, </dtml-unless> \n
</dtml-in resource> )\n
</dtml-if>\n
\n
AND\n
portal_type in (\n
<dtml-in portal_type>\n
<dtml-sqlvar sequence-item type="string">\n
<dtml-unless sequence-end>, </dtml-unless> \n
</dtml-in portal_type> )
]]></string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -14,97 +14,6 @@ ...@@ -14,97 +14,6 @@
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>from_date</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>node</string> </key>
<value>
<dictionary>
<item>
<key> <string>type</string> </key>
<value> <string>list</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value>
<dictionary>
<item>
<key> <string>type</string> </key>
<value> <string>list</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>resource</string> </key>
<value>
<dictionary>
<item>
<key> <string>type</string> </key>
<value> <string>list</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>simulation_state</string> </key>
<value>
<dictionary>
<item>
<key> <string>type</string> </key>
<value> <string>list</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>to_date</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list>
<string>from_date</string>
<string>to_date</string>
<string>node</string>
<string>resource</string>
<string>portal_type</string>
<string>simulation_state</string>
</list>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>allow_simple_one_argument_traversal</string> </key> <key> <string>allow_simple_one_argument_traversal</string> </key>
<value> <value>
...@@ -268,159 +177,6 @@ ORDER BY date ASC, mirror_date ASC) AS calculated_result LIMIT 1 ...@@ -268,159 +177,6 @@ ORDER BY date ASC, mirror_date ASC) AS calculated_result LIMIT 1
]]></string> </value> ]]></string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<dtml-comment>\n
Calculate the exact time available between 2 dates.\n
First, sort all stock rows by ascending start date.\n
Then, walk through them, and increase or not the result, depending on the current and previous rows.\n
\n
If a row has a negative value, the result is not increased.\n
If a row has a positive value, the result is increased, if:\n
- no other intersecting positive interval had already been added,\n
- it does not intersect with a negative interval.\n
\n
Don\'t hesitate to draw this on a paper in order to debug this query.\n
</dtml-comment>\n
\n
SET @result := 0,\n
@current_start_date := <dtml-sqlvar expr="from_date" type="datetime">,\n
@current_stop_date := <dtml-sqlvar expr="from_date" type="datetime">,\n
@countable := -1;\n
<dtml-var sql_delimiter>\n
\n
SELECT \n
@result :=\n
IF(@countable <= 0,\n
@result,\n
@result + TIME_TO_SEC(TIMEDIFF(@current_stop_date, @current_start_date))) AS result,\n
CASE WHEN @result < 0 THEN\n
0\n
ELSE\n
<dtml-comment>CAST to num explicitly otherwise it may be treated as binary in MySQL-5.0.x</dtml-comment>\n
0 + @result\n
END AS total_quantity,\n
\n
<dtml-sqlvar expr="from_date" type="datetime"> AS from_date,\n
<dtml-sqlvar expr="to_date" type="datetime"> AS to_date\n
FROM (\n
\n
SELECT\n
@date := GREATEST(date, <dtml-sqlvar expr="from_date" type="datetime">) AS current_c_date,\n
@mirror_date := LEAST(<dtml-sqlvar expr="to_date" type="datetime">, mirror_date) AS current_mirror_date,\n
\n
@next_countable :=\n
IF(@date >= @current_stop_date,\n
quantity,\n
IF((@mirror_date >= @current_stop_date) AND (quantity * @countable < 0),\n
quantity,\n
@countable\n
)) AS next_countable, \n
\n
@next_start_date :=\n
IF(@date >= @current_stop_date,\n
@date,\n
IF(quantity * @countable < 0, \n
IF(@countable > 0,\n
@mirror_date,\n
@current_stop_date),\n
@current_start_date)) AS next_start_date,\n
\n
@next_stop_date :=\n
IF((@date >= @current_stop_date) OR (@mirror_date >= @current_stop_date),\n
@mirror_date,\n
@current_stop_date) AS next_stop_date,\n
\n
@result :=\n
IF((@date < @current_start_date) OR (@countable <= 0),\n
@result,\n
IF(@date >= @current_stop_date,\n
@result + TIME_TO_SEC(TIMEDIFF(@current_stop_date, @current_start_date)),\n
@result + TIME_TO_SEC(TIMEDIFF(@date, @current_start_date)))) AS result,\n
\n
@countable := @next_countable AS countable,\n
@current_start_date := @next_start_date AS current_start_date,\n
@current_stop_date := @next_stop_date AS current_stop_date\n
FROM\n
stock\n
WHERE\n
(date < <dtml-sqlvar expr="to_date" type="datetime">)\n
AND\n
(mirror_date >= <dtml-sqlvar expr="from_date" type="datetime">)\n
AND\n
node_uid in (\n
<dtml-in node>\n
<dtml-sqlvar sequence-item type="int">\n
<dtml-unless sequence-end>, </dtml-unless>\n
</dtml-in node> )\n
\n
<dtml-if resource>\n
AND\n
resource_uid in (\n
<dtml-in resource>\n
<dtml-sqlvar sequence-item type="int">\n
<dtml-unless sequence-end>, </dtml-unless>\n
</dtml-in resource> )\n
</dtml-if>\n
\n
<dtml-if simulation_state>\n
AND\n
simulation_state in (\n
<dtml-in simulation_state>\n
<dtml-sqlvar sequence-item type="string">\n
<dtml-unless sequence-end>, </dtml-unless>\n
</dtml-in simulation_state> )\n
</dtml-if>\n
\n
AND\n
portal_type in (\n
<dtml-in portal_type>\n
<dtml-sqlvar sequence-item type="string">\n
<dtml-unless sequence-end>, </dtml-unless>\n
</dtml-in portal_type> )\n
ORDER BY date ASC, mirror_date ASC) AS calculated_result LIMIT 1
]]></string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -6,83 +6,6 @@ ...@@ -6,83 +6,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>node</string> </key>
<value>
<dictionary>
<item>
<key> <string>type</string> </key>
<value> <string>list</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>period_list</string> </key>
<value>
<dictionary>
<item>
<key> <string>type</string> </key>
<value> <string>list</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value>
<dictionary>
<item>
<key> <string>type</string> </key>
<value> <string>list</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>resource</string> </key>
<value>
<dictionary>
<item>
<key> <string>type</string> </key>
<value> <string>list</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list>
<string>period_list</string>
<string>node</string>
<string>portal_type</string>
<string>resource</string>
</list>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>allow_simple_one_argument_traversal</string> </key> <key> <string>allow_simple_one_argument_traversal</string> </key>
<value> <value>
...@@ -147,60 +70,6 @@ resource:list</string> </value> ...@@ -147,60 +70,6 @@ resource:list</string> </value>
]]></string> </value> ]]></string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<dtml-in period_list prefix="loop">\n
(\n
<dtml-var expr="Person_zGetAvailableTime(from_date=loop_key, to_date=loop_item, \n
node=node, portal_type=portal_type,\n
resource=resource,\n
src__=1)">\n
)\n
<dtml-unless sequence-end> UNION ALL </dtml-unless> \n
</dtml-in>\n
]]></string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
364 365
\ No newline at end of file \ No newline at end of file
...@@ -6,33 +6,6 @@ ...@@ -6,33 +6,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>_col</string> </key> <key> <string>_col</string> </key>
<value> <value>
...@@ -87,47 +60,6 @@ ...@@ -87,47 +60,6 @@
<key> <string>src</string> </key> <key> <string>src</string> </key>
<value> <string>DROP TABLE IF EXISTS content_translation</string> </value> <value> <string>DROP TABLE IF EXISTS content_translation</string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>DROP TABLE IF EXISTS content_translation</string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -6,42 +6,6 @@ ...@@ -6,42 +6,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>uid</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list>
<string>uid</string>
</list>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>allow_simple_one_argument_traversal</string> </key> <key> <string>allow_simple_one_argument_traversal</string> </key>
<value> <value>
...@@ -94,51 +58,6 @@ DELETE FROM content_translation WHERE <dtml-sqltest uid op=eq type=int> ...@@ -94,51 +58,6 @@ DELETE FROM content_translation WHERE <dtml-sqltest uid op=eq type=int>
]]></string> </value> ]]></string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
DELETE FROM content_translation WHERE <dtml-sqltest uid op=eq type=int>
]]></string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -6,42 +6,6 @@ ...@@ -6,42 +6,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>Base_getContentTranslationTargetObject</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list>
<string>Base_getContentTranslationTargetObject</string>
</list>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>arguments_src</string> </key> <key> <string>arguments_src</string> </key>
<value> <string>Base_getContentTranslationTargetObject</string> </value> <value> <string>Base_getContentTranslationTargetObject</string> </value>
...@@ -76,65 +40,6 @@ VALUES\n ...@@ -76,65 +40,6 @@ VALUES\n
]]></string> </value> ]]></string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<dtml-let content_translation_dict_list="CatalogTool_getContentTranslationDictList(Base_getContentTranslationTargetObject)">\n
<dtml-if "content_translation_dict_list">\n
REPLACE INTO content_translation\n
VALUES\n
<dtml-in "content_translation_dict_list">\n
(<dtml-sqlvar "_[\'sequence-item\'][\'uid\']" type=int>,\n
<dtml-sqlvar "_[\'sequence-item\'][\'property_name\']" type=string>,\n
<dtml-sqlvar "_[\'sequence-item\'][\'content_language\']" type=string>,\n
<dtml-sqlvar "_[\'sequence-item\'][\'translated_text\']" type=string>\n
)\n
<dtml-unless sequence-end>,</dtml-unless>\n
</dtml-in>\n
</dtml-if>\n
</dtml-let>\n
]]></string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -6,33 +6,6 @@ ...@@ -6,33 +6,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>_col</string> </key> <key> <string>_col</string> </key>
<value> <value>
...@@ -95,55 +68,6 @@ ...@@ -95,55 +68,6 @@
) TYPE=MyISAM;\n ) TYPE=MyISAM;\n
</string> </value> </string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>CREATE TABLE `content_translation` (\n
`uid` BIGINT UNSIGNED NOT NULL,\n
`property_name` VARCHAR(100),\n
`content_language` VARCHAR(100),\n
`translated_text` TEXT,\n
PRIMARY KEY (`uid`, `property_name`, `content_language`),\n
FULLTEXT `Translated Text` (`translated_text`)\n
) TYPE=MyISAM;\n
</string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
40 41
\ No newline at end of file \ No newline at end of file
...@@ -6,63 +6,6 @@ ...@@ -6,63 +6,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>table_0</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>table_1</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>table_2</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>table_3</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list>
<string>table_0</string>
<string>table_1</string>
<string>table_2</string>
<string>table_3</string>
</list>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>arguments_src</string> </key> <key> <string>arguments_src</string> </key>
<value> <string>table_0\r\n <value> <string>table_0\r\n
...@@ -104,69 +47,6 @@ AND\n ...@@ -104,69 +47,6 @@ AND\n
]]></string> </value> ]]></string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<dtml-var table_3>.uid = <dtml-var table_2>.category_uid\n
AND <dtml-var table_1>.uid = <dtml-var table_2>.uid\n
AND <dtml-var table_1>.uid = <dtml-var table_0>.category_uid\n
AND <dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.causality.getUid()">\n
AND catalog.uid = <dtml-var table_0>.uid\n
AND (<dtml-in "portal_catalog.getPortalEventTypeList()">\n
<dtml-if sequence-start>\n
<dtml-var table_1>.portal_type = \'<dtml-var sequence-item>\'\n
<dtml-else>\n
OR <dtml-var table_1>.portal_type = \'<dtml-var sequence-item>\'\n
</dtml-if>\n
</dtml-in>)\n
AND\n
(SELECT count(*) from category as sub_category\n
WHERE sub_category.uid = catalog.uid\n
AND sub_category.base_category_uid = <dtml-var "portal_categories.follow_up.getUid()">\n
AND sub_category.category_uid = <dtml-var table_3>.uid\n
LIMIT 1 ) = 0\n
]]></string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -6,56 +6,6 @@ ...@@ -6,56 +6,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>table_0</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>table_1</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>table_2</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list>
<string>table_0</string>
<string>table_1</string>
<string>table_2</string>
</list>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>arguments_src</string> </key> <key> <string>arguments_src</string> </key>
<value> <string>table_0\r\n <value> <string>table_0\r\n
...@@ -93,66 +43,6 @@ AND\n ...@@ -93,66 +43,6 @@ AND\n
]]></string> </value> ]]></string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<dtml-comment>\n
table_0 : category as source_decision or destination_decision\n
table_1 : catalog as category\n
table_2 : catalog as object_uid\n
</dtml-comment>\n
\n
( \n
<dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.source_decision.getUid()">\n
OR \n
<dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.destination_decision.getUid()">\n
)\n
AND\n
<dtml-var table_0>.category_uid = <dtml-var table_2>.uid AND\n
<dtml-var table_0>.uid = <dtml-var table_1>.uid AND\n
<dtml-var table_1>.uid = catalog.uid\n
]]></string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -6,56 +6,6 @@ ...@@ -6,56 +6,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>table_0</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>table_1</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>table_2</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list>
<string>table_0</string>
<string>table_1</string>
<string>table_2</string>
</list>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>allow_simple_one_argument_traversal</string> </key> <key> <string>allow_simple_one_argument_traversal</string> </key>
<value> <value>
...@@ -125,66 +75,6 @@ AND\n ...@@ -125,66 +75,6 @@ AND\n
]]></string> </value> ]]></string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<dtml-comment>\n
table_0 : category as source or destination\n
table_1 : catalog as category\n
table_2 : catalog as object_uid\n
</dtml-comment>\n
\n
( \n
<dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.source.getUid()">\n
OR \n
<dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.destination.getUid()">\n
)\n
AND\n
<dtml-var table_0>.category_uid = <dtml-var table_2>.uid AND\n
<dtml-var table_0>.uid = <dtml-var table_1>.uid AND\n
<dtml-var table_1>.uid = catalog.uid\n
]]></string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -6,56 +6,6 @@ ...@@ -6,56 +6,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_arg</string> </key>
<value>
<object>
<klass>
<global name="Args" module="Shared.DC.ZRDB.Aqueduct"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>table_0</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>table_1</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>table_2</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>_keys</string> </key>
<value>
<list>
<string>table_0</string>
<string>table_1</string>
<string>table_2</string>
</list>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>arguments_src</string> </key> <key> <string>arguments_src</string> </key>
<value> <string>table_0\r\n <value> <string>table_0\r\n
...@@ -96,69 +46,6 @@ AND\n ...@@ -96,69 +46,6 @@ AND\n
]]></string> </value> ]]></string> </value>
</item> </item>
<item>
<key> <string>template</string> </key>
<value>
<object>
<klass>
<global name="__newobj__" module="copy_reg"/>
</klass>
<tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string encoding="cdata"><![CDATA[
<string>
]]></string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<dtml-comment>\n
table_0 : category as source or destination or source_decision or destination_decision\n
table_1 : catalog as category\n
table_2 : catalog as object_uid\n
</dtml-comment>\n
\n
( \n
<dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.source.getUid()">\n
OR \n
<dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.destination.getUid()">\n
OR\n
<dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.source_decision.getUid()">\n
OR \n
<dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.destination_decision.getUid()">\n
)\n
AND\n
<dtml-var table_0>.category_uid = <dtml-var table_2>.uid AND\n
<dtml-var table_0>.uid = <dtml-var table_1>.uid AND\n
<dtml-var table_1>.uid = catalog.uid
]]></string> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
506 507
\ No newline at end of file \ No newline at end of file
71 72
\ No newline at end of file \ No newline at end of file
1227 1228
\ No newline at end of file \ No newline at end of file
33 34
\ No newline at end of file \ No newline at end of file
634 635
\ No newline at end of file \ No newline at end of file
173 174
\ No newline at end of file \ No newline at end of file
26 27
\ No newline at end of file \ No newline at end of file
368 369
\ No newline at end of file \ No newline at end of file
259 260
\ No newline at end of file \ No newline at end of file
456 457
\ No newline at end of file \ No newline at end of file
45 46
\ No newline at end of file \ No newline at end of file
569 570
\ No newline at end of file \ No newline at end of file
541 542
\ No newline at end of file \ No newline at end of file
779 780
\ No newline at end of file \ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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