Exemplo n.º 1
0
 def indexed_query(cls):
     return super(Hierarchical, cls).indexed_query().options(
         orm.Load(cls).subqueryload("children"),
         orm.Load(cls).joinedload("parent"),
     )
Exemplo n.º 2
0
 def indexed_query(cls):
   return super(WithLastDeprecatedDate, cls).indexed_query().options(
       orm.Load(cls).load_only("last_deprecated_date"),
   )
Exemplo n.º 3
0
 def indexed_query(cls):
   return super(FinishedDate, cls).indexed_query().options(
       orm.Load(cls).load_only("finished_date"),
   )
Exemplo n.º 4
0
 def indexed_query(cls):
   return super(Described, cls).indexed_query().options(
       orm.Load(cls).load_only("description"),
   )
Exemplo n.º 5
0
 def indexed_query(cls):
   return super(WithStartDate, cls).indexed_query().options(
       orm.Load(cls).load_only("start_date"),
   )
Exemplo n.º 6
0
 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'),
     )
Exemplo n.º 7
0
 def indexed_query(cls):
   return super(Commentable, cls).indexed_query().options(
       orm.Load(cls).subqueryload("comments").load_only("id", "description")
   )
Exemplo n.º 8
0
 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')
   )
Exemplo n.º 9
0
 def indexed_query(cls):
     return super(Document, cls).indexed_query().options(
         orm.Load(cls).undefer_group("Document_complete", ), )
Exemplo n.º 10
0
 def indexed_query(cls):
     return super(Audit, cls).indexed_query().options(
         orm.Load(cls).undefer_group("Audit_complete", ), )
Exemplo n.º 11
0
    def indexed_query(cls):
        from sqlalchemy import orm

        return super(Person, cls).indexed_query().options(
            orm.Load(cls).undefer_group("Person_complete", ), )
Exemplo n.º 12
0
 def indexed_query(cls):
   return super(Issue, cls).indexed_query().options(
       orm.Load(cls).load_only("due_date"),
   )
Exemplo n.º 13
0
 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"),
     )
Exemplo n.º 14
0
 def indexed_query(cls):
     return super(Timeboxed, cls).indexed_query().options(
         orm.Load(cls).load_only("start_date", "end_date"), )
Exemplo n.º 15
0
 def indexed_query(cls):
     return super(AssertionCategorized, cls).indexed_query().options(
         orm.Load(cls).joinedload('categorized_assertions', ), )
Exemplo n.º 16
0
 def indexed_query(cls):
   return super(ContextRBAC, cls).indexed_query().options(
       orm.Load(cls).load_only("context_id"),
   )
Exemplo n.º 17
0
 def indexed_query(cls):
     return super(ControlCategorized, cls).indexed_query().options(
         orm.Load(cls).joinedload('categorizations', ), )
Exemplo n.º 18
0
 def indexed_query(cls):
   return super(CreationTimeTracked, cls).indexed_query().options(
       orm.Load(cls).load_only("created_at"),
   )
Exemplo n.º 19
0
 def indexed_query(cls):
     return super(Workflow, cls).indexed_query().options(
         orm.Load(cls).undefer_group("Workflow_complete", ), )
Exemplo n.º 20
0
 def indexed_query(cls):
     return super(Slugged, cls).indexed_query().options(
         orm.Load(cls).load_only("slug"), )
Exemplo n.º 21
0
 def _populate_query(cls, query):
     return query.options(
         orm.Load(cls).undefer_group("Assessment_complete", ),
         orm.Load(cls).joinedload("audit").undefer_group(
             "Audit_complete", ),
     )
Exemplo n.º 22
0
 def indexed_query(cls):
     return super(TestPlanned, cls).indexed_query().options(
         orm.Load(cls).load_only("test_plan"), )
Exemplo n.º 23
0
 def indexed_query(cls):
   return super(Noted, cls).indexed_query().options(
       orm.Load(cls).load_only("notes"),
   )
Exemplo n.º 24
0
 def indexed_query(cls):
     return super(Titled, cls).indexed_query().options(
         orm.Load(cls).load_only("title"), )
Exemplo n.º 25
0
 def indexed_query(cls):
   return super(WithEndDate, cls).indexed_query().options(
       orm.Load(cls).load_only("end_date"),
   )
Exemplo n.º 26
0
 def indexed_query(cls):
     return super(Folderable, cls).indexed_query().options(
         orm.Load(cls).load_only("folder"), )
Exemplo n.º 27
0
 def indexed_query(cls):
   return super(Stateful, cls).indexed_query().options(
       orm.Load(cls).load_only("status"),
   )
Exemplo n.º 28
0
 def indexed_query(cls):
     return super(DecoratedClass, cls).indexed_query().options(
         orm.Load(cls).joinedload(relation_name).load_only(
             "name", "email", "id"), )
Exemplo n.º 29
0
 def indexed_query(cls):
   return super(VerifiedDate, cls).indexed_query().options(
       orm.Load(cls).load_only("verified_date"),
   )
Exemplo n.º 30
0
 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"),
     )