本文整理汇总了Python中buildbot.interfaces.IProperties类的典型用法代码示例。如果您正苦于以下问题:Python IProperties类的具体用法?Python IProperties怎么用?Python IProperties使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了IProperties类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setProperty
def setProperty(self, propname, value, source='Unknown', runtime=None):
# source is not optional in IProperties, but is optional here to avoid
# breaking user-supplied code that fails to specify a source
props = IProperties(self)
if runtime is None:
runtime = self.set_runtime_properties
props.setProperty(propname, value, source, runtime=runtime)
示例2: render
def render(self, value):
props = IProperties(self)
return props.render(value)
示例3: getProperty
def getProperty(self, propname, default=None):
props = IProperties(self)
return props.getProperty(propname, default)
示例4: hasProperty
def hasProperty(self, propname):
props = IProperties(self)
return props.hasProperty(propname)
示例5: setProperty
def setProperty(self, propname, value, source, runtime=None):
props = IProperties(self)
if runtime is None:
runtime = self.set_runtime_properties
props.setProperty(propname, value, source, runtime=runtime)