server/sources/__init__.py
branchstable
changeset 7342 d1c8b5b3531c
parent 7237 9f619715665b
child 7398 26695dd703d8
child 7501 2983dd24494a
equal deleted inserted replaced
7341:c419c2d0d13e 7342:d1c8b5b3531c
   137             return 1
   137             return 1
   138         if other.uri == 'system':
   138         if other.uri == 'system':
   139             return -1
   139             return -1
   140         return cmp(self.uri, other.uri)
   140         return cmp(self.uri, other.uri)
   141 
   141 
   142     def backup(self, backupfile, confirm):
   142     def backup(self, backupfile, confirm, format='native'):
   143         """method called to create a backup of source's data"""
   143         """method called to create a backup of source's data"""
   144         pass
   144         pass
   145 
   145 
   146     def restore(self, backupfile, confirm, drop):
   146     def restore(self, backupfile, confirm, drop, format='native'):
   147         """method called to restore a backup of source's data"""
   147         """method called to restore a backup of source's data"""
   148         pass
   148         pass
   149 
   149 
   150     @classmethod
   150     @classmethod
   151     def check_conf_dict(cls, eid, confdict, _=unicode, fail_if_unknown=True):
   151     def check_conf_dict(cls, eid, confdict, _=unicode, fail_if_unknown=True):