def pushCouchapps(self, *couchappdirs): """ push a list of couchapps to the database """ for couchappdir in couchappdirs: couchapppush( self.couchappConfig, couchappdir, "%s/%s" % (self.couchUrl, urllib.quote_plus(self.dbName)))
def installCouchApp(couchUrl, couchDBName, couchAppName, basePath=None): """ _installCouchApp_ Install the given couch app on the given server in the given database. If the database already exists it will be deleted. """ if not basePath: basePath = couchAppRoot() print("Installing %s into %s" % (couchAppName, couchDBName)) couchapppush("%s/%s" % (basePath, couchAppName), "%s/%s" % (couchUrl, couchDBName)) return
def installCouchApp(couchUrl, couchDBName, couchAppName, basePath = None): """ _installCouchApp_ Install the given couch app on the given server in the given database. If the database already exists it will be deleted. """ if not basePath: basePath = couchAppRoot() print("Installing %s into %s" % (couchAppName, couchDBName)) couchServer = CouchServer(couchUrl) couchappConfig = Config() couchapppush(couchappConfig, "%s/%s" % (basePath, couchAppName), "%s/%s" % (couchUrl, couchDBName)) return
def pushCouchapps(self, *couchappdirs): """ push a list of couchapps to the database """ for couchappdir in couchappdirs: couchapppush(self.couchappConfig, couchappdir, "%s/%s" % (self.couchUrl, urllib.quote_plus(self.dbName)))