equal
deleted
inserted
replaced
212 finally: |
212 finally: |
213 self.open_pool_connections() |
213 self.open_pool_connections() |
214 |
214 |
215 def restore(self, backupfile, drop): |
215 def restore(self, backupfile, drop): |
216 """method called to restore a backup of source's data""" |
216 """method called to restore a backup of source's data""" |
217 self.close_pool_connections() |
217 if self.repo.config.open_connections_pools: |
|
218 self.close_pool_connections() |
218 try: |
219 try: |
219 self.restore_from_file(backupfile, drop) |
220 self.restore_from_file(backupfile, drop) |
220 finally: |
221 finally: |
221 self.open_pool_connections() |
222 if self.repo.config.open_connections_pools: |
|
223 self.open_pool_connections() |
222 |
224 |
223 def init(self): |
225 def init(self): |
224 self.init_creating() |
226 self.init_creating() |
225 |
227 |
226 def map_attribute(self, etype, attr, cb): |
228 def map_attribute(self, etype, attr, cb): |