diff scripts/notify-roundup/notify-roundup.py @ 4185:64f3d374f496 gsoc-2009

temporary hack
author Pygi <pygi@users.sourceforge.net>
date Tue, 07 Jul 2009 16:21:51 +0000
parents d08f7bf744f8
children 630263e92150
line wrap: on
line diff
--- a/scripts/notify-roundup/notify-roundup.py	Tue Jul 07 16:19:32 2009 +0000
+++ b/scripts/notify-roundup/notify-roundup.py	Tue Jul 07 16:21:51 2009 +0000
@@ -161,6 +161,7 @@
         logger.error('no repository %s in tracker'%repos.repos_dir)
         raise Failed
 
+    '''
     # log in as the appropriate user
     try:
         matches = db.user.stringFind(vcs_name=repos.author)
@@ -171,12 +172,13 @@
         userid = matches[0]
     else:
         try:
-            userid = db.user.lookup(repos.author)
-        #except KeyError:
-            #raise Failed, 'no Roundup user matching %s'%repos.author
-    #username = db.user.get(userid, 'username')
+        userid = db.user.lookup(repos.author)
+        except KeyError:
+            raise Failed, 'no Roundup user matching %s'%repos.author
+    username = db.user.get(userid, 'username')
+    '''
     username = "admin"
-    db.close()
+    #db.close()
 
     # tell Roundup
     tracker = roundup.instance.open(tracker_home)

Roundup Issue Tracker: http://roundup-tracker.org/