| author | Sandro Knauß <knauss@netzguerilla.net> |
| Sat, 18 Feb 2012 17:13:38 +0100 | |
| branch | devel |
| changeset 169 | aabc04843d25 |
| parent 166 | 6d6890f7e3f8 |
| child 171 | 5619596a0053 |
| permissions | -rw-r--r-- |
from functools import partial class Provider(): def __init__(self, name, config, typs={}): self.name = name self.config = config self.typs=typs self.testmode = False self.loadConfig() def loadConfig(self): for (n, v) in self.config: if n == "typ": self.typ = v def send(self, typ, route, recipient, message): pass def getSendFunc(self, typ, route): return partial(self.send, typ, route)