[Zope-CVS] CVS: Packages/JobBoardEx - JobListView.py:1.3
Jeremy Hylton
jeremy@zope.com
Wed, 20 Mar 2002 12:04:25 -0500
Update of /cvs-repository/Packages/JobBoardEx
In directory cvs.zope.org:/tmp/cvs-serv16215
Modified Files:
JobListView.py
Log Message:
Rename self.context to self.joblist, since joblist is the "context".
=== Packages/JobBoardEx/JobListView.py 1.2 => 1.3 ===
class JobListView(AttributePublisher):
- def __init__(self, context):
- self.context = context
+ def __init__(self, joblist):
+ self.joblist = joblist
def getContext(self):
- return self.context
+ return self.joblist
__used_for__ = IJobList
def getApprovedJobs(self):
- return self.context.query("approved")
+ return self.joblist.query("approved")
index = PageTemplateFile("summary.pt", globals())