<?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>sale_packing_list_line = context\n
software_instance = sale_packing_list_line.getAggregateValue(portal_type=\'Software Instance\')\n
computer_partition = sale_packing_list_line.getAggregateValue(portal_type=[\'Computer Partition\', \'Slave Partition\'])\n
software_release = sale_packing_list_line.getAggregateValue(portal_type=\'Software Release\')\n
slave_id_list = []\n
ip_list = []\n
if computer_partition.getPortalType() == \'Computer Partition\':\n
  slave_id_list = [slave_partition.getReference() for slave_partition in \\\n
     computer_partition.contentValues(portal_type=\'Slave Partition\') \\\n
     if slave_partition.getSlapState() == \'busy\']\n
  for internet_protocol_address in computer_partition.contentValues(portal_type=\'Internet Protocol Address\'):\n
    ip_list.append((internet_protocol_address.getNetworkInterface(\'\'), internet_protocol_address.getIpAddress()))\n
if software_instance is not None and computer_partition is not None and software_release is not None:\n
  return {\n
    \'xml\':software_instance.getTextContent(),\n
    \'connection_xml\':software_instance.getConnectionXml(),\n
    \'slap_computer_id\':computer_partition.getParentValue().getReference(),\n
    \'slap_computer_partition_id\':computer_partition.getReference(),\n
    \'slap_software_type\': software_instance.getSourceReference(),\n
    \'slap_software_release_url\':software_release.getUrlString(),\n
    \'slap_server_url\':context.getPortalObject().portal_slap.absolute_url(),\n
    \'slave_id_list\':slave_id_list, # XXX: Is it really ok to send non string in instance xml dict?\n
    \'ip_list\':ip_list,\n
  }\n
return None\n
</string> </value>
        </item>
        <item>
            <key> <string>_params</string> </key>
            <value> <string></string> </value>
        </item>
        <item>
            <key> <string>id</string> </key>
            <value> <string>SalePackinListLine_asSoftwareInstnaceComputerPartitionMergedDict</string> </value>
        </item>
      </dictionary>
    </pickle>
  </record>
</ZopeData>
