[Zope3-checkins] CVS: Products3/bugtracker/browser - bug.py:1.5 tracker.css:1.2 tracker.py:1.2

Stephan Richter srichter@cosmos.phy.tufts.edu
Sat, 26 Jul 2003 13:52:52 -0400


Update of /cvs-repository/Products3/bugtracker/browser
In directory cvs.zope.org:/tmp/cvs-serv22781/browser

Modified Files:
	bug.py tracker.css tracker.py 
Log Message:
There was a bug in computing the next bug id that prevented the tracker to
exceed id 10. Fixed now.


=== Products3/bugtracker/browser/bug.py 1.4 => 1.5 ===
--- Products3/bugtracker/browser/bug.py:1.4	Sat Jul 26 13:11:45 2003
+++ Products3/bugtracker/browser/bug.py	Sat Jul 26 13:52:47 2003
@@ -51,10 +51,11 @@
 
         if IComment.isImplementedBy(content):
             names = filter(lambda n: n.startswith('comment'), container.keys())
+            int_names = map(lambda n: int(n), names)
             if not container.keys():
                 self.contentName = 'comment1'
             else:
-                self.contentName = 'comment' + str(int(max(names)[7:])+1)
+                self.contentName = 'comment' + str(max(int_names)+1)
         else:
             # we have a file or an image
             self.contentName = self.request['field.data'].filename


=== Products3/bugtracker/browser/tracker.css 1.1 => 1.2 ===
--- Products3/bugtracker/browser/tracker.css:1.1	Thu Jul 24 14:08:10 2003
+++ Products3/bugtracker/browser/tracker.css	Sat Jul 26 13:52:47 2003
@@ -74,7 +74,6 @@
 }
 
 #description {
-  font-size: 120%;
   padding: 0.6em;
   margin: 0.6em;
   background-color: #F8F8F8;


=== Products3/bugtracker/browser/tracker.py 1.1 => 1.2 ===
--- Products3/bugtracker/browser/tracker.py:1.1	Thu Jul 24 14:08:10 2003
+++ Products3/bugtracker/browser/tracker.py	Sat Jul 26 13:52:47 2003
@@ -35,7 +35,8 @@
         if not container.keys():
             self.contentName = '1'
         else:
-            self.contentName = str(int(max(container.keys()))+1)
+            int_ids = map(lambda id: int(id), container.keys())
+            self.contentName = str(max(int_ids)+1)
         name = container.setObject(self.contentName, content)
         return container[name]