[Zope-CVS] CVS: Packages/JobBoardEx - Job.py:1.3
Fred L. Drake, Jr.
fdrake@acm.org
Wed, 20 Mar 2002 12:03:21 -0500
Update of /cvs-repository/Packages/JobBoardEx
In directory cvs.zope.org:/tmp/cvs-serv16062
Modified Files:
Job.py
Log Message:
Update the Job implementation to match the IJob interface.
=== Packages/JobBoardEx/Job.py 1.2 => 1.3 ===
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"
- return self.submitter
-
- def getSummary(self):
- "Gets the one-line summary of the job"
- return self.summary
-
- def getDescription(self):
- "Gets the multiline description of the job"
- return self.description
-
- def getContactURL(self):
- "Gets the URL where the job seeker can go"
- return self.contactURL
-
- def getContactEmail(self):
- "Gets the email address the job seeker may send to"
- return self.contactEmail
-
- def getState(self):
- "Gets the JobState object describing the current state of this listing"
- return self.jobState
+ self.state = JobState.PendingApproval
def approve(self):
- "Moves the job state to approved"
- self.jobState = JobState.Approved
+ """Moves the job state to approved"""
+ self.state = JobState.Approved