fixed params in periods, added handle Job stub

This commit is contained in:
Rafael.Timmerberg 2013-05-27 03:13:08 +02:00
commit be1d712573
4 changed files with 10 additions and 2 deletions

View file

@ -26,7 +26,7 @@ class IntervalPeriod(Period):
self.comment = comment # comment
def createJob(self, scheduler, jobInfo, func):
return scheduler.add_interval_job(func, self.weeks, self.hours, self.minutes, self.seconds, self.start_date, [jobInfo])
return scheduler.add_interval_job(func, weeks=self.weeks, hours=self.hours, minutes=self.minutes, seconds=self.seconds, start_date=self.start_date, args=[jobInfo])
def __str__(self):

View file

@ -16,6 +16,12 @@ class JobInfo:
def __str__(self):
return self.name
def setLogger(self, log):
self.log = log
def handleCall(self):
pass