Commit 640d90a7 authored by Vincent Pelletier's avatar Vincent Pelletier

New portal type group: "domain".

Can be used to identify whether a document should be used to match other
documents, rather than as a final document itself.
parent 4e6fc667
......@@ -1248,6 +1248,14 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
self._getPortalConfiguration(
'portal_balance_transaction_line_type_list')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalDomainTypeList')
def getPortalDomainTypeList(self):
"""
Return domain types.
"""
return self._getPortalGroupedTypeList('domain')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalCurrentInventoryStateList')
def getPortalCurrentInventoryStateList(self):
......
......@@ -33,7 +33,9 @@
<item>
<key> <string>group_list</string> </key>
<value>
<tuple/>
<tuple>
<string>domain</string>
</tuple>
</value>
</item>
<item>
......
......@@ -45,6 +45,14 @@
<key> <string>filter_content_types</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>group_list</string> </key>
<value>
<tuple>
<string>domain</string>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Domain</string> </value>
......
......@@ -309,6 +309,8 @@ class ERP5TypeInformation(XMLObject,
'personal_item',
# Base
'entity', 'login',
# Core
'domain',
# Wendelin
'device',
'device_configuration',
......
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