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))
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))
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
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