Commit 95864783 authored by Klaus Wölfel's avatar Klaus Wölfel Committed by Ivan Tyagov

Add data_sink type group

parent 09b48b11
...@@ -197,6 +197,9 @@ portal_business_link_type_list = ('Business Link',) ...@@ -197,6 +197,9 @@ portal_business_link_type_list = ('Business Link',)
portal_data_descriptor_type_list = () portal_data_descriptor_type_list = ()
portal_data_sink_type_list = ('Data 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')
......
...@@ -1545,6 +1545,15 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin): ...@@ -1545,6 +1545,15 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
return self._getPortalGroupedTypeList('data_descriptor') or\ return self._getPortalGroupedTypeList('data_descriptor') or\
self._getPortalConfiguration('portal_data_descriptor_type_list') self._getPortalConfiguration('portal_data_descriptor_type_list')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalDataSinkTypeList')
def getPortalDataSinkTypeList(self):
"""
Returns Data Sink types.
"""
return self._getPortalGroupedTypeList('data_sink') or\
self._getPortalConfiguration('portal_data_sink_type_list')
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getPortalDeviceTypeList') 'getPortalDeviceTypeList')
def getPortalDeviceTypeList(self): def getPortalDeviceTypeList(self):
......
...@@ -310,6 +310,7 @@ class ERP5TypeInformation(XMLObject, ...@@ -310,6 +310,7 @@ class ERP5TypeInformation(XMLObject,
'device', 'device',
'device_configuration', 'device_configuration',
'data_descriptor', 'data_descriptor',
'data_sink',
# LEGACY - needs a warning - XXX-JPS # LEGACY - needs a warning - XXX-JPS
'tax_movement', 'tax_movement',
) )
......
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