def __init__(self): Progresser.__init__(self) #Job.__init__(self) self.simulate=True self.count_errors = 0 #self.count_warnings = 0 self.count_newer = 0 self.count_same = 0 self.count_delete_file = 0 self.count_update_file = 0 self.count_copy_file = 0 self.count_delete_dir = 0 #self.count_update_dir = 0 self.count_copy_dir = 0 self.done_same = 0 self.done_delete_file = 0 self.done_update_file = 0 self.done_copy_file = 0 self.done_delete_dir = 0 #self.done_update_dir = 0 self.done_copy_dir = 0 self.projects=[] self._statusAnalysing = _("keep %d, update %d (%d newer), " "copy %d, delete %d files.") self._statusDoing = _("kept %d, updated %d, copied %d," " deleted %d files.")
def __init__(self, vol): Progresser.__init__(self) self.volume = vol dbc = self.volume.getContext() self.ftypes = dbc.query(tables.FileType) self.files = dbc.query(tables.File) self.dirs = dbc.query(tables.Directory)
def __init__(self,vol): Progresser.__init__(self) self.volume = vol dbc=self.volume.getContext() self.ftypes = dbc.query(tables.FileType) self.files = dbc.query(tables.File) self.dirs = dbc.query(tables.Directory)
def __init__(self): Progresser.__init__(self) #Job.__init__(self) self.simulate = True self.count_errors = 0 #self.count_warnings = 0 self.count_newer = 0 self.count_same = 0 self.count_delete_file = 0 self.count_update_file = 0 self.count_copy_file = 0 self.count_delete_dir = 0 #self.count_update_dir = 0 self.count_copy_dir = 0 self.done_same = 0 self.done_delete_file = 0 self.done_update_file = 0 self.done_copy_file = 0 self.done_delete_dir = 0 #self.done_update_dir = 0 self.done_copy_dir = 0 self.projects = [] self._statusAnalysing = _("keep %d, update %d (%d newer), " "copy %d, delete %d files.") self._statusDoing = _("kept %d, updated %d, copied %d," " deleted %d files.")
def __init__(self,job,src,target,recurse=False,ignorePatterns=None): Progresser.__init__(self) #self.app=app self.job=job self.src = unicode(src) self.target = unicode(target) #self.simulate = simulate self.recurse = recurse self.ignorePatterns = ignorePatterns self.ignore_times = False self.modify_window = 2 if not os.path.exists(self.src) \ and not os.path.ismount(self.src): raise OperationFailed( _("Source directory '%s' doesn't exist.") % self.src) if not os.path.exists(self.target) \ and not os.path.ismount(self.target): raise OperationFailed( _("Target directory '%s' doesn't exist.") % self.target)
def __init__(self, job, src, target, recurse=False, ignorePatterns=None): Progresser.__init__(self) #self.app=app self.job = job self.src = unicode(src) self.target = unicode(target) #self.simulate = simulate self.recurse = recurse self.ignorePatterns = ignorePatterns self.ignore_times = False self.modify_window = 2 if not os.path.exists(self.src) \ and not os.path.ismount(self.src): raise OperationFailed( _("Source directory '%s' doesn't exist.") % self.src) if not os.path.exists(self.target) \ and not os.path.ismount(self.target): raise OperationFailed( _("Target directory '%s' doesn't exist.") % self.target)
def error(self,*args,**kw): Progresser.error(self,*args,**kw) self.job.count_errors += 1
def error(self, *args, **kw): Progresser.error(self, *args, **kw) self.job.count_errors += 1