Commit 4524d0c1 authored by Klaus Wölfel's avatar Klaus Wölfel

add data configuration portal type group for wendelin

parent eecbbb80
...@@ -201,11 +201,13 @@ portal_data_sink_type_list = ('Data Stream', ...@@ -201,11 +201,13 @@ portal_data_sink_type_list = ('Data Stream',
'Data Bucket Stream') 'Data Bucket Stream')
portal_device_type_list = ('Data Acquisition Unit', portal_device_type_list = ('Data Acquisition Unit',
'Data Aggregation Unit', 'Data Aggregation Unit'
'Sensor') 'Sensor')
portal_device_configuration_type_list = () portal_device_configuration_type_list = ()
portal_data_configuration_type_list = ()
# This transaction lines are special because destination must be None. # This transaction lines are special because destination must be None.
portal_balance_transaction_line_type_list = ('Balance Transaction Line',) portal_balance_transaction_line_type_list = ('Balance Transaction Line',)
......
...@@ -1580,6 +1580,15 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin): ...@@ -1580,6 +1580,15 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
return self._getPortalGroupedTypeList('device_configuration') or\ return self._getPortalGroupedTypeList('device_configuration') or\
self._getPortalConfiguration('portal_device_configuration_type_list') self._getPortalConfiguration('portal_device_configuration_type_list')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalDataConfigurationTypeList')
def getPortalDataConfigurationTypeList(self):
"""
Returns Data Configuration types.
"""
return self._getPortalGroupedTypeList('data_configuration') or\
self._getPortalConfiguration('portal_data_configuration_type_list')
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getDefaultModuleId') 'getDefaultModuleId')
def getDefaultModuleId(self, portal_type, default=MARKER, only_visible=False): def getDefaultModuleId(self, portal_type, default=MARKER, only_visible=False):
......
...@@ -309,6 +309,7 @@ class ERP5TypeInformation(XMLObject, ...@@ -309,6 +309,7 @@ class ERP5TypeInformation(XMLObject,
# Wendelin # Wendelin
'device', 'device',
'device_configuration', 'device_configuration',
'data_configuration',
'data_descriptor', 'data_descriptor',
'data_sink', 'data_sink',
# LEGACY - needs a warning - XXX-JPS # LEGACY - needs a warning - XXX-JPS
......
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