[Zope-CVS] CVS: Packages/JobBoardEx - IJobList.py:1.1 JobList.py:1.3

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


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

Modified Files:
	JobList.py 
Added Files:
	IJobList.py 
Log Message:
Add IJobList interface




=== Added File Packages/JobBoardEx/IJobList.py ===
from Interface import Interface

class IJobList(Interface):

    def query(state):
        """Returns a list of Job objects"""


=== Packages/JobBoardEx/JobList.py 1.2 => 1.3 ===
 
+from ZopeProducts.JobBoardEx.IJobList import IJobList
+
 class JobList(Persistent):
 
+    __implements__ = IJobList
+
     def __init__(self):
         self.jobs = PersistentList()
 
@@ -14,7 +18,6 @@
     def query(self, state):
         return [job for job in self.jobs
                 if job.getState() == state]
-