Commit cb45f4f2 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_erp5&cloud&accounting: Fix up Naminig convention

parent 5978f1fc
......@@ -65,7 +65,7 @@
</item>
<item>
<key> <string>delivery_after_generation_script_id</string> </key>
<value> <string>SlapOSSaleInvoiceTransaction_postGeneration</string> </value>
<value> <string>SaleInvoiceTransaction_postSlapOSGeneration</string> </value>
</item>
<item>
<key> <string>delivery_cell_collect_order</string> </key>
......@@ -152,7 +152,7 @@
</item>
<item>
<key> <string>simulation_select_method_id</string> </key>
<value> <string>SlapOSDeliveryBuilder_selectMovement</string> </value>
<value> <string>DeliveryBuilder_selectSlapOSMovement</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -128,7 +128,7 @@
</item>
<item>
<key> <string>delivery_select_method_id</string> </key>
<value> <string>SlapOSInvoiceTransaction_selectDelivery</string> </value>
<value> <string>SaleInvoiceTransaction_selectSlapOSDelivery</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......@@ -150,7 +150,7 @@
</item>
<item>
<key> <string>simulation_select_method_id</string> </key>
<value> <string>SlapOSDeliveryBuilder_selectMovement</string> </value>
<value> <string>DeliveryBuilder_selectSlapOSMovement</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -126,7 +126,7 @@
</item>
<item>
<key> <string>delivery_select_method_id</string> </key>
<value> <string>SlapOSInvoiceTransaction_selectDelivery</string> </value>
<value> <string>SaleInvoiceTransaction_selectSlapOSDelivery</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......@@ -148,7 +148,7 @@
</item>
<item>
<key> <string>simulation_select_method_id</string> </key>
<value> <string>SlapOSDeliveryBuilder_selectMovement</string> </value>
<value> <string>DeliveryBuilder_selectSlapOSMovement</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -65,7 +65,7 @@
</item>
<item>
<key> <string>delivery_after_generation_script_id</string> </key>
<value> <string>SlapOSSalePackingList_postGeneration</string> </value>
<value> <string>SalePackingList_postSlapOSGeneration</string> </value>
</item>
<item>
<key> <string>delivery_cell_collect_order</string> </key>
......@@ -154,7 +154,7 @@
</item>
<item>
<key> <string>simulation_select_method_id</string> </key>
<value> <string>SlapOSDeliveryBuilder_selectMovement</string> </value>
<value> <string>DeliveryBuilder_selectSlapOSMovement</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -6,5 +6,5 @@ portal = context.getPortalObject()
portal.portal_catalog.searchAndActivate(
portal_type="Software Release",
method_id="SotftwareRelease_updateCapacityQuantity",
method_id="SoftwareRelease_updateCapacityQuantity",
)
......@@ -54,7 +54,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>HostingSubscript_getEcoReallocationInformation</string> </value>
<value> <string>HostingSubscription_getEcoReallocationInformation</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -54,7 +54,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Instance_tryToGarbageCollect</string> </value>
<value> <string>SoftwareRelease_updateCapacityQuantity</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -324,7 +324,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>SlapOSDeliveryBuilder_selectMovement</string> </value>
<value> <string>DeliveryBuilder_selectSlapOSMovement</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -54,7 +54,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>SlapOSPaymentTransaction_postGeneration</string> </value>
<value> <string>PaymentTransaction_postSlapOSGeneration</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -54,7 +54,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>SlapOSSaleInvoiceTransaction_postGeneration</string> </value>
<value> <string>SaleInvoiceTransaction_postSlapOSGeneration</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -54,7 +54,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>SlapOSInvoiceTransaction_selectDelivery</string> </value>
<value> <string>SaleInvoiceTransaction_selectSlapOSDelivery</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -54,7 +54,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>SlapOSSalePackingList_postGeneration</string> </value>
<value> <string>SalePackingList_postSlapOSGeneration</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -4,7 +4,7 @@ portal.portal_catalog.searchAndActivate(
portal_type=["Slave Instance", "Software Instance"],
validation_state="validated",
specialise_validation_state="archived",
method_id='Instance_tryToGarbageCollect',
method_id='SoftwareInstance_tryToGarbageCollect',
activate_kw={'tag': tag},
**{"slapos_item.slap_state": ("start_requested", "stop_requested")}
)
......
......@@ -7,7 +7,7 @@ portal.portal_catalog.searchAndActivate(
select_dict=select_dict,
left_join_list=select_dict.keys(),
method_id='Instance_tryToGarbageCollectNonAllocatedRootTree',
method_id='SoftwareInstance_tryToGarbageCollectNonAllocatedRootTree',
activate_kw={'tag': tag},
**{"slapos_item.slap_state": ['start_requested', 'stop_requested']}
)
......
......@@ -4,7 +4,7 @@ portal.portal_catalog.searchAndActivate(
portal_type=["Software Instance", "Slave Instance"],
default_aggregate_relative_url="computer_module/%/%",
validation_state="invalidated",
method_id='Instance_tryToUnallocatePartition',
method_id='SoftwareInstance_tryToUnallocatePartition',
activate_kw={'tag': tag}
)
......
......@@ -8,7 +8,7 @@ portal.portal_catalog.searchAndActivate(
portal_type=["Slave Instance", "Software Instance"],
validation_state="validated",
specialise_validation_state="validated",
method_id='Instance_tryToStopCollect',
method_id='SoftwareInstance_tryToStopCollect',
activate_kw={'tag': tag},
**{"slapos_item.slap_state": "start_requested"}
)
......
......@@ -54,7 +54,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Instance_tryToUnallocatePartition</string> </value>
<value> <string>SoftwareInstance_tryToGarbageCollect</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -54,7 +54,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Instance_tryToGarbageCollectNonAllocatedRootTree</string> </value>
<value> <string>SoftwareInstance_tryToGarbageCollectNonAllocatedRootTree</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -54,7 +54,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Instance_tryToStopCollect</string> </value>
<value> <string>SoftwareInstance_tryToStopCollect</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -54,7 +54,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>SotftwareRelease_updateCapacityQuantity</string> </value>
<value> <string>SoftwareInstance_tryToUnallocatePartition</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -100,24 +100,28 @@
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/>
<global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>validate</string> </value>
</item>
<item>
<key> <string>validation_state</string> </key>
<value> <string>validated</string> </value>
</item>
</dictionary>
</list>
</tuple>
<dictionary>
<item>
<key> <string>_log</string> </key>
<value>
<list>
<dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>validate</string> </value>
</item>
<item>
<key> <string>validation_state</string> </key>
<value> <string>validated</string> </value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -2,7 +2,7 @@
<role id='Auditor'>
<property id='title'>Customer of the partition</property>
<property id='condition'>python: here.getSlapState() == "busy"</property>
<property id='base_category_script'>PartitionType_getSecurityCategoryFromUser</property>
<property id='base_category_script'>ComputerPartition_getSecurityCategoryFromUser</property>
<multi_property id='categories'>local_role_group/user</multi_property>
<multi_property id='base_category'>destination_section</multi_property>
</role>
......
......@@ -2,7 +2,7 @@
<role id='Auditor'>
<property id='title'>Allocation scope</property>
<property id='condition'>python: here.getAllocationScope('').startswith('open')</property>
<property id='base_category_script'>ComputerType_getSecurityCategoryFromAllocationScope</property>
<property id='base_category_script'>Computer_getSecurityCategoryFromAllocationScope</property>
<multi_property id='categories'>local_role_group/shadow</multi_property>
<multi_property id='base_category'>aggregate</multi_property>
</role>
......
......@@ -15,7 +15,7 @@
<role id='Auditor'>
<property id='title'>Shadow User</property>
<property id='condition'>python: here.getDestinationSection('', portal_type='Person') != ''</property>
<property id='base_category_script'>PaymentTransactionType_getSecurityCategoryFromUser</property>
<property id='base_category_script'>PaymentTransaction_getSecurityCategoryFromUser</property>
<multi_property id='categories'>local_role_group/shadow</multi_property>
<multi_property id='base_category'>aggregate</multi_property>
</role>
......
......@@ -8,7 +8,7 @@
<role id='Assignee'>
<property id='title'>Shadow User</property>
<property id='condition'>python: here.getDestinationSection('', portal_type='Person') != ''</property>
<property id='base_category_script'>PayzenEventType_getSecurityCategoryFromUser</property>
<property id='base_category_script'>PayzenEvent_getSecurityCategoryFromUser</property>
<multi_property id='categories'>local_role_group/shadow</multi_property>
<multi_property id='base_category'>aggregate</multi_property>
</role>
......
......@@ -9,7 +9,7 @@
<property id='title'>The Shadow User Himself</property>
<property id='description'>Monovalued role</property>
<property id='condition'>python: here.objectValues(portal_type=["ERP5 Login", "Google Login", "Facebook Login", "Certificate Login"])</property>
<property id='base_category_script'>PersonType_getSecurityCategoryFromSelfShadow</property>
<property id='base_category_script'>Person_getSecurityCategoryFromSelfShadow</property>
<multi_property id='categories'>local_role_group/shadow</multi_property>
<multi_property id='base_category'>group</multi_property>
</role>
......
......@@ -7,7 +7,7 @@
</role>
<role id='Assignee'>
<property id='title'>Customer of the Instance</property>
<property id='base_category_script'>InstanceType_getSecurityCategoryFromUser</property>
<property id='base_category_script'>SoftwareInstance_getSecurityCategoryFromUser</property>
<multi_property id='categories'>local_role_group/user</multi_property>
<multi_property id='base_category'>destination_section</multi_property>
</role>
......@@ -25,19 +25,19 @@
</role>
<role id='Assignee'>
<property id='title'>Organisation Member</property>
<property id='base_category_script'>Instance_getSecurityCategoryFromMovementSpecialiseDestination</property>
<property id='base_category_script'>SoftwareInstance_getSecurityCategoryFromMovementSpecialiseDestination</property>
<multi_property id='categories'>local_role_group/organisation</multi_property>
<multi_property id='base_category'>destination</multi_property>
</role>
<role id='Assignee'>
<property id='title'>Project Member</property>
<property id='base_category_script'>Instance_getSecurityCategoryFromMovementSpecialiseDestinationProject</property>
<property id='base_category_script'>SoftwareInstance_getSecurityCategoryFromMovementSpecialiseDestinationProject</property>
<multi_property id='categories'>local_role_group/project</multi_property>
<multi_property id='base_category'>destination_project</multi_property>
</role>
<role id='Assignor'>
<property id='title'>Software Instance which provides this Slave Instance</property>
<property id='base_category_script'>SlaveInstanceType_getSecurityCategoryFromSoftwareInstance</property>
<property id='base_category_script'>SlaveInstance_getSecurityCategoryFromSoftwareInstance</property>
<multi_property id='base_category'>aggregate</multi_property>
</role>
</type_roles>
\ No newline at end of file
</type_roles>
......@@ -7,7 +7,7 @@
</role>
<role id='Assignee'>
<property id='title'>Customer of the Instance</property>
<property id='base_category_script'>InstanceType_getSecurityCategoryFromUser</property>
<property id='base_category_script'>SoftwareInstance_getSecurityCategoryFromUser</property>
<multi_property id='categories'>local_role_group/user</multi_property>
<multi_property id='base_category'>destination_section</multi_property>
</role>
......@@ -25,14 +25,14 @@
</role>
<role id='Assignee'>
<property id='title'>Organisation Member</property>
<property id='base_category_script'>Instance_getSecurityCategoryFromMovementSpecialiseDestination</property>
<property id='base_category_script'>SoftwareInstance_getSecurityCategoryFromMovementSpecialiseDestination</property>
<multi_property id='categories'>local_role_group/organisation</multi_property>
<multi_property id='base_category'>destination</multi_property>
</role>
<role id='Assignee'>
<property id='title'>Project Member</property>
<property id='base_category_script'>Instance_getSecurityCategoryFromMovementSpecialiseDestinationProject</property>
<property id='base_category_script'>SoftwareInstance_getSecurityCategoryFromMovementSpecialiseDestinationProject</property>
<multi_property id='categories'>local_role_group/project</multi_property>
<multi_property id='base_category'>destination_project</multi_property>
</role>
</type_roles>
\ No newline at end of file
</type_roles>
......@@ -8,7 +8,7 @@
<role id='Assignee'>
<property id='title'>Shadow User</property>
<property id='condition'>python: here.getDestinationSection('', portal_type='Person') != ''</property>
<property id='base_category_script'>PayzenEventType_getSecurityCategoryFromUser</property>
<property id='base_category_script'>PayzenEvent_getSecurityCategoryFromUser</property>
<multi_property id='categories'>local_role_group/shadow</multi_property>
<multi_property id='base_category'>aggregate</multi_property>
</role>
......
......@@ -3900,7 +3900,7 @@ slapos_contract;CloudContractModule_viewCloudContractList;ERP5 Form;567bc1d268f1
slapos_contract;CloudContract_view;ERP5 Form;567bc1d268f135496de3d5b946b691f3
slapos_contract;Person_isAllowedToAllocate;Script (Python);1011560d667674a6dc682278576fdac3
slapos_contract;SoftwareInstance_requestValidationPayment;Script (Python);870ea0066ada7e7c82927fe6cdb699bc
slapos_core;ComputerType_getSecurityCategoryFromAllocationScope;Script (Python);026c89445871f2338f2b2f7516f62b5e
slapos_core;Computer_getSecurityCategoryFromAllocationScope;Script (Python);026c89445871f2338f2b2f7516f62b5e
slapos_core;ERP5Site_viewWorklist;ERP5 Form;567bc1d268f135496de3d5b946b691f3
slapos_core;ERP5Type_acquireSecurityFromOwner;Script (Python);6b0ecba5c6bd74065cbc83d2a823f4a3
slapos_core;ERP5Type_getComputerSecurityCategory;External Method;d41d8cd98f00b204e9800998ecf8427e
......@@ -3910,19 +3910,19 @@ slapos_core;ERP5Type_getSecurityCategoryFromContentParent;Script (Python);5331a6
slapos_core;ERP5Type_getSecurityCategoryFromParent;Script (Python);a8d13633bb50363ea5b180f8d65ccde8
slapos_core;ERP5Type_getSecurityCategoryMapping;Script (Python);c488f23e5ce532818351e35b7677b8f7
slapos_core;ERP5Type_getSoftwareInstanceSecurityCategory;External Method;d41d8cd98f00b204e9800998ecf8427e
slapos_core;InstanceType_getSecurityCategoryFromUser;Script (Python);6ef7c7d387802d420282ae13a4bd7de6
slapos_core;SoftwareInstance_getSecurityCategoryFromUser;Script (Python);6ef7c7d387802d420282ae13a4bd7de6
slapos_core;Instance_getSecurityCategoryFromMovementSpecialiseDestination;Script (Python);856f6ba3157e8ea3c78b2d590345d68d
slapos_core;Instance_getSecurityCategoryFromMovementSpecialiseDestinationProject;Script (Python);e3c875ff319f7242f3eeb480c0db499d
slapos_core;SoftwareInstance_getSecurityCategoryFromMovementSpecialiseDestinationProject;Script (Python);e3c875ff319f7242f3eeb480c0db499d
slapos_core;Item_getSecurityCategoryFromMovementAggregateDestinationProject;Script (Python);f3b6a577753f82221a7aa6dc7b78f730
slapos_core;Item_getSecurityCategoryFromMovementAggregateDestinationSection;Script (Python);32945204cbeca4d40ecd308649803c84
slapos_core;Item_getSecurityCategoryFromMovementDestination;Script (Python);3a29e4120d2afcbe0472a6a7716042f5
slapos_core;Item_getSecurityCategoryFromMovementDestinationProject;Script (Python);88fe76159d022151d8373d3d0cc7cbfe
slapos_core;Item_getSecurityCategoryFromMovementDestinationSection;Script (Python);2f02ca4fd91d6266adb0b8ac52bf54f6
slapos_core;PartitionType_getSecurityCategoryFromUser;Script (Python);1890e2a89e76cdf93b9180c7b345e6a6
slapos_core;PaymentTransactionType_getSecurityCategoryFromUser;Script (Python);62c11bd590265c8ab24574a923d44e7d
slapos_core;PayzenEventType_getSecurityCategoryFromUser;Script (Python);ae3782f48d74f8b3f076212ac6ad8afc
slapos_core;PersonType_getSecurityCategoryFromSelfShadow;Script (Python);fc74fcc1cad0ada14b9b6c3d4b77a5a1
slapos_core;SlaveInstanceType_getSecurityCategoryFromSoftwareInstance;Script (Python);5f8786f3df83a837ab947fc5d15f5cae
slapos_core;ComputerPartition_getSecurityCategoryFromUser;Script (Python);1890e2a89e76cdf93b9180c7b345e6a6
slapos_core;PaymentTransaction_getSecurityCategoryFromUser;Script (Python);62c11bd590265c8ab24574a923d44e7d
slapos_core;PayzenEvent_getSecurityCategoryFromUser;Script (Python);ae3782f48d74f8b3f076212ac6ad8afc
slapos_core;Person_getSecurityCategoryFromSelfShadow;Script (Python);fc74fcc1cad0ada14b9b6c3d4b77a5a1
slapos_core;SlaveInstance_getSecurityCategoryFromSoftwareInstance;Script (Python);5f8786f3df83a837ab947fc5d15f5cae
slapos_crm;Alarm_cancelInvoiceRelatedToSuspendedRegularisationRequest;Script (Python);8fe12acf0214090c706ed25f56f4be44
slapos_crm;Alarm_createRegularisationRequest;Script (Python);03d5146c85e93af9d03df0ac3219248a
slapos_crm;Alarm_deleteHostingSubscriptionFromRegularisationRequest;Script (Python);85544411d0dee68a7ffe4b3415a21046
......
......@@ -283,7 +283,7 @@ Computer
Condition: python: here.getAllocationScope('').startswith('open')
Local Roles Group Id: shadow
Base Categories: ['aggregate']
Base Category Script: ComputerType_getSecurityCategoryFromAllocationScope
Base Category Script: Computer_getSecurityCategoryFromAllocationScope
Categories: []
Computer
......@@ -499,7 +499,7 @@ Computer Partition
Condition: python: here.getSlapState() == "busy"
Local Roles Group Id: user
Base Categories: ['destination_section']
Base Category Script: PartitionType_getSecurityCategoryFromUser
Base Category Script: ComputerPartition_getSecurityCategoryFromUser
Categories: []
Computer Partition
......@@ -1300,7 +1300,7 @@ Payment Transaction
Condition: python: here.getDestinationSection('', portal_type='Person') != ''
Local Roles Group Id: shadow
Base Categories: ['aggregate']
Base Category Script: PaymentTransactionType_getSecurityCategoryFromUser
Base Category Script: PaymentTransaction_getSecurityCategoryFromUser
Categories: []
Payment Transaction
......@@ -1327,7 +1327,7 @@ Payzen Event
Condition: python: here.getDestinationSection('', portal_type='Person') != ''
Local Roles Group Id: shadow
Base Categories: ['aggregate']
Base Category Script: PayzenEventType_getSecurityCategoryFromUser
Base Category Script: PayzenEvent_getSecurityCategoryFromUser
Categories: []
Person
......@@ -1345,7 +1345,7 @@ Person
Condition: python: here.objectValues(portal_type=["ERP5 Login", "Google Login", "Facebook Login", "Certificate Login"])
Local Roles Group Id: shadow
Base Categories: ['group']
Base Category Script: PersonType_getSecurityCategoryFromSelfShadow
Base Category Script: Person_getSecurityCategoryFromSelfShadow
Categories: []
Person
......@@ -1885,7 +1885,7 @@ Slave Instance
Condition: None
Local Roles Group Id: user
Base Categories: ['destination_section']
Base Category Script: InstanceType_getSecurityCategoryFromUser
Base Category Script: SoftwareInstance_getSecurityCategoryFromUser
Categories: []
Slave Instance
......@@ -1912,7 +1912,7 @@ Slave Instance
Condition: None
Local Roles Group Id: organisation
Base Categories: ['destination']
Base Category Script: Instance_getSecurityCategoryFromMovementSpecialiseDestination
Base Category Script: SoftwareInstance_getSecurityCategoryFromMovementSpecialiseDestination
Categories: []
Slave Instance
......@@ -1921,7 +1921,7 @@ Slave Instance
Condition: None
Local Roles Group Id: project
Base Categories: ['destination_project']
Base Category Script: Instance_getSecurityCategoryFromMovementSpecialiseDestinationProject
Base Category Script: SoftwareInstance_getSecurityCategoryFromMovementSpecialiseDestinationProject
Categories: []
Slave Instance
......@@ -1930,7 +1930,7 @@ Slave Instance
Condition: None
Local Roles Group Id: None
Base Categories: ['aggregate']
Base Category Script: SlaveInstanceType_getSecurityCategoryFromSoftwareInstance
Base Category Script: SlaveInstance_getSecurityCategoryFromSoftwareInstance
Categories: []
Software Installation
......@@ -2020,7 +2020,7 @@ Software Instance
Condition: None
Local Roles Group Id: user
Base Categories: ['destination_section']
Base Category Script: InstanceType_getSecurityCategoryFromUser
Base Category Script: SoftwareInstance_getSecurityCategoryFromUser
Categories: []
Software Instance
......@@ -2047,7 +2047,7 @@ Software Instance
Condition: None
Local Roles Group Id: organisation
Base Categories: ['destination']
Base Category Script: Instance_getSecurityCategoryFromMovementSpecialiseDestination
Base Category Script: SoftwareInstance_getSecurityCategoryFromMovementSpecialiseDestination
Categories: []
Software Instance
......@@ -2056,7 +2056,7 @@ Software Instance
Condition: None
Local Roles Group Id: project
Base Categories: ['destination_project']
Base Category Script: Instance_getSecurityCategoryFromMovementSpecialiseDestinationProject
Base Category Script: SoftwareInstance_getSecurityCategoryFromMovementSpecialiseDestinationProject
Categories: []
Software Instance Module
......@@ -2434,6 +2434,6 @@ Wechat Event
Condition: python: here.getDestinationSection('', portal_type='Person') != ''
Local Roles Group Id: shadow
Base Categories: ['aggregate']
Base Category Script: PayzenEventType_getSecurityCategoryFromUser
Base Category Script: PayzenEvent_getSecurityCategoryFromUser
Categories: []
......@@ -62,7 +62,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>PayzenEventType_getSecurityCategoryFromUser</string> </value>
<value> <string>ComputerPartition_getSecurityCategoryFromUser</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -62,7 +62,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>PaymentTransactionType_getSecurityCategoryFromUser</string> </value>
<value> <string>Computer_getSecurityCategoryFromAllocationScope</string> </value>
</item>
</dictionary>
</pickle>
......
<?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>_params</string> </key>
<value> <string>base_category_list, user_name, obj, portal_type</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>PaymentTransaction_getSecurityCategoryFromUser</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -32,7 +32,7 @@ if obj is None:
person = obj.getDestinationSectionValue(portal_type="Person")
if person is not None:
for base_category in base_category_list:
if base_category_list:
return {"Assignee": ["SHADOW-%s" % person.getUserId()]}
return category_list
......@@ -62,7 +62,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>InstanceType_getSecurityCategoryFromUser</string> </value>
<value> <string>PayzenEvent_getSecurityCategoryFromUser</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -54,7 +54,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>PersonType_getSecurityCategoryFromSelfShadow</string> </value>
<value> <string>Person_getSecurityCategoryFromSelfShadow</string> </value>
</item>
</dictionary>
</pickle>
......
<?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>_params</string> </key>
<value> <string>base_category_list, user_name, obj, portal_type</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>SlaveInstanceType_getSecurityCategoryFromSoftwareInstance</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -62,7 +62,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>ComputerType_getSecurityCategoryFromAllocationScope</string> </value>
<value> <string>SlaveInstance_getSecurityCategoryFromSoftwareInstance</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -62,7 +62,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Instance_getSecurityCategoryFromMovementSpecialiseDestinationProject</string> </value>
<value> <string>SoftwareInstance_getSecurityCategoryFromMovementSpecialiseDestination</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -62,7 +62,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Instance_getSecurityCategoryFromMovementSpecialiseDestination</string> </value>
<value> <string>SoftwareInstance_getSecurityCategoryFromMovementSpecialiseDestinationProject</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -62,7 +62,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>PartitionType_getSecurityCategoryFromUser</string> </value>
<value> <string>SoftwareInstance_getSecurityCategoryFromUser</string> </value>
</item>
</dictionary>
</pickle>
......
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