示例#1
0
 def get_all(cls, context):
     return OperationList(sql.model_query(context, Operation))
示例#2
0
 def get_all(cls, context):
     return ExtensionList(sql.model_query(context, Extension))
示例#3
0
文件: sensor.py 项目: julienvey/solum
 def get_all(cls, context):
     return SensorList(sql.model_query(context, Sensor))
示例#4
0
 def get_all(cls, context):
     return PipelineList(sql.model_query(context, Pipeline))
示例#5
0
 def get_all_languagepacks(cls, context):
     """Return all images that are languagepacks."""
     return ImageList(
         sql.model_query(context,
                         Image).filter_by(artifact_type='language_pack'))
示例#6
0
 def get_all(cls, context):
     return PlanList(sql.model_query(context, Plan))
示例#7
0
 def get_all(cls, context):
     return UserlogList(sql.model_query(context, Userlog))
示例#8
0
 def get_all(cls, context, app_id=None):
     wfs = sql.model_query(context, Workflow)
     if app_id is not None:
         wfs = wfs.filter_by(app_id=app_id)
     return WorkflowList(wfs)
示例#9
0
 def get_all(cls, context):
     list_obj = ApplicationList()
     list_obj.objects = list(sql.model_query(context, Application))
     return list_obj
示例#10
0
 def get_all(cls, context):
     return InfrastructureStackList(sql.model_query(context,
                                                    InfrastructureStack))
示例#11
0
 def get_all(cls, context):
     list_obj = ApplicationList()
     list_obj.objects = list(sql.model_query(context, Application))
     return list_obj
示例#12
0
 def get_all(cls, context):
     return LanguagePackList(sql.model_query(context, LanguagePack))
示例#13
0
 def get_all(cls, context):
     return LanguagePackList(sql.model_query(context, LanguagePack))
示例#14
0
文件: operation.py 项目: alex/solum
 def get_all(cls, context):
     return OperationList(sql.model_query(context, Operation))
示例#15
0
 def get_all(cls, context):
     return InfrastructureStackList(
         sql.model_query(context, InfrastructureStack))
示例#16
0
文件: image.py 项目: dp1310/solum
 def get_all_languagepacks(cls, context):
     """Return all images that are languagepacks."""
     return ImageList(sql.model_query(
         context, Image).filter_by(artifact_type='language_pack'))
示例#17
0
 def get_all(cls, context):
     return AssemblyList(sql.model_query(context, Assembly))
示例#18
0
 def get_all(cls, context):
     """Return all images."""
     return ImageList(sql.model_query(context, Image))
示例#19
0
文件: image.py 项目: paulczar/solum
 def get_all(cls, context):
     return ImageList(sql.model_query(context, Image))
示例#20
0
文件: plan.py 项目: mnegi/solum
 def get_all(cls, context):
     return PlanList(sql.model_query(context, Plan))
示例#21
0
文件: app.py 项目: aneeshep/solum
 def get_all(cls, context):
     return AppList(sql.model_query(context, App))
示例#22
0
文件: service.py 项目: alex/solum
 def get_all(cls, context):
     return ServiceList(sql.model_query(context, Service))
示例#23
0
 def get_all(cls, context):
     return AssemblyList(sql.model_query(context, Assembly))
示例#24
0
 def get_all(cls, context):
     return AppList(sql.model_query(context, App))
示例#25
0
 def get_all(cls, context):
     return ComponentList(sql.model_query(context, Component))
示例#26
0
 def get_all(cls, context):
     return ComponentList(sql.model_query(context, Component))
示例#27
0
 def get_all(cls, context):
     mq = sql.model_query(context, Assembly).order_by(
         'updated_at desc', 'created_at desc')
     return AssemblyList(mq)
示例#28
0
 def get_all(cls, context):
     return UserlogList(sql.model_query(context, Userlog))
示例#29
0
文件: image.py 项目: dp1310/solum
 def get_all(cls, context):
     """Return all images."""
     return ImageList(sql.model_query(context, Image))
示例#30
0
 def get_all(cls, context):
     return ServiceList(sql.model_query(context, Service))
示例#31
0
 def get_all(cls, context):
     return ParameterList(sql.model_query(context, Parameter))