[Zope-CVS] CVS: Packages/JobBoardEx - JobList.py:1.15

Guido van Rossum guido@python.org
Mon, 17 Jun 2002 10:12:53 -0400


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

Modified Files:
	JobList.py 
Log Message:
Make self.id the last job id instead of the next.  That way, the first
job gets id 1, which somehow looks better.


=== Packages/JobBoardEx/JobList.py 1.14 => 1.15 ===
 
     def add(self, job):
-        jobid = self.id
         self.id += 1
+        jobid = self.id
         self.jobs[jobid] = job
         # stringified for parity with query
         # this can return an int when query can also return an int