def __init__(self): XMLRPCServlet.__init__(self) self.config = libxml2.parseFile("../config/config.xml") baseURL = self.config.xpathEval("/blog/base-url")[0].content baseURL = string.replace(baseURL, "http://", "") slash = baseURL.find('/') self.host = baseURL[0:slash] self.baseURL = baseURL[slash:]
def __init__(self): XMLRPCServlet.__init__(self) conf = ConfigParser() conf.readfp(open("/home/webware/mail/conf/Site.conf")) self.cyrus = Cyrus(conf.get("cyrus","host"), conf.get("cyrus","user"), conf.get("cyrus","password"), conf.get("mysql","host"), conf.get("mysql","user"), conf.get("mysql","password"), conf.get("mysql","database"), ) self.allow_caching = 0
def __init__(self): XMLRPCServlet.__init__(self) conf = ConfigParser() conf.readfp(open("/home/webware/mail/conf/Site.conf")) self.cyrus = Cyrus( conf.get("cyrus", "host"), conf.get("cyrus", "user"), conf.get("cyrus", "password"), conf.get("mysql", "host"), conf.get("mysql", "user"), conf.get("mysql", "password"), conf.get("mysql", "database"), ) self.allow_caching = 0
def call(self, methodName, *args, **keywords): self.guard() return XMLRPCServlet.call(self, methodName, *args, **keywords)
def respondToPost(self, transaction): self._transaction= transaction return XMLRPCServlet.respondToPost(self, transaction)