def __init__(self, messageObject): super(SystemMessageMeta, self).__init__() self.__messageObject = messageObject auxData = self.__messageObject.get("auxData") if len(auxData) > 0 and auxData[0] == self.AOGAS: self.__title = i18n.makeString(AOGAS.NOTIFICATION_TITLE) self.__cancelLabel = i18n.makeString(AOGAS.NOTIFICATION_CLOSE) else: self.__title = i18n.makeString(MESSENGER.SERVICECHANNELMESSAGES_PRIORITYMESSAGETITLE) self.__cancelLabel = i18n.makeString(MESSENGER.SERVICECHANNELMESSAGES_BUTTONS_CLOSE)
def __init__(self, messageObject): super(SystemMessageMeta, self).__init__() self.__messageObject = messageObject auxData = self.__messageObject.get('auxData') if len(auxData) > 0 and auxData[0] == self.AOGAS: self.__title = i18n.makeString(AOGAS.NOTIFICATION_TITLE) self.__cancelLabel = i18n.makeString(AOGAS.NOTIFICATION_CLOSE) else: self.__title = i18n.makeString( MESSENGER.SERVICECHANNELMESSAGES_PRIORITYMESSAGETITLE) self.__cancelLabel = i18n.makeString( MESSENGER.SERVICECHANNELMESSAGES_BUTTONS_CLOSE)
def __init__(self, notification): super(SystemMessageMeta, self).__init__() self.__notificationVO = notification.getListVO() settings = notification.getSettings() auxData = settings.auxData if len(auxData) > 1 and auxData[0] == self.AOGAS: self.__settingsVO = {'timeout': auxData[1]} self.__title = i18n.makeString(AOGAS.NOTIFICATION_TITLE) self.__cancelLabel = i18n.makeString(AOGAS.NOTIFICATION_CLOSE) else: self.__settingsVO = {} self.__title = i18n.makeString(MESSENGER.SERVICECHANNELMESSAGES_PRIORITYMESSAGETITLE) self.__cancelLabel = i18n.makeString(MESSENGER.SERVICECHANNELMESSAGES_BUTTONS_CLOSE)
def __init__(self, notification): super(SystemMessageMeta, self).__init__() self.__notificationVO = notification.getListVO() settings = notification.getSettings() auxData = settings.auxData self.__settingsVO = {} if isinstance(auxData, SessionControlAuxData): sessionControlType = auxData.type self.__settingsVO['timeout'] = auxData.timeoutMS else: sessionControlType = None if sessionControlType == SESSION_CONTROL_TYPE.AOGAS: self.__title = i18n.makeString(AOGAS.NOTIFICATION_TITLE) self.__cancelLabel = i18n.makeString(AOGAS.NOTIFICATION_CLOSE) else: self.__title = i18n.makeString(MESSENGER.SERVICECHANNELMESSAGES_PRIORITYMESSAGETITLE) self.__cancelLabel = i18n.makeString(MESSENGER.SERVICECHANNELMESSAGES_BUTTONS_CLOSE) return
def __packProviderItem(key): return {'label': i18n.makeString(key), 'key': key}
def measureUnitsForParameter(paramName): return i18n.makeString(MEASURE_UNITS[paramName])
def __packProviderItem(self, key): return {'label': i18n.makeString(key), 'key': key}
def getCancelButtonLabel(self): return i18n.makeString(self.__cancelLabel)
def getSubmitButtonLabel(self): return i18n.makeString(self.__submitLabel)
def getTitle(self): return i18n.makeString(self.__title)