--- a/iro/model/job.py Thu Feb 09 18:27:58 2012 +0100
+++ b/iro/model/job.py Fri Feb 10 20:47:57 2012 +0100
@@ -8,11 +8,11 @@
todo = 1
good = 2
error = 3
- def __init__(self, job):
- self.status = Status.todo
- self.job = job
- self.offer = None #the offer over that this job was done
- self.errtext = None #the error text
+
+ def __init__(self, offer, status, errtext=None):
+ self.status = status
+ self.offer = offer #the offer over that this job was done
+ self.errtext = errtext #the error text
class ExJob:
'''One Job is a class that handles one job has multiple tasks'''