server/sources/native.py
branchstable
changeset 4893 15ae9a33a7f2
parent 4836 3e3c4917e94e
child 4899 c666d265fb95
child 4900 29626bb6071b
--- a/server/sources/native.py	Fri Mar 12 14:52:22 2010 +0100
+++ b/server/sources/native.py	Fri Mar 12 14:55:41 2010 +0100
@@ -13,7 +13,7 @@
 """
 __docformat__ = "restructuredtext en"
 
-from threading import Lock
+from o_threading import Lock
 from datetime import datetime
 from base64 import b64decode, b64encode
 
@@ -216,11 +216,11 @@
         pool.pool_reset()
         self.repo._free_pool(pool)
 
-    def backup(self, backupfile):
+    def backup(self, backupfile, confirm):
         """method called to create a backup of the source's data"""
         self.close_pool_connections()
         try:
-            self.backup_to_file(backupfile)
+            self.backup_to_file(backupfile, confirm)
         finally:
             self.open_pool_connections()