def _open_cycle_task_panel(self, cycle_task): """Opens Cycle task panel.""" cycle_task_row = self._expand_to_cycle_task(cycle_task) cycle_task_row.select() cycle_task_panel = internal_ui_operations.info_widget_page(cycle_task) cycle_task_panel.wait_to_be_init() return cycle_task_panel
def archive_workflow(workflow): """Archives workflow.""" ui_facade.open_obj(workflow) info_widget = internal_ui_operations.info_widget_page(workflow) info_widget.archive() workflow.is_archived = True workflow.recurrences_started = False workflow.modified_by = users.current_person()
def delete_obj(obj): """Deletes object.""" open_obj(obj) internal_ui_operations.info_widget_page(obj).delete_obj()
def edit_obj(obj, **changes): """Updates object.""" open_obj(obj) internal_ui_operations.info_widget_page(obj).edit_obj(**changes) obj.modified_by = users.current_person()
def delete_obj(obj): """Deletes object.""" open_obj(obj) internal_ui_operations.info_widget_page(obj).delete_obj()
def edit_obj(obj, **changes): """Updates object.""" open_obj(obj) internal_ui_operations.info_widget_page(obj).edit_obj(**changes) obj.modified_by = users.current_person()