[Zope-CVS] CVS: Packages/JobBoardEx - JobList.py:1.4

Jeremy Hylton jeremy@zope.com
Tue, 19 Mar 2002 17:55:15 -0500


Update of /cvs-repository/Packages/JobBoardEx
In directory cvs.zope.org:/tmp/cvs-serv31253

Modified Files:
	JobList.py 
Log Message:
Add linear search implementation of lookup()


=== Packages/JobBoardEx/JobList.py 1.3 => 1.4 ===
                 if job.getState() == state]
 
+    def lookup(self, jobid):
+        for job in self.jobs:
+            if job.getId() == jobid:
+                return job