def indexed_query(cls): return super(Hierarchical, cls).indexed_query().options( orm.Load(cls).subqueryload("children"), orm.Load(cls).joinedload("parent"), )
def indexed_query(cls): return super(WithLastDeprecatedDate, cls).indexed_query().options( orm.Load(cls).load_only("last_deprecated_date"), )
def indexed_query(cls): return super(FinishedDate, cls).indexed_query().options( orm.Load(cls).load_only("finished_date"), )
def indexed_query(cls): return super(Described, cls).indexed_query().options( orm.Load(cls).load_only("description"), )
def indexed_query(cls): return super(WithStartDate, cls).indexed_query().options( orm.Load(cls).load_only("start_date"), )
def indexed_query(cls): return super(Evidence, cls).indexed_query().options( orm.Load(cls).undefer_group("Evidence_complete", ), orm.Load(cls).subqueryload('related_sources'), orm.Load(cls).subqueryload('related_destinations'), )
def indexed_query(cls): return super(Commentable, cls).indexed_query().options( orm.Load(cls).subqueryload("comments").load_only("id", "description") )
def eager_query(cls): query = super(TaskGroup, cls).eager_query() return query.options( orm.Load(cls).subqueryload('task_group_objects'), orm.Load(cls).subqueryload('task_group_tasks') )
def indexed_query(cls): return super(Document, cls).indexed_query().options( orm.Load(cls).undefer_group("Document_complete", ), )
def indexed_query(cls): return super(Audit, cls).indexed_query().options( orm.Load(cls).undefer_group("Audit_complete", ), )
def indexed_query(cls): from sqlalchemy import orm return super(Person, cls).indexed_query().options( orm.Load(cls).undefer_group("Person_complete", ), )
def indexed_query(cls): return super(Issue, cls).indexed_query().options( orm.Load(cls).load_only("due_date"), )
def indexed_query(cls): return super(ChangeTracked, cls).indexed_query().options( orm.Load(cls).load_only("created_at", "updated_at"), orm.Load(cls).joinedload("modified_by").load_only( "name", "email", "id"), )
def indexed_query(cls): return super(Timeboxed, cls).indexed_query().options( orm.Load(cls).load_only("start_date", "end_date"), )
def indexed_query(cls): return super(AssertionCategorized, cls).indexed_query().options( orm.Load(cls).joinedload('categorized_assertions', ), )
def indexed_query(cls): return super(ContextRBAC, cls).indexed_query().options( orm.Load(cls).load_only("context_id"), )
def indexed_query(cls): return super(ControlCategorized, cls).indexed_query().options( orm.Load(cls).joinedload('categorizations', ), )
def indexed_query(cls): return super(CreationTimeTracked, cls).indexed_query().options( orm.Load(cls).load_only("created_at"), )
def indexed_query(cls): return super(Workflow, cls).indexed_query().options( orm.Load(cls).undefer_group("Workflow_complete", ), )
def indexed_query(cls): return super(Slugged, cls).indexed_query().options( orm.Load(cls).load_only("slug"), )
def _populate_query(cls, query): return query.options( orm.Load(cls).undefer_group("Assessment_complete", ), orm.Load(cls).joinedload("audit").undefer_group( "Audit_complete", ), )
def indexed_query(cls): return super(TestPlanned, cls).indexed_query().options( orm.Load(cls).load_only("test_plan"), )
def indexed_query(cls): return super(Noted, cls).indexed_query().options( orm.Load(cls).load_only("notes"), )
def indexed_query(cls): return super(Titled, cls).indexed_query().options( orm.Load(cls).load_only("title"), )
def indexed_query(cls): return super(WithEndDate, cls).indexed_query().options( orm.Load(cls).load_only("end_date"), )
def indexed_query(cls): return super(Folderable, cls).indexed_query().options( orm.Load(cls).load_only("folder"), )
def indexed_query(cls): return super(Stateful, cls).indexed_query().options( orm.Load(cls).load_only("status"), )
def indexed_query(cls): return super(DecoratedClass, cls).indexed_query().options( orm.Load(cls).joinedload(relation_name).load_only( "name", "email", "id"), )
def indexed_query(cls): return super(VerifiedDate, cls).indexed_query().options( orm.Load(cls).load_only("verified_date"), )
def indexed_query(cls): return super(Control, cls).indexed_query().options( orm.Load(cls).undefer_group("Control_complete"), orm.Load(cls).joinedload("directive").undefer_group( "Directive_complete"), )