Commit 018db171 authored by Klaus Wölfel's avatar Klaus Wölfel Committed by Tatuya Kamada

Add data_sink type group

parent 24a5d995
......@@ -197,6 +197,9 @@ portal_business_link_type_list = ('Business Link',)
portal_data_descriptor_type_list = ()
portal_data_sink_type_list = ('Data Stream',
'Data Bucket Stream')
portal_device_type_list = ('Data Acquisition Unit',
'Data Aggregation Unit'
'Sensor')
......
......@@ -1553,6 +1553,15 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
return self._getPortalGroupedTypeList('data_descriptor') or\
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,
'getPortalDeviceTypeList')
def getPortalDeviceTypeList(self):
......
......@@ -310,6 +310,7 @@ class ERP5TypeInformation(XMLObject,
'device',
'device_configuration',
'data_descriptor',
'data_sink',
# LEGACY - needs a warning - XXX-JPS
'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