本文整理汇总了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 = """
示例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)
示例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
示例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
示例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
示例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
示例7: __init__
# 需要导入模块: from service import Service [as 别名]
# 或者: from service.Service import __init__ [as 别名]
def __init__(self):
Service.__init__(self)
示例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()
示例9: __init__
# 需要导入模块: from service import Service [as 别名]
# 或者: from service.Service import __init__ [as 别名]
def __init__(self):
self.smptRetryTime = 12000
Service.__init__(self)
示例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
示例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)
示例12: __init__
# 需要导入模块: from service import Service [as 别名]
# 或者: from service.Service import __init__ [as 别名]
def __init__(self):
Service.__init__(self)
self.firstTopic = None
示例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)
示例14: __init__
# 需要导入模块: from service import Service [as 别名]
# 或者: from service.Service import __init__ [as 别名]
def __init__(self,topic='.'):
self.topic = topic
Service.__init__(self)