当前位置: 首页>>代码示例>>Python>>正文


Python ConfigSection.__init__方法代码示例

本文整理汇总了Python中WMCore.Configuration.ConfigSection.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python ConfigSection.__init__方法的具体用法?Python ConfigSection.__init__怎么用?Python ConfigSection.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在WMCore.Configuration.ConfigSection的用法示例。


在下文中一共展示了ConfigSection.__init__方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from WMCore.Configuration import ConfigSection [as 别名]
# 或者: from WMCore.Configuration.ConfigSection import __init__ [as 别名]
 def __init__(self, name):
     ConfigSection.__init__(self, name)
     self._internal_treetop = False
     self.section_("tree")
     self.tree.section_("children")
     self.tree.childNames = []
     self.tree.parent = None
开发者ID:AndresTanasijczuk,项目名称:WMCore,代码行数:9,代码来源:ConfigSectionTree.py

示例2: __init__

# 需要导入模块: from WMCore.Configuration import ConfigSection [as 别名]
# 或者: from WMCore.Configuration.ConfigSection import __init__ [as 别名]
    def __init__(self, name="test"):
        ConfigSection.__init__(self, name)
        self.objectType = self.__class__.__name__
        #  //persistent data
        # //
        #//
        self.section_("persistency")
        self.persistency.specUrl = None
        #  //
        # // request related information
        #//
        self.section_("request")
        self.request.priority = None # what should be the default value
        #  //
        # // owner related information
        #//
        self.section_("owner")

        #  //
        # // Policies applied to this workload by the processing system
        #//
        self.section_("policies")
        self.policies.section_("start")
        self.policies.section_("end")
        self.policies.start.policyName = None
        self.policies.end.policyName = None

        #  //
        # // properties of the Workload and all tasks there-in
        #//
        self.section_("properties")
        self.properties.acquisitionEra = None
        self.properties.processingVersion = None
        self.properties.unmergedLFNBase = "/store/unmerged"
        self.properties.mergedLFNBase = "/store/data"
        self.properties.dashboardActivity = None

        #  //
        # // tasks
        #//
        self.section_("tasks")
        self.tasks.tasklist = []

        self.sandbox = None
        self.initialJobCount = 0
开发者ID:,项目名称:,代码行数:47,代码来源:

示例3: __init__

# 需要导入模块: from WMCore.Configuration import ConfigSection [as 别名]
# 或者: from WMCore.Configuration.ConfigSection import __init__ [as 别名]
 def __init__(self, name = None):
     BaseConfigSection.__init__(self, name)
开发者ID:AndresTanasijczuk,项目名称:WMCore,代码行数:4,代码来源:Configuration.py


注:本文中的WMCore.Configuration.ConfigSection.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。