| author | Sandro Knauß <knauss@netzguerilla.net> |
| Sat, 18 Feb 2012 19:47:08 +0100 | |
| branch | devel |
| changeset 170 | 2a16943f1d05 |
| parent 169 | aabc04843d25 |
| 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)