[Zope-CVS] CVS: Packages/JobBoardEx - JobList.py:1.16
Guido van Rossum
guido@python.org
Mon, 17 Jun 2002 10:18:14 -0400
Update of /cvs-repository/Packages/JobBoardEx
In directory cvs.zope.org:/tmp/cvs-serv19070
Modified Files:
JobList.py
Log Message:
Properly sort job ids returned by query() in numerical order.
=== Packages/JobBoardEx/JobList.py 1.15 => 1.16 ===
# but it exposes a bug in PageTemplates
- ids = [str(jobid)
- for jobid,job in self.jobs.items()
+ ids = [jobid
+ for jobid, job in self.jobs.items()
if job.state == state]
ids.sort()
- return ids
+ return map(str, ids)
def __getitem__(self, jobid):
try: