Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Klaus Wölfel
slapos.core
Commits
3afac93d
Commit
3afac93d
authored
Oct 24, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop SoftwareType_getSecurityCategoryFromAggregateMovementItemByHostingSubscription.
Access document from local link.
parent
889f5e2f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
123 deletions
+12
-123
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Slave%20Instance.xml
...pos_erp5/PortalTypeRolesTemplateItem/Slave%20Instance.xml
+5
-5
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Software%20Instance.xml
..._erp5/PortalTypeRolesTemplateItem/Software%20Instance.xml
+5
-5
master/bt5/slapos_erp5/bt/revision
master/bt5/slapos_erp5/bt/revision
+1
-1
master/bt5/vifib_erp5/SkinTemplateItem/portal_skins/vifib_core/SoftwareType_getSecurityCategoryFromAggregateMovementItemByHostingSubscription.xml
...ategoryFromAggregateMovementItemByHostingSubscription.xml
+0
-111
master/bt5/vifib_erp5/bt/revision
master/bt5/vifib_erp5/bt/revision
+1
-1
No files found.
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Slave%20Instance.xml
View file @
3afac93d
...
@@ -14,17 +14,17 @@
...
@@ -14,17 +14,17 @@
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
</role>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Instance related by Hosting Subscription
</property>
<property
id=
'base_category_script'
>
ERP5Type_getSecurityCategoryFromContent
</property>
<multi_property
id=
'base_category'
>
specialise
</multi_property>
</role>
<role
id=
'Assignee'
>
<role
id=
'Assignee'
>
<property
id=
'title'
>
Owner become Assignee
</property>
<property
id=
'title'
>
Owner become Assignee
</property>
<property
id=
'description'
>
XXX Needed to allow doActionFor while creating the document
</property>
<property
id=
'description'
>
XXX Needed to allow doActionFor while creating the document
</property>
<property
id=
'base_category_script'
>
ERP5Type_acquireSecurityFromOwner
</property>
<property
id=
'base_category_script'
>
ERP5Type_acquireSecurityFromOwner
</property>
<multi_property
id=
'base_category'
>
source
</multi_property>
<multi_property
id=
'base_category'
>
source
</multi_property>
</role>
</role>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Slave Instance related by Hosting Subscription
</property>
<property
id=
'base_category_script'
>
SoftwareType_getSecurityCategoryFromAggregateMovementItemByHostingSubscription
</property>
<multi_property
id=
'base_category'
>
aggregate
</multi_property>
</role>
<role
id=
'Assignor'
>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Software Instance which provides this Slave Instance
</property>
<property
id=
'title'
>
Software Instance which provides this Slave Instance
</property>
<property
id=
'base_category_script'
>
ERP5Type_getSecurityCategoryFromSoftwareInstance
</property>
<property
id=
'base_category_script'
>
ERP5Type_getSecurityCategoryFromSoftwareInstance
</property>
...
...
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Software%20Instance.xml
View file @
3afac93d
...
@@ -14,15 +14,15 @@
...
@@ -14,15 +14,15 @@
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
</role>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Instance related by Hosting Subscription
</property>
<property
id=
'base_category_script'
>
ERP5Type_getSecurityCategoryFromContent
</property>
<multi_property
id=
'base_category'
>
specialise
</multi_property>
</role>
<role
id=
'Assignee'
>
<role
id=
'Assignee'
>
<property
id=
'title'
>
Owner become Assignee
</property>
<property
id=
'title'
>
Owner become Assignee
</property>
<property
id=
'description'
>
XXX Needed to allow doActionFor while creating the document
</property>
<property
id=
'description'
>
XXX Needed to allow doActionFor while creating the document
</property>
<property
id=
'base_category_script'
>
ERP5Type_acquireSecurityFromOwner
</property>
<property
id=
'base_category_script'
>
ERP5Type_acquireSecurityFromOwner
</property>
<multi_property
id=
'base_category'
>
source
</multi_property>
<multi_property
id=
'base_category'
>
source
</multi_property>
</role>
</role>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Software Instance related by Hosting Subscription
</property>
<property
id=
'base_category_script'
>
SoftwareType_getSecurityCategoryFromAggregateMovementItemByHostingSubscription
</property>
<multi_property
id=
'base_category'
>
aggregate
</multi_property>
</role>
</type_roles>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/bt/revision
View file @
3afac93d
8
9
\ No newline at end of file
\ No newline at end of file
master/bt5/vifib_erp5/SkinTemplateItem/portal_skins/vifib_core/SoftwareType_getSecurityCategoryFromAggregateMovementItemByHostingSubscription.xml
deleted
100644 → 0
View file @
889f5e2f
<?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>
# XXX For now, this script requires proxy manager\n
\n
# base_category_list : list of category values we need to retrieve\n
# user_name : string obtained from getSecurityManager().getUser().getUserName() [NuxUserGroup]\n
# or from getSecurityManager().getUser().getId() [PluggableAuthService with ERP5GroupManager]\n
# object : object which we want to assign roles to.\n
# portal_type : portal type of object\n
\n
# must always return a list of dicts\n
\n
category_list = []\n
\n
if obj is None:\n
return []\n
\n
item_portal_type = "Hosting Subscription"\n
movement_portal_type = ["Sale Order Line"]\n
\n
# BBB: Supports for Software Instances without Sale Order Line\n
movement_portal_type.append("Sale Packing List Line")\n
\n
portal = obj.getPortalObject()\n
\n
movement = portal.portal_catalog.getResultValue(\n
portal_type=movement_portal_type,\n
strict_aggregate_uid=obj.getUid(),\n
# simulation_state=(\'confirmed\', \'ordered\'), # BBB: State has no meaning\n
default_resource_uid=portal.restrictedTraverse(portal.portal_preferences.getPreferredInstanceSetupResource()).getUid(), # BBB: Resource is important\n
limit=1, # BBB: There shall be one and only one delivery line with setup resource\n
)\n
\n
if movement is not None:\n
item = movement.getAggregateValue(portal_type=item_portal_type)\n
if item is not None:\n
category_list.append({"aggregate": [item.getRelativeUrl()]})\n
\n
return category_list\n
</string>
</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>
SoftwareType_getSecurityCategoryFromAggregateMovementItemByHostingSubscription
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/vifib_erp5/bt/revision
View file @
3afac93d
510
511
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment