本文整理汇总了Python中pipeline.Pipeline.get_by_name方法的典型用法代码示例。如果您正苦于以下问题:Python Pipeline.get_by_name方法的具体用法?Python Pipeline.get_by_name怎么用?Python Pipeline.get_by_name使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pipeline.Pipeline
的用法示例。
在下文中一共展示了Pipeline.get_by_name方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: init
# 需要导入模块: from pipeline import Pipeline [as 别名]
# 或者: from pipeline.Pipeline import get_by_name [as 别名]
def init(my):
status_xml = my.sobject.get_value(my.name)
pipeline_type = my.get_option("pipeline")
pipeline = Pipeline.get_by_name(pipeline_type)
StatusAttr.__init__(my, status_xml, pipeline)
示例2: init
# 需要导入模块: from pipeline import Pipeline [as 别名]
# 或者: from pipeline.Pipeline import get_by_name [as 别名]
def init(self):
status_xml = self.sobject.get_value(self.name)
pipeline_type = self.get_option("pipeline")
pipeline = Pipeline.get_by_name(pipeline_type)
StatusAttr.__init__(self, status_xml, pipeline)
示例3: init
# 需要导入模块: from pipeline import Pipeline [as 别名]
# 或者: from pipeline.Pipeline import get_by_name [as 别名]
def init(my):
my.pipelines = []
pipeline_types = my.get_option("pipeline").split(",")
for pipeline_type in pipeline_types:
pipeline = Pipeline.get_by_name(pipeline_type)
if pipeline == None:
raise SetupException("Pipeline '%s' does not exist" % \
pipeline_type )
my.pipelines.append(pipeline)
my.level = 1