Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
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
Hide 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):
'getPortalConstraintTypeList'
)
def
getPortalConstraintTypeList
(
self
):
"""
Return
rule
types.
Return
constraint
types.
"""
return
self
.
_getPortalGroupedTypeList
(
'constraint'
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getPortalPropertyTypeList'
)
def
getPortalPropertyTypeList
(
self
):
"""
Return property types.
"""
return
self
.
_getPortalGroupedTypeList
(
'property'
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getPortalRuleTypeList'
)
def
getPortalRuleTypeList
(
self
):
...
...
product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Acquired%20Property.xml
View file @
fa758067
...
...
@@ -45,6 +45,14 @@
<key>
<string>
factory
</string>
</key>
<value>
<string>
addAcquiredProperty
</string>
</value>
</item>
<item>
<key>
<string>
group_list
</string>
</key>
<value>
<tuple>
<string>
property
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Acquired Property
</string>
</value>
...
...
@@ -69,6 +77,12 @@
<key>
<string>
type_class
</string>
</key>
<value>
<string>
AcquiredProperty
</string>
</value>
</item>
<item>
<key>
<string>
type_interface
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
type_mixin
</string>
</key>
<value>
...
...
product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Category%20Property.xml
View file @
fa758067
...
...
@@ -39,6 +39,14 @@
<key>
<string>
factory
</string>
</key>
<value>
<string>
addCategoryProperty
</string>
</value>
</item>
<item>
<key>
<string>
group_list
</string>
</key>
<value>
<tuple>
<string>
property
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Category Property
</string>
</value>
...
...
@@ -63,6 +71,18 @@
<key>
<string>
type_class
</string>
</key>
<value>
<string>
CategoryProperty
</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>
...
...
product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Dynamic%20Category%20Property.xml
View file @
fa758067
...
...
@@ -39,6 +39,14 @@
<key>
<string>
factory
</string>
</key>
<value>
<string>
addDynamicCategoryProperty
</string>
</value>
</item>
<item>
<key>
<string>
group_list
</string>
</key>
<value>
<tuple>
<string>
property
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Dynamic Category Property
</string>
</value>
...
...
@@ -63,6 +71,12 @@
<key>
<string>
type_class
</string>
</key>
<value>
<string>
DynamicCategoryProperty
</string>
</value>
</item>
<item>
<key>
<string>
type_interface
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
type_mixin
</string>
</key>
<value>
...
...
product/ERP5/bootstrap/erp5_core/bt/revision
View file @
fa758067
41102
\ No newline at end of file
41103
\ No newline at end of file
product/ERP5Type/ERP5Type.py
View file @
fa758067
...
...
@@ -270,7 +270,7 @@ class ERP5TypeInformation(XMLObject,
# with great care.
defined_group_list
=
(
# Framework
'alarm'
,
'rule'
,
'constraint'
,
'alarm'
,
'rule'
,
'constraint'
,
'property'
,
# ERP5 UBM (5 Classes)
'resource'
,
'node'
,
'item'
,
'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