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