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


Python Service.__init__方法代码示例

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


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

示例1: __init__

# 需要导入模块: from service import Service [as 别名]
# 或者: from service.Service import __init__ [as 别名]
 def __init__(self, start="<", end=">", close="/"):
     """Service constructor."""
     Service.__init__(self)
     self.markup_delimiter_start = start
     self.markup_delimiter_end = end
     self.markup_delimiter_close = close
     self.expressions = []
     self.exceptions = []
     
     # Add the exceptions
     self.add_except_expression("@", "@")
     self.add_except_markup("pre")
     
     
     # Add the expressions and markups
     self.add_expression("italic", "/(.*?)/", "<em>\\1</em>")
     self.add_expression("bold", r"\*(.*?)\*", "<strong>\\1</strong>")
     self.add_expression(
             "header1",
             r"^(\s*)h1\.\s+(.*?)\s*$",
             r"\1<h1>\2</h1>",
             re.MULTILINE
     )
     
     # Test (o delete)
     text = """
开发者ID:v-legoff,项目名称:pa-poc3,代码行数:28,代码来源:wiki.py

示例2: __init__

# 需要导入模块: from service import Service [as 别名]
# 或者: from service.Service import __init__ [as 别名]
 def __init__(self):
     Service.__init__(self)
     self.shell = None
     self.reentrancyGaurd = 0
     self.processingBulkData = False
     self.clocksynchronizing = 0
     self.clocklastsynchronized = None
     self.lastLongCallTimestamp = 0
     blue.pyos.synchro.timesyncs.append(self.OnTimerResync)
开发者ID:Pluckyduck,项目名称:eve,代码行数:11,代码来源:connectionService.py

示例3: __init__

# 需要导入模块: from service import Service [as 别名]
# 或者: from service.Service import __init__ [as 别名]
 def __init__(self):
     Service.__init__(self)
     self.verbosity = ERRORS
     self.object = {}
     self.subscribers = {}
     self.numInMessages = 0
     self.timeInMessageProcess = 0
     self.numOutMessages = 0
     self.timeOutMessageProcess = 0
开发者ID:duke-iml,项目名称:ece490-s2016,代码行数:11,代码来源:structure_service.py

示例4: __init__

# 需要导入模块: from service import Service [as 别名]
# 或者: from service.Service import __init__ [as 别名]
 def __init__(self,addr,message,repeat=1,asServer=False):
     Service.__init__(self)
     
     self.open(addr,asServer=asServer)
     time.sleep(0.01)
     for i in xrange(repeat):
         print "Sending",message
         self.sendMessage(message)
     time.sleep(0.01)
     return
开发者ID:duke-iml,项目名称:ece490-s2016,代码行数:12,代码来源:send.py

示例5: __init__

# 需要导入模块: from service import Service [as 别名]
# 或者: from service.Service import __init__ [as 别名]
 def __init__(self):
     Service.__init__(self)
     self.lscService = sm.GetService('LSC')
     self.slashRemote = sm.RemoteSvc('slash')
     self.channelID = None
     self.waitingList = []
     self.moveRunning = False
     self.channelName = self.CHANNEL_NAME
     self.movePhrase = self.MOVE_PHRASE
     self.destinationID = self.DESTINATION_ID
开发者ID:connoryang,项目名称:dec-eve-serenity,代码行数:12,代码来源:autoMoveBot.py

示例6: __init__

# 需要导入模块: from service import Service [as 别名]
# 或者: from service.Service import __init__ [as 别名]
 def __init__(self, *args):
     Service.__init__(self)
     self.dxDiagFileName = None
     self.categories = None
     self.startStages = None
     self.fixInStages = None
     self.assignees = None
     self.priorities = None
     self.severities = None
     self.serverUrl = ''
     self.windowsUserName = ''
     self.charName = ''
     self.userName = ''
     self.bugReportServer = None
     self.screenshots = []
     self.wnd = None
     self.categories = None
开发者ID:connoryang,项目名称:dec-eve-serenity,代码行数:19,代码来源:bugReporting.py

示例7: __init__

# 需要导入模块: from service import Service [as 别名]
# 或者: from service.Service import __init__ [as 别名]
 def __init__(self):
     Service.__init__(self)
开发者ID:Pluckyduck,项目名称:eve,代码行数:4,代码来源:war_cso.py

示例8: __init__

# 需要导入模块: from service import Service [as 别名]
# 或者: from service.Service import __init__ [as 别名]
 def __init__(self, query):
     Service.__init__(self, query)
     if ROUTE:
         self._marker = Marker()
开发者ID:virtdev,项目名称:virtdev,代码行数:6,代码来源:user.py

示例9: __init__

# 需要导入模块: from service import Service [as 别名]
# 或者: from service.Service import __init__ [as 别名]
 def __init__(self):
     self.smptRetryTime = 12000
     Service.__init__(self)
开发者ID:Pluckyduck,项目名称:eve,代码行数:5,代码来源:emailSvc.py

示例10: __init__

# 需要导入模块: from service import Service [as 别名]
# 或者: from service.Service import __init__ [as 别名]
 def __init__(self):
     Service.__init__(self)
     self.token_model = ""
     self.user_provider = "user_provider"
     self.time_expire = 900
开发者ID:v-legoff,项目名称:pa-poc3,代码行数:7,代码来源:authentication.py

示例11: __init__

# 需要导入模块: from service import Service [as 别名]
# 或者: from service.Service import __init__ [as 别名]
 def __init__(self,fn=None):
     Service.__init__(self)
     self.file = None
     if fn != None:
         self.setLogFile(fn)
开发者ID:duke-iml,项目名称:ece490-s2016,代码行数:7,代码来源:log_service.py

示例12: __init__

# 需要导入模块: from service import Service [as 别名]
# 或者: from service.Service import __init__ [as 别名]
 def __init__(self):
     Service.__init__(self)
     self.firstTopic = None
开发者ID:duke-iml,项目名称:ece490-s2016,代码行数:5,代码来源:topic.py

示例13: __init__

# 需要导入模块: from service import Service [as 别名]
# 或者: from service.Service import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     Service.__init__(self, *args, **kwargs)
     self.bounties = {}
     self.cacheTime = 5 * const.MIN
     self.myKillRights = None
     self.killRightTracker = killRightTracker.KillRightTracker(self.FetchKillRightsFromServer, blue.os.GetWallclockTime, 5 * const.MIN)
开发者ID:connoryang,项目名称:dec-eve-serenity,代码行数:8,代码来源:bountySvc.py

示例14: __init__

# 需要导入模块: from service import Service [as 别名]
# 或者: from service.Service import __init__ [as 别名]
 def __init__(self,topic='.'):
     self.topic = topic
     Service.__init__(self)
开发者ID:giseokv,项目名称:ece490-s2016,代码行数:5,代码来源:topic.py


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