本文整理汇总了Python中pyre.components.Component.Component._configure方法的典型用法代码示例。如果您正苦于以下问题:Python Component._configure方法的具体用法?Python Component._configure怎么用?Python Component._configure使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyre.components.Component.Component
的用法示例。
在下文中一共展示了Component._configure方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _configure
# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
def _configure(self):
Component._configure(self)
self.logfile = self.inventory.logfile
errlogfile = self.inventory.errlogfile
if errlogfile == '': errlogfile = self.logfile
self.errlogfile = errlogfile
return
示例2: _configure
# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
def _configure(self):
Component._configure(self)
self.host = self.inventory.host
self.port = self.inventory.port
return
示例3: _configure
# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
def _configure(self):
"""
Setup members using inventory.
"""
Component._configure(self)
pylith.perf.Material.Material.__init__(self, self.inventory.label, self.inventory.size)
return
示例4: _configure
# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
def _configure(self):
"""
Set members from inventory.
"""
Component._configure(self)
self.csDest = self.inventory.csDest
self.csSrc = self.inventory.csSrc
return
示例5: _configure
# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
def _configure(self):
"""
Set attributes based on inventory.
"""
Component._configure(self)
ModuleTimeHistory.label(self, self.inventory.label)
ModuleTimeHistory.filename(self, self.inventory.filename)
return
示例6: _configure
# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
def _configure(self):
"""
Setup members using inventory.
"""
Component._configure(self)
self.name = self.inventory.name
self.units = self.inventory.units
self.shapers = self.inventory.shapers
return
示例7: _configure
# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
def _configure(self):
"""
Setup members using inventory.
"""
Component._configure(self)
self.dataDim = self.inventory.dataDim
self.reader = self.inventory.reader
self.coordsys = self.inventory.coordsys
return
示例8: _configure
# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
def _configure(self):
"""
Setup members using inventory.
"""
Component._configure(self)
self.projection(self.inventory.projection)
self.units(self.inventory.units)
self.projOptions(self.inventory.projOptions)
return
示例9: _configure
# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
def _configure(self):
Component._configure(self)
self.username = self.inventory.username
self.passwd = self.inventory.passwd
self.ticket = self.inventory.ticket
self.attempts = self.inventory.attempts
self.ipa = self.inventory.ipa
return
示例10: _configure
# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
def _configure(self):
"""
Set members based using inventory.
"""
Component._configure(self)
self.header = self.inventory.header
self.objname = self.inventory.objname
self.namespace = self.inventory.namespace
self.parent = self.inventory.parent
return
示例11: _configure
# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
def _configure(self):
"""
Setup members using inventory.
"""
Component._configure(self)
self.dbValue = self.inventory.dbValue
self.operand = self.inventory.operand
self.db = self.inventory.db
self.defaultValue = self.inventory.default
return
示例12: _configure
# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
def _configure(self):
"""
Set members using inventory.
"""
try:
Component._configure(self)
self.filename(self.inventory.filename)
except ValueError, err:
aliases = ", ".join(self.aliases)
raise ValueError("Error while configuring spatial database reader "
"(%s):\n%s" % (aliases, err.message))
示例13: _configure
# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
def _configure(self):
"""
Set attributes based on inventory.
"""
try:
Component._configure(self)
self.label(self.inventory.label)
except ValueError, err:
aliases = ", ".join(self.aliases)
raise ValueError("Error while configuring spatial database "
"(%s):\n%s" % (aliases, err.message))
示例14: _configure
# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
def _configure(self):
"""
Configure the component
"""
Component._configure(self)
# Add the inventory items to the list of attributes
for name in model.params:
line = "self.%s = self.inventory.%s" % (name, name)
exec line in locals()
continue
return
示例15: _configure
# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
def _configure(self):
"""
Set members based using inventory.
"""
try:
Component._configure(self)
self.filename = self.inventory.filename
self.commentDelimiter = self.inventory.commentDelimiter
except ValueError, err:
aliases = ", ".join(self.aliases)
raise ValueError("Error while configuring points list "
"(%s):\n%s" % (aliases, err.message))