Commit fa758067 authored by Jérome Perrin's avatar Jérome Perrin

Define a portal type group for properties (from property sheets)

parent 2a1e09ff
......@@ -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):
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
41102
\ No newline at end of file
41103
\ No newline at end of file
......@@ -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.
......
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