<?xml version="1.0"?>
<ZopeData>
  <record id="1" aka="AAAAAAAAAAE=">
    <pickle>
      <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
    </pickle>
    <pickle>
      <dictionary>
        <item>
            <key> <string>Script_magic</string> </key>
            <value> <int>3</int> </value>
        </item>
        <item>
            <key> <string>_bind_names</string> </key>
            <value>
              <object>
                <klass>
                  <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
                </klass>
                <tuple/>
                <state>
                  <dictionary>
                    <item>
                        <key> <string>_asgns</string> </key>
                        <value>
                          <dictionary>
                            <item>
                                <key> <string>name_container</string> </key>
                                <value> <string>container</string> </value>
                            </item>
                            <item>
                                <key> <string>name_context</string> </key>
                                <value> <string>context</string> </value>
                            </item>
                            <item>
                                <key> <string>name_m_self</string> </key>
                                <value> <string>script</string> </value>
                            </item>
                            <item>
                                <key> <string>name_subpath</string> </key>
                                <value> <string>traverse_subpath</string> </value>
                            </item>
                          </dictionary>
                        </value>
                    </item>
                  </dictionary>
                </state>
              </object>
            </value>
        </item>
        <item>
            <key> <string>_body</string> </key>
            <value> <string>from Products.ZSQLCatalog.SQLCatalog import Query, ComplexQuery\n
portal = context.getPortalObject()\n
\n
service = portal.restrictedTraverse(service_relative_url)\n
service_uid_list = [service.getUid()]\n
\n
sale_packing_list_line = portal.portal_catalog.getResultValue(\n
  portal_type="Sale Packing List Line",\n
  aggregate_relative_url=relative_url)\n
\n
if sale_packing_list_line is None:\n
  return []\n
computer_partition_relative_url = sale_packing_list_line.getAggregate(\n
  portal_type="Computer Partition")\n
\n
slave_instance_query = Query(aggregate_portal_type="Slave Instance")\n
\n
computer_partition_query = Query(\n
  aggregate_relative_url=computer_partition_relative_url)\n
\n
query = ComplexQuery(computer_partition_query, \n
  slave_instance_query, operator="AND")\n
\n
return portal.portal_catalog(portal_type=\'Sale Packing List Line\',\n
                             default_resource_uid=service_uid_list,\n
                             sort_on=((\'movement.start_date\', \'DESC\'),),\n
                             query=query, **kw)\n
</string> </value>
        </item>
        <item>
            <key> <string>_params</string> </key>
            <value> <string>relative_url, service_relative_url, **kw</string> </value>
        </item>
        <item>
            <key> <string>id</string> </key>
            <value> <string>ERP5Site_getSlaveInstanceListFromComputerPartition</string> </value>
        </item>
      </dictionary>
    </pickle>
  </record>
</ZopeData>
