autowisp.browser_interface.configuration.views module
Class Inheritance Diagram

The views to display and edit pipeline configuration.
- autowisp.browser_interface.configuration.views._merge_children(old_children, new_children, parent_type=None)[source]
Merge lists of child nodes by (name,type); keep order, append new.
- autowisp.browser_interface.configuration.views.add_survey_items_to_context(context, selected, db_session)[source]
Add the current survey configuration to the given context.
- autowisp.browser_interface.configuration.views.change_access(request, new_access, selected_component, selected_id, target_component, target_id)[source]
Change an observer’s access to something.
- autowisp.browser_interface.configuration.views.config_tree(request, version=0, step='All', force_unlock=False)[source]
Landing page for the configuration interface.
- autowisp.browser_interface.configuration.views.deep_merge_config(existing, new)[source]
Recursively merge config trees; new overrides only where provided.
- autowisp.browser_interface.configuration.views.delete_from_survey(request, component_type, component_id=None, component_type_id=None)[source]
Deleta a component of the survey network.
- autowisp.browser_interface.configuration.views.edit_survey(request, *, selected_component=None, selected_id=None, selected_type_id=None, create_new_types='')[source]
Add/delete instruments/observers to the currently configured survey.
- Parameters:
request – See django.
selected_component (str) – What type of survey component is currently selected. One of
'observer','observatory','camera','mount','telescope'selected_id (str) – The ID of the selected component within the corresponding database table (should be convertable to int).
create_new_types ([str]) – Which of the equipment types (camera,
telesceope
for. (mount) do we want to create a new type)
- autowisp.browser_interface.configuration.views.export_survey_info(_)[source]
Save (some of) the survey equipment to a JSON file.
- autowisp.browser_interface.configuration.views.format_channel_attr(camera_type)[source]
Format the channel information for camera type for render context.
- autowisp.browser_interface.configuration.views.import_survey_info(request)[source]
Add survey equipment from JSON file.
- autowisp.browser_interface.configuration.views.save_config(request, version)[source]
Save a user-defined configuration to the database.