Esempio n. 1
0
    def sync(self, dbs, atomic=True, **kwargs):
        for path in self.docpaths:
            ret = pushdocs(path, dbs, atomic=atomic)
            docs.extend(ret['docs'])

        for path in self.designpaths:
            pushapps(path, dbs, atomic=atomic)
Esempio n. 2
0
def main():
    for serverName in ['couchwrite']:
        for (root, dirs, files) in os.walk(serverName):
            for dir in dirs:
                if root.split('/')[-1] == serverName and dir[0] != '.':
                    print 'Pushing ' + os.path.join(root, dir)
                    db = server.get_db(dir)
                    pushapps(os.path.join(root, dir), db)
Esempio n. 3
0
def main():
	for serverName in ['couchwrite']:
		for (root,dirs,files) in os.walk(serverName):
			for dir in dirs:
				if root.split('/')[-1]==serverName and dir[0]!='.':
					print 'Pushing '+os.path.join(root,dir)
					db=server.get_db(dir)
					pushapps(os.path.join(root,dir),db)
Esempio n. 4
0
    def get_docs(self):
        docs = []
        for path in self.docpaths:
            ret = pushdocs(path, [], export=True)
            docs.extend(ret['docs'])

        for path in self.designpaths:
            ret = pushapps(path, [], export=True)
            docs.extend(ret['docs'])
        return docs