moved seesmic branch to trunk
This commit is contained in:
18
sleekxmpp/xmlstream/handler/base.py
Normal file
18
sleekxmpp/xmlstream/handler/base.py
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user