[Zope-CVS] CVS: Packages/JobBoardEx - JobListView.py:1.13
Guido van Rossum
guido@python.org
Fri, 22 Mar 2002 21:16:24 -0500
Update of /cvs-repository/Packages/JobBoardEx
In directory cvs.zope.org:/tmp/cvs-serv2031
Modified Files:
JobListView.py
Log Message:
Remove bogus assert. Add comment explaining a bit of trickiness.
=== Packages/JobBoardEx/JobListView.py 1.12 => 1.13 ===
if job is not None:
# Return a view on the job.
- # XXX How to pass the joblist along?
view = getRequestView(job, view, request)
+ # Pass the joblist along in an attribute of the view
view.joblist = self.joblist
return view
# It wasn't a jobid. Return a view.
- assert name != ""
return getRequestView(self.joblist, name, request)
def jobFromRequest(self, request):