'Render the main workflow editor interface. The canvas is embedded as
an iframe (necessary for scrolling to work properly), which is
rendered by `editor_canvas`.'

@web.expose
@web.require_login('edit    workflows')
def editor(self, trans, id=None):

    if (not id):
        error('Invalid    workflow    id')
    stored = self.get_stored_workflow(trans, id)
    workflows = trans.sa_session.query(model.StoredWorkflow).filter_by(user=trans.user, deleted=False).order_by(desc(model.StoredWorkflow.table.c.update_time)).all()
    return trans.fill_template('workflow/editor.mako', workflows=workflows, stored=stored, annotation=self.get_item_annotation_str(trans.sa_session, trans.user, stored))
