Exemplo n.º 1
0
 def delete_document(self, uri, check_etag):
     return repeat_on_error(10, DeleteFailed, self.conn.runInteraction,
                            self._delete_document, uri, check_etag)
Exemplo n.º 2
0
 def delete_document(self, uri, check_etag):
     return repeat_on_error(10, DeleteFailed, self.conn.runInteraction, self._delete_document, uri, check_etag)
Exemplo n.º 3
0
 def put_document(self, uri, document, check_etag):
     return repeat_on_error(10, (UpdateFailed, IntegrityError),
                            self.conn.runInteraction, self._put_document,
                            uri, document, check_etag)
Exemplo n.º 4
0
 def put_document(self, uri, document, check_etag):
     return repeat_on_error(
         10, (UpdateFailed, IntegrityError), self.conn.runInteraction, self._put_document, uri, document, check_etag
     )