1
0
Fork 0
mirror of https://github.com/correl/SleekXMPP.git synced 2024-12-19 19:14:15 +00:00
SleekXMPP/sleekxmpp/xmlstream/handler/base.py

22 lines
374 B
Python
Raw Normal View History

2009-06-03 22:56:51 +00:00
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 prerun(self, payload):
self._payload = payload
2009-06-03 22:56:51 +00:00
def run(self, payload):
self._payload = payload
def checkDelete(self):
return self._destroy