Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Paul Graydon
erp5
Commits
fa758067
Commit
fa758067
authored
Jul 05, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define a portal type group for properties (from property sheets)
parent
2a1e09ff
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
59 additions
and
3 deletions
+59
-3
product/ERP5/ERP5Site.py
product/ERP5/ERP5Site.py
+9
-1
product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Acquired%20Property.xml
...rtalTypeTemplateItem/portal_types/Acquired%20Property.xml
+14
-0
product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Category%20Property.xml
...rtalTypeTemplateItem/portal_types/Category%20Property.xml
+20
-0
product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Dynamic%20Category%20Property.xml
...mplateItem/portal_types/Dynamic%20Category%20Property.xml
+14
-0
product/ERP5/bootstrap/erp5_core/bt/revision
product/ERP5/bootstrap/erp5_core/bt/revision
+1
-1
product/ERP5Type/ERP5Type.py
product/ERP5Type/ERP5Type.py
+1
-1
No files found.
product/ERP5/ERP5Site.py
View file @
fa758067
...
@@ -949,10 +949,18 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
...
@@ -949,10 +949,18 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
'getPortalConstraintTypeList'
)
'getPortalConstraintTypeList'
)
def
getPortalConstraintTypeList
(
self
):
def
getPortalConstraintTypeList
(
self
):
"""
"""
Return
rule
types.
Return
constraint
types.
"""
"""
return
self
.
_getPortalGroupedTypeList
(
'constraint'
)
return
self
.
_getPortalGroupedTypeList
(
'constraint'
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getPortalPropertyTypeList'
)
def
getPortalPropertyTypeList
(
self
):
"""
Return property types.
"""
return
self
.
_getPortalGroupedTypeList
(
'property'
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getPortalRuleTypeList'
)
'getPortalRuleTypeList'
)
def
getPortalRuleTypeList
(
self
):
def
getPortalRuleTypeList
(
self
):
...
...
product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Acquired%20Property.xml
View file @
fa758067
...
@@ -45,6 +45,14 @@
...
@@ -45,6 +45,14 @@
<key>
<string>
factory
</string>
</key>
<key>
<string>
factory
</string>
</key>
<value>
<string>
addAcquiredProperty
</string>
</value>
<value>
<string>
addAcquiredProperty
</string>
</value>
</item>
</item>
<item>
<key>
<string>
group_list
</string>
</key>
<value>
<tuple>
<string>
property
</string>
</tuple>
</value>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
Acquired Property
</string>
</value>
<value>
<string>
Acquired Property
</string>
</value>
...
@@ -69,6 +77,12 @@
...
@@ -69,6 +77,12 @@
<key>
<string>
type_class
</string>
</key>
<key>
<string>
type_class
</string>
</key>
<value>
<string>
AcquiredProperty
</string>
</value>
<value>
<string>
AcquiredProperty
</string>
</value>
</item>
</item>
<item>
<key>
<string>
type_interface
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<item>
<key>
<string>
type_mixin
</string>
</key>
<key>
<string>
type_mixin
</string>
</key>
<value>
<value>
...
...
product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Category%20Property.xml
View file @
fa758067
...
@@ -39,6 +39,14 @@
...
@@ -39,6 +39,14 @@
<key>
<string>
factory
</string>
</key>
<key>
<string>
factory
</string>
</key>
<value>
<string>
addCategoryProperty
</string>
</value>
<value>
<string>
addCategoryProperty
</string>
</value>
</item>
</item>
<item>
<key>
<string>
group_list
</string>
</key>
<value>
<tuple>
<string>
property
</string>
</tuple>
</value>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
Category Property
</string>
</value>
<value>
<string>
Category Property
</string>
</value>
...
@@ -63,6 +71,18 @@
...
@@ -63,6 +71,18 @@
<key>
<string>
type_class
</string>
</key>
<key>
<string>
type_class
</string>
</key>
<value>
<string>
CategoryProperty
</string>
</value>
<value>
<string>
CategoryProperty
</string>
</value>
</item>
</item>
<item>
<key>
<string>
type_interface
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
type_mixin
</string>
</key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
</record>
</record>
...
...
product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Dynamic%20Category%20Property.xml
View file @
fa758067
...
@@ -39,6 +39,14 @@
...
@@ -39,6 +39,14 @@
<key>
<string>
factory
</string>
</key>
<key>
<string>
factory
</string>
</key>
<value>
<string>
addDynamicCategoryProperty
</string>
</value>
<value>
<string>
addDynamicCategoryProperty
</string>
</value>
</item>
</item>
<item>
<key>
<string>
group_list
</string>
</key>
<value>
<tuple>
<string>
property
</string>
</tuple>
</value>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
Dynamic Category Property
</string>
</value>
<value>
<string>
Dynamic Category Property
</string>
</value>
...
@@ -63,6 +71,12 @@
...
@@ -63,6 +71,12 @@
<key>
<string>
type_class
</string>
</key>
<key>
<string>
type_class
</string>
</key>
<value>
<string>
DynamicCategoryProperty
</string>
</value>
<value>
<string>
DynamicCategoryProperty
</string>
</value>
</item>
</item>
<item>
<key>
<string>
type_interface
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<item>
<key>
<string>
type_mixin
</string>
</key>
<key>
<string>
type_mixin
</string>
</key>
<value>
<value>
...
...
product/ERP5/bootstrap/erp5_core/bt/revision
View file @
fa758067
41102
41103
\ No newline at end of file
\ No newline at end of file
product/ERP5Type/ERP5Type.py
View file @
fa758067
...
@@ -270,7 +270,7 @@ class ERP5TypeInformation(XMLObject,
...
@@ -270,7 +270,7 @@ class ERP5TypeInformation(XMLObject,
# with great care.
# with great care.
defined_group_list
=
(
defined_group_list
=
(
# Framework
# Framework
'alarm'
,
'rule'
,
'constraint'
,
'alarm'
,
'rule'
,
'constraint'
,
'property'
,
# ERP5 UBM (5 Classes)
# ERP5 UBM (5 Classes)
'resource'
,
'node'
,
'item'
,
'resource'
,
'node'
,
'item'
,
'path'
,
# movement is generated from all *_movement group above.
'path'
,
# movement is generated from all *_movement group above.
...
...
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