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