[Zope-CVS] CVS: Packages/JobBoardEx - JobListView.py:1.2

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


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

Modified Files:
	JobListView.py 
Log Message:
Add getApprovedJobs() method to be called by TAL.





=== Packages/JobBoardEx/JobListView.py 1.1 => 1.2 ===
 
     def __init__(self, context):
-        self.__context = context
+        self.context = context
 
     def getContext(self):
-        return self.__context
+        return self.context
 
     __used_for__ = IJobList
 
-    index = PageTemplateFile("summary.pt", globals())
+    def getApprovedJobs(self):
+        return self.context.query("approved")
 
-    
+    index = PageTemplateFile("summary.pt", globals())