summaryrefslogtreecommitdiff
path: root/database.py
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2008-11-11 11:11:04 -0700
committerJonathan Corbet <corbet@lwn.net>2008-11-11 11:11:04 -0700
commit9a2ba8a4f5e995011e4156dc340e6f8719472234 (patch)
tree127cd60f0fd1b54fb664a6a50697a7c00fd80cc2 /database.py
parentaacbb5f464aff6d86d839f52f6710b3d8d252b41 (diff)
Tested-by / Reported-by credits and more
Add tracking of tested-by, reported-by, and reviewed-by. For the first two, we also track who is *giving* those credits. While I was in the neighborhood I also: - Started turning the "patch" class into something more than a bare container; this work has just begin. - Moved the report-writing code into its own file (reports.py)
Diffstat (limited to 'database.py')
-rw-r--r--database.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/database.py b/database.py
index 95334f7..dbada8a 100644
--- a/database.py
+++ b/database.py
@@ -21,6 +21,10 @@ class Hacker:
self.added = self.removed = 0
self.patches = [ ]
self.signoffs = [ ]
+ self.reviews = [ ]
+ self.tested = [ ]
+ self.reports = [ ]
+ self.testcred = self.repcred = 0
def addemail (self, email, elist):
self.email.append (email)
@@ -41,8 +45,22 @@ class Hacker:
self.removed += patch.removed
self.patches.append (patch)
+ #
+ # There's got to be a better way.
+ #
def addsob (self, patch):
self.signoffs.append (patch)
+ def addreview (self, patch):
+ self.reviews.append (patch)
+ def addtested (self, patch):
+ self.tested.append (patch)
+ def addreport (self, patch):
+ self.reports.append (patch)
+
+ def reportcredit (self, patch):
+ self.repcred += 1
+ def testcredit (self, patch):
+ self.testcred += 1
HackersByName = { }
HackersByEmail = { }