Commit 1c899c73 authored by Klaus Wölfel's avatar Klaus Wölfel Committed by Xiaowu Zhang

Add type groups for wendelin

parent de800065
......@@ -195,6 +195,14 @@ portal_supply_path_type_list = ('Supply Line','Supply Cell')
portal_business_process_type_list = ('Business Process',)
portal_business_link_type_list = ('Business Link',)
portal_data_descriptor_type_list = ()
portal_device_type_list = ('Data Acquisition Unit',
'Data Aggregation Unit'
'Sensor')
portal_device_configuration_type_list = ()
# This transaction lines are special because destination must be None.
portal_balance_transaction_line_type_list = ('Balance Transaction Line',)
......
......@@ -1544,6 +1544,33 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
"""
return self._getPortalGroupedTypeList('login')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalDataDescriptorTypeList')
def getPortalDataDescriptorTypeList(self):
"""
Returns Data Descriptor types.
"""
return self._getPortalGroupedTypeList('data_descriptor') or\
self._getPortalConfiguration('portal_data_descriptor_type_list')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalDeviceTypeList')
def getPortalDeviceTypeList(self):
"""
Returns Device types.
"""
return self._getPortalGroupedTypeList('device') or\
self._getPortalConfiguration('portal_device_type_list')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalDeviceConfigurationTypeList')
def getPortalDeviceConfigurationTypeList(self):
"""
Returns Device Configuration types.
"""
return self._getPortalGroupedTypeList('device_configuration') or\
self._getPortalConfiguration('portal_device_configuation_type_list')
security.declareProtected(Permissions.AccessContentsInformation,
'getDefaultModuleId')
def getDefaultModuleId(self, portal_type, default=MARKER, only_visible=False):
......
......@@ -306,6 +306,10 @@ class ERP5TypeInformation(XMLObject,
'personal_item',
# Base
'entity', 'login',
# Wendelin
'device',
'device_configuration',
'data_descriptor',
# 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