<?xml version="1.0"?>
<ZopeData>
  <record id="1" aka="AAAAAAAAAAE=">
    <pickle>
      <tuple>
        <global name="SQL" module="Products.ZSQLMethods.SQL"/>
        <tuple/>
      </tuple>
    </pickle>
    <pickle>
      <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>from_expression</string> </key>
                                <value>
                                  <dictionary/>
                                </value>
                            </item>
                            <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>group_by_expression</string> </key>
                                <value>
                                  <dictionary/>
                                </value>
                            </item>
                            <item>
                                <key> <string>limit_expression</string> </key>
                                <value>
                                  <dictionary/>
                                </value>
                            </item>
                            <item>
                                <key> <string>select_expression</string> </key>
                                <value>
                                  <dictionary/>
                                </value>
                            </item>
                            <item>
                                <key> <string>selection_domain</string> </key>
                                <value>
                                  <dictionary/>
                                </value>
                            </item>
                            <item>
                                <key> <string>selection_report</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>selection_domain</string>
                            <string>selection_report</string>
                            <string>where_expression</string>
                            <string>select_expression</string>
                            <string>group_by_expression</string>
                            <string>from_table_list</string>
                            <string>from_expression</string>
                            <string>limit_expression</string>
                          </list>
                        </value>
                    </item>
                  </dictionary>
                </state>
              </object>
            </value>
        </item>
        <item>
            <key> <string>arguments_src</string> </key>
            <value> <string>selection_domain\r\n
selection_report\r\n
where_expression\r\n
select_expression\r\n
group_by_expression\r\n
from_table_list:list\r\n
from_expression\r\n
limit_expression</string> </value>
        </item>
        <item>
            <key> <string>connection_id</string> </key>
            <value> <string>erp5_sql_connection</string> </value>
        </item>
        <item>
            <key> <string>id</string> </key>
            <value> <string>z_SubCatalogQuery</string> </value>
        </item>
        <item>
            <key> <string>src</string> </key>
            <value> <string encoding="cdata"><![CDATA[

catalog.uid IN (\n
  SELECT catalog.uid\n
  FROM\n
    catalog,\n
    <dtml-if from_expression>\n
      <dtml-var from_expression>\n
    <dtml-else>\n
      <dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n
    </dtml-if>\n
    <dtml-if selection_domain>\n
      <dtml-let expression="portal_selections.buildSQLJoinExpressionFromDomainSelection(selection_domain, category_table_alias = \'domain_category\')">\n
        <dtml-if expression> , <dtml-var expression> </dtml-if>\n
      </dtml-let>\n
    </dtml-if>\n
    <dtml-if selection_report>\n
      <dtml-let expression="portal_selections.buildSQLJoinExpressionFromDomainSelection(selection_report, category_table_alias = \'report_category\')">\n
        <dtml-if expression> , <dtml-var expression> </dtml-if>\n
      </dtml-let>\n
    </dtml-if>\n
  WHERE \n
    1 = 1 \n
    <dtml-if where_expression>\n
    AND <dtml-var where_expression>\n
    </dtml-if>\n
    <dtml-if selection_domain>\n
      <dtml-let expression="portal_selections.buildSQLExpressionFromDomainSelection(selection_domain, category_table_alias = \'domain_category\')">\n
        <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
      </dtml-let>\n
    </dtml-if>\n
    <dtml-if selection_report>\n
      <dtml-let expression="portal_selections.buildSQLExpressionFromDomainSelection(selection_report, strict_membership=1, category_table_alias = \'report_category\')">\n
        <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
      </dtml-let>\n
    </dtml-if>\n
    <dtml-if group_by_expression>\n
  GROUP BY\n
      <dtml-var group_by_expression>\n
    </dtml-if>\n
    <dtml-if limit_expression>\n
  LIMIT <dtml-var "limit_expression">\n
    </dtml-if>\n
)\n


]]></string> </value>
        </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[

catalog.uid IN (\n
  SELECT catalog.uid\n
  FROM\n
    catalog,\n
    <dtml-if from_expression>\n
      <dtml-var from_expression>\n
    <dtml-else>\n
      <dtml-in from_table_list> <dtml-var sequence-item> AS <dtml-var sequence-key><dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in>\n
    </dtml-if>\n
    <dtml-if selection_domain>\n
      <dtml-let expression="portal_selections.buildSQLJoinExpressionFromDomainSelection(selection_domain, category_table_alias = \'domain_category\')">\n
        <dtml-if expression> , <dtml-var expression> </dtml-if>\n
      </dtml-let>\n
    </dtml-if>\n
    <dtml-if selection_report>\n
      <dtml-let expression="portal_selections.buildSQLJoinExpressionFromDomainSelection(selection_report, category_table_alias = \'report_category\')">\n
        <dtml-if expression> , <dtml-var expression> </dtml-if>\n
      </dtml-let>\n
    </dtml-if>\n
  WHERE \n
    1 = 1 \n
    <dtml-if where_expression>\n
    AND <dtml-var where_expression>\n
    </dtml-if>\n
    <dtml-if selection_domain>\n
      <dtml-let expression="portal_selections.buildSQLExpressionFromDomainSelection(selection_domain, category_table_alias = \'domain_category\')">\n
        <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
      </dtml-let>\n
    </dtml-if>\n
    <dtml-if selection_report>\n
      <dtml-let expression="portal_selections.buildSQLExpressionFromDomainSelection(selection_report, strict_membership=1, category_table_alias = \'report_category\')">\n
        <dtml-if expression> AND <dtml-var expression> </dtml-if>\n
      </dtml-let>\n
    </dtml-if>\n
    <dtml-if group_by_expression>\n
  GROUP BY\n
      <dtml-var group_by_expression>\n
    </dtml-if>\n
    <dtml-if limit_expression>\n
  LIMIT <dtml-var "limit_expression">\n
    </dtml-if>\n
)\n


]]></string> </value>
                    </item>
                  </dictionary>
                </state>
              </object>
            </value>
        </item>
        <item>
            <key> <string>title</string> </key>
            <value> <string></string> </value>
        </item>
      </dictionary>
    </pickle>
  </record>
</ZopeData>
