mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-28 03:00:16 +00:00
19 lines
319 B
Python
19 lines
319 B
Python
|
|
||
|
class BaseHandler(object):
|
||
|
|
||
|
|
||
|
def __init__(self, name, matcher):
|
||
|
self.name = name
|
||
|
self._destroy = False
|
||
|
self._payload = None
|
||
|
self._matcher = matcher
|
||
|
|
||
|
def match(self, xml):
|
||
|
return self._matcher.match(xml)
|
||
|
|
||
|
def run(self, payload):
|
||
|
self._payload = payload
|
||
|
|
||
|
def checkDelete(self):
|
||
|
return self._destroy
|