From 646640b0962a1b309bc35157406512129fcc4c4d Mon Sep 17 00:00:00 2001 From: Papoteur Date: Tue, 24 May 2016 21:44:30 +0200 Subject: Suppress no more used code (Date check) --- mageiaSync/mageiaSyncExt.py | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'mageiaSync/mageiaSyncExt.py') diff --git a/mageiaSync/mageiaSyncExt.py b/mageiaSync/mageiaSyncExt.py index f2240fd..4abbee6 100644 --- a/mageiaSync/mageiaSyncExt.py +++ b/mageiaSync/mageiaSyncExt.py @@ -58,30 +58,6 @@ class checkThread(QThread): checkvalue += 128 return checkvalue - def processDate(self): - import datetime as datetime - import time - import locale - locale.setlocale(locale.LC_ALL, 'C') - # Get and process the date from the file DATE.txt - try: - dateFile=open(str(self.destination)+'/'+self.path+'/DATE.txt','r') - except: - return False - refDate=dateFile.readline() - lits=re.split("\W+", refDate) - nums=re.findall("([0-9]+)", refDate) - refTime=re.findall("[0-9]*:[0-9]*:[0-9]*", refDate)[0] - refDay=eval(nums[0]) - refYear=eval(nums[-1]) - refMonth=time.strptime(lits[1], "%b").tm_mon - # Date of file - info=datetime.datetime.fromtimestamp(os.path.getmtime(str(self.destination)+'/'+self.path+'/'+self.name)) - if(refDay==info.day and refMonth==info.month and refYear==info.year and refTime==info.strftime("%H:%M:%S")): - return True - else: - return False - def setup(self, destination, path,name,isoIndex): self.destination=destination self.path=path -- cgit v1.2.1