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


Python DASAbstractService.__init__方法代码示例

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


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

示例1: __init__

# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
 def __init__(self, config):
     DASAbstractService.__init__(self, 'combined', config)
     self.map = self.dasmapping.servicemap(self.name)
     map_validator(self.map)
     self.dbs = 'dbs3'
     self.sites = {'tstamp': 0} # local cache
     self.thr = 24*60*60 # 1 day for local cache
开发者ID:dmwm,项目名称:DAS,代码行数:9,代码来源:combined_service.py

示例2: __init__

# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
 def __init__(self, config):
     DASAbstractService.__init__(self, 'dbs3', config)
     self.reserved = ['api', 'apiversion']
     self.map = self.dasmapping.servicemap(self.name)
     map_validator(self.map)
     self.prim_instance = config['dbs']['dbs_global_instance']
     self.instances = config['dbs']['dbs_instances']
开发者ID:zdenekmaxa,项目名称:DAS,代码行数:9,代码来源:dbs3_service.py

示例3: __init__

# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
 def __init__(self, config):
     DASAbstractService.__init__(self, 'runsum', config)
     self.results = []
     self.params  = {'DB':'cms_omds_lb', 'FORMAT':'XML'}
     self._keys   = None
     self.map = self.dasmapping.servicemap(self.name)
     map_validator(self.map)
开发者ID:zdenekmaxa,项目名称:DAS,代码行数:9,代码来源:runsum_service.py

示例4: __init__

# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
 def __init__(self, config):
     DASAbstractService.__init__(self, 'dbs', config)
     self.reserved = ['api', 'apiversion']
     self.map = self.dasmapping.servicemap(self.name)
     map_validator(self.map)
     self.prim_instance = self.dasmapping.dbs_global_instance(self.name)
     self.instances = self.dasmapping.dbs_instances(self.name)
     self.extended_expire = config['dbs'].get('extended_expire', 0)
     self.extended_threshold = config['dbs'].get('extended_threshold', 0)
开发者ID:ktf,项目名称:DAS,代码行数:11,代码来源:dbs_service.py

示例5: __init__

# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
    def __init__(self, config):
        DASAbstractService.__init__(self, "xwho", config)
        self.map = self.dasmapping.servicemap(self.name)
        map_validator(self.map)

        self.re_summary_ids = re.compile(r'<a href="/xwho/people/([0-9]{6})">')

        self.re_find_name = re.compile(r"<h1>(.*?)</h1>")
        self.re_find_email = re.compile(r"<a href=mailto:(.*?)>")
        self.re_find_phone = re.compile(r"<b>Tel:</b>([0-9 ]+)")
开发者ID:dmwm,项目名称:DAS,代码行数:12,代码来源:xwho_service.py

示例6: __init__

# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
 def __init__(self, config):
     DASAbstractService.__init__(self, "dbs3", config)
     self.reserved = ["api", "apiversion"]
     self.map = self.dasmapping.servicemap(self.name)
     map_validator(self.map)
     self.prim_instance = self.dasmapping.dbs_global_instance(self.name)
     self.instances = self.dasmapping.dbs_instances(self.name)
     self.extended_expire = config["dbs"].get("extended_expire", 0)
     self.extended_threshold = config["dbs"].get("extended_threshold", 0)
     self.dbs_choice = config["das"].get("main_dbs", "dbs3")
开发者ID:ktf,项目名称:DAS,代码行数:12,代码来源:dbs3_service.py

示例7: __init__

# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
    def __init__(self, config):
        DASAbstractService.__init__(self, 'cmsswconfigs', config)
        self.headers = {'Accept': 'text/json;application/json'}
        self.map = self.dasmapping.servicemap(self.name)
        map_validator(self.map)

        # specify access to DB
        dburi = config.get('dburi')
        self.conn = db_connection(dburi)
        database  = self.conn['configdb']
        self.managers = {}
        for release in database.collection_names():
            if  release.find('index') == -1:
                self.managers[release] = MongoQuery(release)
        self.releases = self.managers.keys()
开发者ID:zdenekmaxa,项目名称:DAS,代码行数:17,代码来源:cmsswconfigs_service.py

示例8: __init__

# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
 def __init__(self, config):
     DASAbstractService.__init__(self, 'reqmgr', config)
     self.map = self.dasmapping.servicemap(self.name)
     map_validator(self.map)
开发者ID:ktf,项目名称:DAS,代码行数:6,代码来源:reqmgr_service.py

示例9: __init__

# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
 def __init__(self, config):
     DASAbstractService.__init__(self, 'dashboard', config)
     self.headers = {'Accept': 'text/xml'}
     self.map = self.dasmapping.servicemap(self.name)
     map_validator(self.map)
开发者ID:zdenekmaxa,项目名称:DAS,代码行数:7,代码来源:dashboard_service.py

示例10: __init__

# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
 def __init__(self, config):
     DASAbstractService.__init__(self, 'phedex', config)
     self.map = self.dasmapping.servicemap(self.name)
     map_validator(self.map)
     self.notationmap = self.notations()
开发者ID:zdenekmaxa,项目名称:DAS,代码行数:7,代码来源:phedex_service.py

示例11: __init__

# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
 def __init__(self, config):
     DASAbstractService.__init__(self, 'conddb', config)
     self.reserved = ['api', 'apiversion']
     self.map = self.dasmapping.servicemap(self.name)
     map_validator(self.map)
开发者ID:zdenekmaxa,项目名称:DAS,代码行数:7,代码来源:conddb_service.py

示例12: __init__

# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
 def __init__(self, config):
     DASAbstractService.__init__(self, "dq", config)
     self._keys = None
     self.map = self.dasmapping.servicemap(self.name)
     map_validator(self.map)
开发者ID:dmwm,项目名称:DAS,代码行数:7,代码来源:dq_service.py

示例13: __init__

# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
 def __init__(self, config):
     DASAbstractService.__init__(self, 'lumidb', config)
     self.map = self.dasmapping.servicemap(self.name, 'javaservlet')
     map_validator(self.map)
开发者ID:dmwm,项目名称:DAS,代码行数:6,代码来源:lumidb_service.py

示例14: __init__

# 需要导入模块: from DAS.services.abstract_service import DASAbstractService [as 别名]
# 或者: from DAS.services.abstract_service.DASAbstractService import __init__ [as 别名]
 def __init__(self, config):
     DASAbstractService.__init__(self, 'combined', config)
     self.map = self.dasmapping.servicemap(self.name)
     map_validator(self.map)
     dbs = config['das'].get('main_dbs', 'dbs')
     self.dbs = dbs
开发者ID:ktf,项目名称:DAS,代码行数:8,代码来源:combined_service.py


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