Exemplo n.º 1
0
 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)))
Exemplo n.º 2
0
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
Exemplo n.º 3
0
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
Exemplo n.º 4
0
 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)))