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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
e86f0251
Commit
e86f0251
authored
Sep 26, 2022
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_pdm: add Software Product Release Variation portal type
parent
f8d1b7e0
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
584 additions
and
1 deletion
+584
-1
master/bt5/slapos_pdm/ActionTemplateItem/portal_types/Software%20Product%20Release%20Variation/view.xml
...l_types/Software%20Product%20Release%20Variation/view.xml
+81
-0
master/bt5/slapos_pdm/CategoryTemplateItem/portal_categories/software_release.xml
...tegoryTemplateItem/portal_categories/software_release.xml
+243
-0
master/bt5/slapos_pdm/DocumentTemplateItem/portal_components/document.erp5.SoftwareProductReleaseVariation.py
...mponents/document.erp5.SoftwareProductReleaseVariation.py
+57
-0
master/bt5/slapos_pdm/DocumentTemplateItem/portal_components/document.erp5.SoftwareProductReleaseVariation.xml
...ponents/document.erp5.SoftwareProductReleaseVariation.xml
+112
-0
master/bt5/slapos_pdm/DocumentTemplateItem/portal_components/document.erp5_slapos.SoftwareProduct.py
...portal_components/document.erp5_slapos.SoftwareProduct.py
+1
-1
master/bt5/slapos_pdm/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
...eAllowedContentTypeTemplateItem/allowed_content_types.xml
+1
-0
master/bt5/slapos_pdm/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
...rtalTypePropertySheetTemplateItem/property_sheet_list.xml
+3
-0
master/bt5/slapos_pdm/PortalTypeTemplateItem/portal_types/Software%20Product%20Release%20Variation.xml
...portal_types/Software%20Product%20Release%20Variation.xml
+80
-0
master/bt5/slapos_pdm/bt/template_action_path_list
master/bt5/slapos_pdm/bt/template_action_path_list
+1
-0
master/bt5/slapos_pdm/bt/template_base_category_list
master/bt5/slapos_pdm/bt/template_base_category_list
+1
-0
master/bt5/slapos_pdm/bt/template_document_id_list
master/bt5/slapos_pdm/bt/template_document_id_list
+1
-0
master/bt5/slapos_pdm/bt/template_portal_type_allowed_content_type_list
...pos_pdm/bt/template_portal_type_allowed_content_type_list
+1
-0
master/bt5/slapos_pdm/bt/template_portal_type_id_list
master/bt5/slapos_pdm/bt/template_portal_type_id_list
+1
-0
master/bt5/slapos_pdm/bt/template_portal_type_property_sheet_list
...t5/slapos_pdm/bt/template_portal_type_property_sheet_list
+1
-0
No files found.
master/bt5/slapos_pdm/ActionTemplateItem/portal_types/Software%20Product%20Release%20Variation/view.xml
0 → 100644
View file @
e86f0251
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ActionInformation"
module=
"Products.CMFCore.ActionInformation"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_view
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_view
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
icon
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
view
</string>
</value>
</item>
<item>
<key>
<string>
permissions
</string>
</key>
<value>
<tuple>
<string>
View
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
priority
</string>
</key>
<value>
<float>
1.0
</float>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
View
</string>
</value>
</item>
<item>
<key>
<string>
visible
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Expression"
module=
"Products.CMFCore.Expression"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
text
</string>
</key>
<value>
<string>
string:${object_url}/SoftwareProductIndividualVariation_view
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_pdm/CategoryTemplateItem/portal_categories/software_release.xml
0 → 100644
View file @
e86f0251
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Base Category"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_folders_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Copy_or_Move_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Delete_objects_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_count
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_mt_index
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_tree
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
acquisition_append_value
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
acquisition_base_category
</string>
</key>
<value>
<tuple>
<string>
order
</string>
<string>
parent
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
acquisition_copy_value
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
acquisition_mask_value
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
acquisition_object_id
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
acquisition_portal_type
</string>
</key>
<value>
<string>
python: []
</string>
</value>
</item>
<item>
<key>
<string>
acquisition_sync_value
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
category_type
</string>
</key>
<value>
<tuple>
<string>
variation
</string>
<string>
line
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
criterion_property
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
fallback_base_category
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
software_release
</string>
</value>
</item>
<item>
<key>
<string>
id_generator
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id_group
</string>
</key>
<value>
<string>
None
</string>
</value>
</item>
<item>
<key>
<string>
membership_criterion_base_category
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
membership_criterion_category
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
multimembership_criterion_base_category
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Base Category
</string>
</value>
</item>
<item>
<key>
<string>
read_permission
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
rid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
test_method_id
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Software Release
</string>
</value>
</item>
<item>
<key>
<string>
write_permission
</string>
</key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Length"
module=
"BTrees.Length"
/>
</pickle>
<pickle>
<int>
0
</int>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_pdm/DocumentTemplateItem/portal_components/document.erp5.SoftwareProductReleaseVariation.py
0 → 100644
View file @
e86f0251
##############################################################################
#
# Copyright (c) 2022 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# garantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
erp5.component.document.Variation
import
Variation
class
SoftwareProductReleaseVariation
(
Variation
):
"""
A Variation
"""
meta_type
=
'ERP5 Software Product Type Release'
portal_type
=
'Software Product Type Release'
add_permission
=
Permissions
.
AddPortalContent
# Declarative security
security
=
ClassSecurityInfo
()
security
.
declareObjectProtected
(
Permissions
.
AccessContentsInformation
)
# Declarative properties
property_sheets
=
(
PropertySheet
.
Base
,
PropertySheet
.
CategoryCore
,
PropertySheet
.
DublinCore
,
PropertySheet
.
Price
,
PropertySheet
.
Variation
,
PropertySheet
.
VariationRange
,
PropertySheet
.
Reference
)
variation_base_category_list
=
(
'software_release'
,)
master/bt5/slapos_pdm/DocumentTemplateItem/portal_components/document.erp5.SoftwareProductReleaseVariation.xml
0 → 100644
View file @
e86f0251
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Document Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
SoftwareProductReleaseVariation
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document.erp5.SoftwareProductReleaseVariation
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Document Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<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>
master/bt5/slapos_pdm/DocumentTemplateItem/portal_components/document.erp5_slapos.SoftwareProduct.py
View file @
e86f0251
...
...
@@ -56,5 +56,5 @@ class SoftwareProduct(ERP5SoftwareProduct):
# valid type by default.
content_type
=
''
variation_base_category_list
=
(
'software_
type'
,
)
variation_base_category_list
=
(
'software_
release'
,
'software_type'
,
)
master/bt5/slapos_pdm/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
View file @
e86f0251
...
...
@@ -2,6 +2,7 @@
<portal_type
id=
"Software Product"
>
<item>
Embedded File
</item>
<item>
Software Product Individual Variation
</item>
<item>
Software Product Release Variation
</item>
<item>
Software Product Type Variation
</item>
</portal_type>
<portal_type
id=
"Upgrade Decision"
>
...
...
master/bt5/slapos_pdm/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
View file @
e86f0251
...
...
@@ -8,6 +8,9 @@
<portal_type
id=
"Software Product Individual Variation"
>
<item>
SlaposCapacity
</item>
</portal_type>
<portal_type
id=
"Software Product Release Variation"
>
<item>
SlaposCapacity
</item>
</portal_type>
<portal_type
id=
"Software Product Type Variation"
>
<item>
SlaposCapacity
</item>
</portal_type>
...
...
master/bt5/slapos_pdm/PortalTypeTemplateItem/portal_types/Software%20Product%20Release%20Variation.xml
0 → 100644
View file @
e86f0251
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Base Type"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
acquire_local_roles
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
content_icon
</string>
</key>
<value>
<string>
document.gif
</string>
</value>
</item>
<item>
<key>
<string>
content_meta_type
</string>
</key>
<value>
<string>
ERP5 Variation
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Subdivision of a product that helps define variations of this product based on different axis such as colour or size for instance. Each variation can have its own price.
</string>
</value>
</item>
<item>
<key>
<string>
factory
</string>
</key>
<value>
<string>
addVariation
</string>
</value>
</item>
<item>
<key>
<string>
filter_content_types
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
group_list
</string>
</key>
<value>
<tuple>
<string>
variation
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Software Product Release Variation
</string>
</value>
</item>
<item>
<key>
<string>
init_script
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
permission
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
type_class
</string>
</key>
<value>
<string>
SoftwareProductReleaseVariation
</string>
</value>
</item>
<item>
<key>
<string>
type_interface
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
type_mixin
</string>
</key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_pdm/bt/template_action_path_list
View file @
e86f0251
Compute Node | view_related_upgrade_decision
Instance Tree | view_upgrade
Software Product Individual Variation | view
Software Product Release Variation | view
Software Product Type Variation | view
Software Product | capacity
Software Product | mass_upgrade
...
...
master/bt5/slapos_pdm/bt/template_base_category_list
View file @
e86f0251
software_release
software_type
\ No newline at end of file
master/bt5/slapos_pdm/bt/template_document_id_list
View file @
e86f0251
document.erp5.SoftwareProductTypeVariation
document.erp5.SoftwareProductReleaseVariation
document.erp5_slapos.SoftwareProduct
\ No newline at end of file
master/bt5/slapos_pdm/bt/template_portal_type_allowed_content_type_list
View file @
e86f0251
Software Product | Embedded File
Software Product | Software Product Individual Variation
Software Product | Software Product Release Variation
Software Product | Software Product Type Variation
Upgrade Decision Module | Upgrade Decision
Upgrade Decision | Upgrade Decision Line
\ No newline at end of file
master/bt5/slapos_pdm/bt/template_portal_type_id_list
View file @
e86f0251
Software Product Individual Variation
Software Product Release Variation
Software Product Type Variation
Upgrade Decision
Upgrade Decision Line
...
...
master/bt5/slapos_pdm/bt/template_portal_type_property_sheet_list
View file @
e86f0251
Software Product Individual Variation | SlaposCapacity
Software Product Release Variation | SlaposCapacity
Software Product Type Variation | SlaposCapacity
Software Product | DefaultImage
Software Product | SlapOSSoftwareProductConstraint
...
...
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