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)
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
def sync(self, dbs, atomic=True, **kwargs): for path in self.paths: pushdocs(path, dbs, atomic=atomic)