def fill_default_attributes(self, template_dictionary): """ Overwrite base controller to add required parameters for adapter templates. """ template_dictionary['loadExistentEntityUrl'] = LOAD_EXISTING_URL template_dictionary['resetToDefaultUrl'] = RELOAD_DEFAULT_PAGE_URL msg, msg_type = common.get_message_from_session() template_dictionary['displayedMessage'] = msg template_dictionary['messageType'] = msg_type return SpatioTemporalController.fill_default_attributes(self, template_dictionary, subsection='regionstim')
def fill_default_attributes(self, template_dictionary): """ Overwrite base controller to add required parameters for adapter templates. """ context = common.get_from_session(KEY_REGION_CONTEXT) default = context.equation_kwargs.get(DataTypeMetaData.KEY_TAG_1, '') template_dictionary["entitiySavedName"] = [{'name': DataTypeMetaData.KEY_TAG_1, "disabled": "False", 'label': 'Display name', 'type': 'str', "default": default}] template_dictionary['loadExistentEntityUrl'] = LOAD_EXISTING_URL template_dictionary['resetToDefaultUrl'] = RELOAD_DEFAULT_PAGE_URL msg, msg_type = common.get_message_from_session() template_dictionary['displayedMessage'] = msg template_dictionary['messageType'] = msg_type return SpatioTemporalController.fill_default_attributes(self, template_dictionary, subsection='regionstim')
def fill_default_attributes(self, template_dictionary): """ Overwrite base controller to add required parameters for adapter templates. """ context = common.get_from_session(KEY_REGION_CONTEXT) default = context.equation_kwargs.get(DataTypeMetaData.KEY_TAG_1, '') template_dictionary["entitiySavedName"] = [{ 'name': DataTypeMetaData.KEY_TAG_1, "disabled": "False", 'label': 'Display name', 'type': 'str', "default": default }] template_dictionary['loadExistentEntityUrl'] = LOAD_EXISTING_URL template_dictionary['resetToDefaultUrl'] = RELOAD_DEFAULT_PAGE_URL msg, msg_type = common.get_message_from_session() template_dictionary['displayedMessage'] = msg template_dictionary['messageType'] = msg_type return SpatioTemporalController.fill_default_attributes( self, template_dictionary, subsection='regionstim')