[Zope-CVS] CVS: Packages/JobBoardEx - JobList.py:1.6
Jeremy Hylton
jeremy@zope.com
Wed, 20 Mar 2002 11:46:18 -0500
Update of /cvs-repository/Packages/JobBoardEx
In directory cvs.zope.org:/tmp/cvs-serv11246
Modified Files:
JobList.py
Log Message:
Change from accessor methods to attributes.
=== Packages/JobBoardEx/JobList.py 1.5 => 1.6 ===
def query(self, state):
return [job for job in self.jobs
- if job.getState() == state]
+ if job.state == state]
def lookup(self, jobid):
for job in self.jobs:
- if job.getId() == jobid:
+ if job.id == jobid:
return job
raise KeyError, jobid