project
Package¶
figure_controller
¶
Controller class for managing Figures saved in TVB.
- class tvb.interfaces.web.controllers.project.figure_controller.EditPreview(*args, **kw)[source]¶
Bases:
Schema
Validate edit action on Stored Preview
Messages
badDictType
:The input must be dict-like (not a
%(type)s
:%(value)r
)badType
:The input must be a string (not a
%(type)s
:%(value)r
)empty
:Please enter a value
missingValue
:Missing value
noneType
:The input must be a string (not None)
notExpected
:The input field
%(name)s
was not expected.singleValueExpected
:Please provide only one value
- chained_validators = []¶
- declarative_count = 82¶
- fields = {'name': <All [<UnicodeString object 78 inputEncoding='utf-8' not_empty=True outputEncoding='utf-8'>]>, 'session_name': <All [<UnicodeString object 80 inputEncoding='utf-8' not_empty=True outputEncoding='utf-8'>]>}¶
- pre_validators = []¶
- class tvb.interfaces.web.controllers.project.figure_controller.FigureController[source]¶
Bases:
ProjectController
Resulting Figures are user-saved figures with specific visualizers or TVB pages which are considered important.
- displayresultfigures(selected_session='all_sessions')[source]¶
Collect and display saved previews, grouped by session.
- displayzoomedimage(figure_id)[source]¶
Displays the image with the specified id in an overlay dialog.
project_controller
¶
This file will handle Projects related part. This represents the Controller part (from MVC).
- class tvb.interfaces.web.controllers.project.project_controller.EditForm(*args, **kw)[source]¶
Bases:
Schema
Validate creation of a Project entity.
Messages
badDictType
:The input must be dict-like (not a
%(type)s
:%(value)r
)badType
:The input must be a string (not a
%(type)s
:%(value)r
)empty
:Please enter a value
missingValue
:Missing value
noneType
:The input must be a string (not None)
notExpected
:The input field
%(name)s
was not expected.singleValueExpected
:Please provide only one value
- chained_validators = []¶
- declarative_count = 77¶
- fields = {'administrator': <UnicodeString object 72 inputEncoding='utf-8' not_empty=False outputEncoding='utf-8'>, 'description': <UnicodeString object 69 inputEncoding='utf-8' outputEncoding='utf-8'>, 'disable_imports': <Bool object 76>, 'max_operation_size': <Int object 75 min=0 not_empty=False>, 'name': <All [<UnicodeString object 66 inputEncoding='utf-8' not_empty=True outputEncoding='utf-8'>, <PlainText object 67 regex=re.compile('^[a-zA-Z_\\-0-9]*$')>]>, 'project_id': <UnicodeString object 73 inputEncoding='utf-8' not_empty=False outputEncoding='utf-8'>, 'users': <ForEach object 71 validators=[<Int object 70>]>, 'visited_pages': <UnicodeString object 74 inputEncoding='utf-8' not_empty=False outputEncoding='utf-8'>}¶
- invalis_name_msg = 'Please enter a name composed only of letters, numbers and underscores.'¶
- pre_validators = []¶
- class tvb.interfaces.web.controllers.project.project_controller.ProjectController[source]¶
Bases:
BaseController
Displays pages which deals with Project data management.
- KEY_OPERATION_FILTERS = 'operationfilters'¶
- NODE_OPERATION_GROUP_TYPE = 'operationGroup'¶
- NODE_OPERATION_TYPE = 'operation'¶
- PRROJECTS_FOR_LINK_KEY = 'projectsforlink'¶
- PRROJECTS_LINKED_KEY = 'projectslinked'¶
- createlink(link_data, project_id)[source]¶
Delegate the creation of the actual link to the algorithm service.
- downloaddatatype(data_gid, export_module, **data)[source]¶
Export the data to a default path of TVB_STORAGE/PROJECTS/project_name
- editone(project_id=None, cancel=False, save=False, delete=False, leave=False, **data)[source]¶
Create or change Project. When project_id is empty we create a new entity, otherwise we are to edit and existent one.
- editstructure(project_id=None, first_level=None, second_level=None, filter_input='', visibility_filter=None, **_ignored)[source]¶
Return the page skeleton for displaying the project structure.
- fill_default_attributes(template_dictionary, subsection='project')[source]¶
Overwrite base controller to add required parameters for adapter templates.
- generate_call_out_control()[source]¶
Returns the content of a confirmation dialog, with a given question.
- get_data_uploader_overlay(project_id)[source]¶
Returns the html which displays a dialog which allows the user to upload certain data into the application.
- get_datatype_details(entity_gid, back_page='null', exclude_tabs=None)[source]¶
Returns the HTML which contains the details for the given dataType. :param back_page: if different from ‘null’ (the default) it will redirect to it after saving metedata changes
- get_linkable_projects(datatype_id, is_group, entity_gid)[source]¶
Returns the HTML which displays the link-able projects for the given dataType
- get_operation_details(entity_gid, is_group=False, back_page='burst')[source]¶
Returns the HTML which contains the details for the given operation.
- get_project_uploader_overlay()[source]¶
Returns the html which displays a dialog which allows the user to upload an entire project.
- noderemove(project_id, node_gid)[source]¶
AJAX exposed method, to execute operation of data removal.
- readjsonstructure(project_id, visibility_filter='Full view', first_level=None, second_level=None, filter_value=None)[source]¶
AJAX exposed method. Will return the complete JSON for Project’s structure, or filtered tree (filter only Relevant entities or Burst only Data).
- removelink(link_data, project_id, is_group)[source]¶
Delegate the creation of the actual link to the flow service.
- set_visibility(entity_type, entity_gid, to_de_relevant)[source]¶
Method used for setting the relevancy/visibility on a DataType(Group)/Operation(Group.
- show_confirmation_overlay(**data)[source]¶
Returns the content of a confirmation dialog, with a given question.