Example #1
0
 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:]     
Example #2
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
Example #3
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
Example #4
0
 def call(self, methodName, *args, **keywords):
   self.guard()
   return XMLRPCServlet.call(self, methodName, *args, **keywords)
Example #5
0
 def respondToPost(self, transaction):
   self._transaction= transaction
   return XMLRPCServlet.respondToPost(self, transaction)