Exemplo n.º 1
0
 def runpipe():
     self._meta.url="http://{}:{}".format(url,port)
     if not check_url(self._meta.url):
         self.app.log.warn("Connecting to server at {} failed. No such url." % self._meta.url)
         return
     self._meta.conn = couchdb.Server(url=self._meta.url)
     self.app.log.info("Connecting to server at {} succeeded".format(self._meta.url))
Exemplo n.º 2
0
 def runpipe():
     self._meta.url = "http://{}:{}".format(url, port)
     if not check_url(self._meta.url):
         self.app.log.warn(
             "Connecting to server at {} failed. No such url." %
             self._meta.url)
         return
     self._meta.conn = couchdb.Server(url=self._meta.url)
     self.app.log.info("Connecting to server at {} succeeded".format(
         self._meta.url))
Exemplo n.º 3
0
 def connect(self, username=None, password=None, url="localhost", port=5984, **kw):
     if not username or not password or not url:
         self.log.warn("please supply username, password, and url")
         return None
     if not check_url(self.url_string):
         self.log.warn("No such url {}".format(self.url_string))
         return None
     self.con = couchdb.Server(url=self.url_string)
     self.log.debug("Connected to server @{}".format(self.url_string))
     self.user = username
     self.pw = password
Exemplo n.º 4
0
 def connect(self,
             username=None,
             password=None,
             url="localhost",
             port=5984,
             **kw):
     if not username or not password or not url:
         self.log.warn("please supply username, password, and url")
         return None
     if not check_url(self.url_string):
         self.log.warn("No such url {}".format(self.url_string))
         return None
     self.con = couchdb.Server(url=self.url_string)
     self.log.debug("Connected to server @{}".format(self.url_string))
     self.user = username
     self.pw = password