def fill_default_attributes(self, template_dictionary, subsection='project'):
     """
     Overwrite base controller to add required parameters for adapter templates.
     """
     template_dictionary[common.KEY_SECTION] = 'project'
     template_dictionary[common.KEY_SUB_SECTION] = subsection
     template_dictionary[common.KEY_INCLUDE_RESOURCES] = 'project/included_resources'
     BaseController.fill_default_attributes(self, template_dictionary)
     return template_dictionary
 def fill_default_attributes(self, template_dictionary):
     """
     Overwrite base controller to add required parameters for adapter templates.
     """
     template_dictionary[common.KEY_SECTION] = 'burst'
     template_dictionary[common.KEY_SUB_SECTION] = 'surfacemodel'
     template_dictionary[common.KEY_INCLUDE_RESOURCES] = 'spatial/included_resources'
     BaseController.fill_default_attributes(self, template_dictionary)
     return template_dictionary
 def fill_default_attributes(self, template_dictionary):
     """
     Overwrite base controller to add required parameters for adapter templates.
     """
     template_dictionary[common.KEY_SECTION] = 'connectivity'
     template_dictionary[common.KEY_SUB_SECTION] = 'local'
     template_dictionary[common.KEY_SUBMENU_LIST] = self.connectivity_submenu
     template_dictionary[common.KEY_INCLUDE_RESOURCES] = 'spatial/included_resources'
     BaseController.fill_default_attributes(self, template_dictionary)
     return template_dictionary
    def fill_default_attributes(self, template_dictionary, subsection='burst'):

        template_dictionary[common.KEY_PARAMETERS_CONFIG] = False
        template_dictionary[common.KEY_SECTION] = 'burst'
        template_dictionary[common.KEY_SUBMENU_LIST] = self.burst_submenu

        if common.KEY_SUB_SECTION not in template_dictionary:
            template_dictionary[common.KEY_SUB_SECTION] = subsection

        BaseController.fill_default_attributes(self, template_dictionary)
        return template_dictionary
 def fill_default_attributes(self, template_dictionary):
     """
     Fill into 'template_dictionary' data that we want to have ready in UI.
     """
     template_dictionary = self._populate_version(template_dictionary)
     BaseController.fill_default_attributes(self, template_dictionary)
     template_dictionary[common.KEY_INCLUDE_TOOLTIP] = True
     template_dictionary[common.KEY_WRAP_CONTENT_IN_MAIN_DIV] = False
     template_dictionary[common.KEY_CURRENT_TAB] = 'nav-user'
     template_dictionary[KEY_STORAGE_IN_UPDATE] = (TvbProfile.current.version.DATA_CHECKED_TO_VERSION <
                                                   TvbProfile.current.version.DATA_VERSION)
     return template_dictionary
 def fill_default_attributes(self,
                             template_dictionary,
                             subsection='stimulus'):
     """
     Overwrite base controller to add required parameters for adapter templates.
     """
     template_dictionary[common.KEY_SECTION] = 'stimulus'
     template_dictionary[common.KEY_SUB_SECTION] = subsection
     template_dictionary[common.KEY_SUBMENU_LIST] = self.submenu_list
     template_dictionary[
         common.KEY_INCLUDE_RESOURCES] = 'spatial/included_resources'
     BaseController.fill_default_attributes(self, template_dictionary)
     return template_dictionary
 def fill_default_attributes(self, template_dictionary):
     """
     Fill into 'template_dictionary' data that we want to have ready in UI.
     """
     template_dictionary = self._populate_version(template_dictionary)
     BaseController.fill_default_attributes(self, template_dictionary)
     template_dictionary[common.KEY_INCLUDE_TOOLTIP] = True
     template_dictionary[common.KEY_WRAP_CONTENT_IN_MAIN_DIV] = False
     template_dictionary[common.KEY_CURRENT_TAB] = 'nav-user'
     template_dictionary[KEY_STORAGE_IN_UPDATE] = (
         TvbProfile.current.version.DATA_CHECKED_TO_VERSION <
         TvbProfile.current.version.DATA_VERSION)
     return template_dictionary
    def fill_default_attributes(self, template_dictionary, title='-'):
        """
        Overwrite base controller to add required parameters for adapter templates.
        """
        if common.KEY_TITLE not in template_dictionary:
            template_dictionary[common.KEY_TITLE] = title

        if common.KEY_PARENT_DIV not in template_dictionary:
            template_dictionary[common.KEY_PARENT_DIV] = ''
        if common.KEY_PARAMETERS_CONFIG not in template_dictionary:
            template_dictionary[common.KEY_PARAMETERS_CONFIG] = False

        template_dictionary[common.KEY_INCLUDE_RESOURCES] = 'flow/included_resources'
        BaseController.fill_default_attributes(self, template_dictionary)
        return template_dictionary
示例#9
0
    def fill_default_attributes(self, template_dictionary, title='-'):
        """
        Overwrite base controller to add required parameters for adapter templates.
        """
        if common.KEY_TITLE not in template_dictionary:
            template_dictionary[common.KEY_TITLE] = title

        if common.KEY_PARENT_DIV not in template_dictionary:
            template_dictionary[common.KEY_PARENT_DIV] = ''
        if common.KEY_PARAMETERS_CONFIG not in template_dictionary:
            template_dictionary[common.KEY_PARAMETERS_CONFIG] = False

        template_dictionary[common.KEY_INCLUDE_RESOURCES] = 'flow/included_resources'
        BaseController.fill_default_attributes(self, template_dictionary)
        return template_dictionary