Commit 444c0070 authored by Romain Courteaud's avatar Romain Courteaud

Drop not compatible code.

Slapos master is now stateless and can not provide installation/instanciation
states. Only slapgrid knows the real status.
parent 1bf497a4
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_local_properties</string> </key>
<value>
<tuple>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>business_template_skin_layer_priority</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>float</string> </value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>business_template_skin_layer_priority</string> </key>
<value> <float>60.0</float> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>vifib_agent</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>portal = context.getPortalObject()\n
computer = portal.portal_catalog.getResultValue(portal_type="Computer", reference=computer_reference)\n
return computer\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>computer_reference</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Agent_getComputerDocumentFromReference</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>portal = context.getPortalObject()\n
\n
computer = portal.portal_catalog.getResultValue(\n
portal_type="Computer",\n
reference=computer_reference)\n
\n
partition = portal.portal_catalog.getResultValue(\n
portal_type="Computer Partition",\n
reference=computer_partition_reference,\n
parent_uid=computer.getUid())\n
\n
instance = portal.portal_catalog.getResultValue(\n
portal_type="Software Instance",\n
default_aggregate_uid=partition.getUid(),\n
validation_state="validated")\n
\n
if instance is None:\n
return "Destroyed"\n
else:\n
return instance.SoftwareInstance_getStatus()\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>computer_reference, computer_partition_reference</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Agent_getComputerPartitionState</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>return [x for x in software_release_reference_list if context.Agent_getSoftwareReleaseStateOnComputer(computer_reference, x) == "Destruction requested"]\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>computer_reference, software_release_reference_list</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Agent_getDestroyingSoftwareReleaseReferenceListOnComputer</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>return [x for x in software_release_reference_list if context.Agent_getSoftwareReleaseStateOnComputer(computer_reference, x) == "Installed"]\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>computer_reference, software_release_reference_list</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Agent_getInstalledSoftwareReleaseReferenceListOnComputer</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>return [x for x in software_release_reference_list if context.Agent_getSoftwareReleaseStateOnComputer(computer_reference, x) in ("Installation requested", "Installation in progress")]\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>computer_reference, software_release_reference_list</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Agent_getInstallingSoftwareReleaseReferenceListOnComputer</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>computer = context.Agent_getComputerDocumentFromReference(computer_reference)\n
software_release = context.Agent_getSoftwareReleaseDocumentFromReference(software_release_reference)\n
portal = context.getPortalObject()\n
software_release_url = software_release.getUrlString()\n
from Products.ZSQLCatalog.SQLCatalog import Query, ComplexQuery\n
service_relative_url = portal.portal_preferences.getPreferredSoftwareCleanupResource()\n
service = portal.restrictedTraverse(service_relative_url)\n
service_uid = service.getUid()\n
state_list = []\n
state_list.extend(portal.getPortalReservedInventoryStateList())\n
state_list.extend(portal.getPortalTransitInventoryStateList())\n
packing_list_line = portal.portal_catalog.getResultValue(\n
portal_type=\'Purchase Packing List Line\',\n
simulation_state=state_list,\n
default_resource_uid=service_uid,\n
sort_on=((\'movement.start_date\', \'DESC\'),),\n
aggregate_relative_url=ComplexQuery(\n
Query(aggregate_relative_url=software_release.getRelativeUrl()),\n
Query(aggregate_relative_url=computer.getRelativeUrl()),\n
operator="AND"),\n
)\n
if packing_list_line is None:\n
return None\n
return packing_list_line.getParentValue()\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>computer_reference, software_release_reference</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Agent_getSoftwareReleaseCleanupPackingListOnComputer</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>packing_list = context.Agent_getSoftwareReleaseCleanupPackingListOnComputer(computer_reference, software_release_reference)\n
if packing_list is None:\n
return None\n
return packing_list.getStartDate().strftime("%Y-%m-%dT%H:%M:%S")\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>computer_reference, software_release_reference</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Agent_getSoftwareReleaseCleanupStartDateOnComputer</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>portal = context.getPortalObject()\n
software_release = portal.portal_catalog.getResultValue(portal_type="Software Release", url_string=software_release_reference)\n
return software_release\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>software_release_reference</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Agent_getSoftwareReleaseDocumentFromReference</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>computer = context.Agent_getComputerDocumentFromReference(computer_reference)\n
software_release = context.Agent_getSoftwareReleaseDocumentFromReference(software_release_reference)\n
portal = context.getPortalObject()\n
software_release_url = software_release.getUrlString()\n
from Products.ZSQLCatalog.SQLCatalog import Query, ComplexQuery\n
service_relative_url = portal.portal_preferences.getPreferredSoftwareSetupResource()\n
service = portal.restrictedTraverse(service_relative_url)\n
service_uid = service.getUid()\n
state_list = []\n
state_list.extend(portal.getPortalReservedInventoryStateList())\n
state_list.extend(portal.getPortalTransitInventoryStateList())\n
packing_list_line = portal.portal_catalog.getResultValue(\n
portal_type=\'Purchase Packing List Line\',\n
simulation_state=state_list,\n
default_resource_uid=service_uid,\n
sort_on=((\'movement.start_date\', \'DESC\'),),\n
aggregate_relative_url=ComplexQuery(\n
Query(aggregate_relative_url=software_release.getRelativeUrl()),\n
Query(aggregate_relative_url=computer.getRelativeUrl()),\n
operator="AND"),\n
)\n
if packing_list_line is None:\n
return None\n
return packing_list_line.getParentValue()\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>computer_reference, software_release_reference</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Agent_getSoftwareReleaseSetupPackingListOnComputer</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>packing_list = context.Agent_getSoftwareReleaseSetupPackingListOnComputer(computer_reference, software_release_reference)\n
if packing_list is None:\n
return None\n
return packing_list.getStartDate().strftime("%Y-%m-%dT%H:%M:%S")\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>computer_reference, software_release_reference</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Agent_getSoftwareReleaseSetupStartDateOnComputer</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>computer = context.Agent_getComputerDocumentFromReference(computer_reference)\n
software_release = context.Agent_getSoftwareReleaseDocumentFromReference(software_release_reference)\n
portal = context.getPortalObject()\n
from Products.ZSQLCatalog.SQLCatalog import Query, ComplexQuery\n
delivery_line = portal.portal_catalog.getResultValue(\n
portal_type=\'Purchase Packing List Line\',\n
default_resource_uid=[portal.restrictedTraverse(portal.portal_preferences.getPreferredSoftwareSetupResource()).getUid(), portal.restrictedTraverse(portal.portal_preferences.getPreferredSoftwareCleanupResource()).getUid()],\n
default_aggregate_uid=ComplexQuery(\n
Query(default_aggregate_uid=computer.getUid()),\n
Query(default_aggregate_uid=software_release.getUid()),\n
operator=\'AND\'\n
),\n
simulation_state=portal.getPortalCurrentInventoryStateList() + portal.getPortalReservedInventoryStateList() + portal.getPortalTransitInventoryStateList(),\n
limit=1,\n
sort_on=((\'movement.start_date\', \'DESC\'),),\n
)\n
if delivery_line is not None:\n
resource = delivery_line.getResource()\n
state = delivery_line.getSimulationState()\n
if resource == portal.portal_preferences.getPreferredSoftwareSetupResource():\n
if state == \'confirmed\':\n
return \'Installation requested\'\n
elif state == \'started\':\n
return \'Installation in progress\'\n
elif state == \'stopped\':\n
return \'Installed\'\n
elif resource == portal.portal_preferences.getPreferredSoftwareCleanupResource():\n
if state == \'confirmed\':\n
return \'Destruction requested\'\n
return \'None\'\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>computer_reference, software_release_reference</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Agent_getSoftwareReleaseStateOnComputer</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>computer = context.Agent_getComputerDocumentFromReference(computer_reference)\n
software_release = context.Agent_getSoftwareReleaseDocumentFromReference(software_release_reference)\n
portal = context.getPortalObject()\n
return portal.portal_catalog.countResults(\n
portal_type=\'Computer Partition\',\n
parent_uid=computer.getUid(),\n
free_for_request=0,\n
software_release_url=software_release.getUrlString()\n
)[0][0]\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>computer_reference, software_release_reference</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Agent_getSoftwareReleaseUsageOnComputer</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
Copyright (c) 2011-2012 Nexedi SA
\ No newline at end of file
GPL
\ No newline at end of file
vifib_agent
\ No newline at end of file
vifib_agent
\ No newline at end of file
1
\ No newline at end of file
......@@ -9,7 +9,6 @@ erp5_tiosafe_core
erp5_ui_test
erp5_ui_test_core
erp5_web
vifib_agent
vifib_base
vifib_configurator
vifib_data
......
541
\ No newline at end of file
542
\ No newline at end of file
......@@ -117,7 +117,6 @@ class testVifibMixin(ERP5TypeTestCase):
'vifib_data_simulation',
'vifib_data_payzen',
'vifib_configurator',
'vifib_agent',
'erp5_ui_test',
# All business templates above are the dependency
# tree of vifib_erp5, so if you mofify this list
......
......@@ -117,7 +117,6 @@ slapos_core
slapos_pdm
slapos_rest_api
slapos_subscription
vifib_agent
vifib_base
vifib_cash
vifib_core
......@@ -224,7 +223,6 @@ slapos_core
slapos_pdm
slapos_rest_api
slapos_subscription
vifib_agent
vifib_base
vifib_core
vifib_hosting_theme
......@@ -330,7 +328,6 @@ slapos_core
slapos_pdm
slapos_rest_api
slapos_subscription
vifib_agent
vifib_base
vifib_core
vifib_payzen
......@@ -430,7 +427,6 @@ slapos_core
slapos_pdm
slapos_rest_api
slapos_subscription
vifib_agent
vifib_base
vifib_core
vifib_payzen
......@@ -530,7 +526,6 @@ slapos_core
slapos_pdm
slapos_rest_api
slapos_subscription
vifib_agent
vifib_base
vifib_core
vifib_payzen
......@@ -633,7 +628,6 @@ slapos_core
slapos_pdm
slapos_rest_api
slapos_subscription
vifib_agent
vifib_base
vifib_core
vifib_payzen
......@@ -736,7 +730,6 @@ slapos_core
slapos_pdm
slapos_rest_api
slapos_subscription
vifib_agent
vifib_base
vifib_core
vifib_payzen
......@@ -836,7 +829,6 @@ slapos_core
slapos_pdm
slapos_rest_api
slapos_subscription
vifib_agent
vifib_base
vifib_core
vifib_payzen
......@@ -935,7 +927,6 @@ slapos_core
slapos_pdm
slapos_rest_api
slapos_subscription
vifib_agent
vifib_base
vifib_core
vifib_payzen
......@@ -1037,7 +1028,6 @@ slapos_core
slapos_pdm
slapos_rest_api
slapos_subscription
vifib_agent
vifib_base
vifib_core
vifib_payzen
......
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