changeset 4157:d96a4c8c55eb gsoc-2009

I think Ive finally got it
author Pygi <pygi@users.sourceforge.net>
date Thu, 02 Jul 2009 11:49:03 +0000
parents 58181c04884e
children e1870046daff
files scripts/notify-roundup/detectors/svnauditor.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/notify-roundup/detectors/svnauditor.py	Thu Jul 02 11:33:12 2009 +0000
+++ b/scripts/notify-roundup/detectors/svnauditor.py	Thu Jul 02 11:49:03 2009 +0000
@@ -15,6 +15,7 @@
 import ConfigParser
 
 svn_msg = re.compile('^(revision|repos|host|date|summary)=(.*)$')
+ini_path = '/path/to/notify-roundup.ini'
 
 def parse_message(db, cl, nodeid, newvalues):
     '''Parse an incoming message for Subversion information.
@@ -65,8 +66,9 @@
 def init(db):
     db.msg.audit('create', parse_message)
     cfg = ConfigParser.ConfigParser()
-    repos.klass = cfg.get('main', 'item-class')
-    klass = db.getclass(repos.klass)
+    cfg.read(ini_path)
+    fetch_klass = cfg.get('main', 'item-class')
+    klass = db.getclass(fetch_klass)
     klass.audit('set', undo_title)
 
 #

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