Exemple #1
0
 def replicate_push(self):
     local_db = Database('localdb')
     remote_db = Database('http://elsewhere.com:5984/remotedb')
     yield local_db.push(remote_db)
     yield local_db.pull(remote_db)
Exemple #2
0
 def replicate_push(self):
     local_db = Database('localdb')
     remote_db = Database('http://elsewhere.com:5984/remotedb')
     yield local_db.push(remote_db)
     yield local_db.pull(remote_db)