[Zope-CVS] CVS: Packages/JobBoardEx - IJob.py:1.2 Job.py:1.2
Fred L. Drake, Jr.
fdrake@acm.org
Tue, 19 Mar 2002 17:56:21 -0500
Update of /cvs-repository/Packages/JobBoardEx
In directory cvs.zope.org:/tmp/cvs-serv31872
Modified Files:
IJob.py Job.py
Log Message:
Force the jobs to remember their own ID. ;-(
=== Packages/JobBoardEx/IJob.py 1.1 => 1.2 ===
"""Interface for the basic Job"""
+ def getId():
+ "Gets an ID that's unique within the containing job list"
+
def getSubmitter():
"Gets the email address of the submitter"
=== Packages/JobBoardEx/Job.py 1.1 => 1.2 ===
def __init__(self, submitter, summary, description,
- contactURL, contactEmail):
+ contactURL, contactEmail, id):
self.submitter = submitter
self.summary = summary
self.description = description
self.contactURL = contactURL
self.contactEmail = contactEmail
+ self.id = id
self.jobState = JobState.PendingApproval
+
+ def getId(self):
+ "Gets an ID that's unique within the containing job list"
+ return self.id
def getSubmitter(self):
"Gets the email address of the submitter"