rev 3589 - debbugs-illa
Pierre Habouzit
madcoder at costa.debian.org
Tue Apr 18 16:49:48 UTC 2006
Author: madcoder
Date: 2006-04-18 16:49:47 +0000 (Tue, 18 Apr 2006)
New Revision: 3589
Added:
debbugs-illa/config.py
Modified:
debbugs-illa/bzlink.py
debbugs-illa/bzsync.py
Log:
put config away.
no more dirty imports of bzlink in bzsync
Modified: debbugs-illa/bzlink.py
===================================================================
--- debbugs-illa/bzlink.py 2006-04-18 16:43:38 UTC (rev 3588)
+++ debbugs-illa/bzlink.py 2006-04-18 16:49:47 UTC (rev 3589)
@@ -44,8 +44,10 @@
import sys, re, os, getopt
import email, mailbox, smtplib
from email.MIMEText import MIMEText
-import bts
+import bts, bz
+from config import Config
+
def usage(exitCode = 0):
print >> sys.stderr, __doc__.lstrip() % (sys.argv[0])
sys.exit(exitCode)
@@ -215,15 +217,6 @@
else:
return isMbox, file(args[0], "r")
-class Config:
- patterns = [ "http://bugs.kde.org/show_bug.cgi?id=%s",
- "http://bugs.kde.org/%s",
- "%s at bugs.kde.org" ]
-
- Ldap = 'ldap://bts2ldap.debian.net:10101'
- From = 'debian-qt-kde at lists.debian.org'
- User = 'debian-qt-kde at lists.debian.org'
-
if __name__ == "__main__":
BzMsg._debbugsUser = Config.User
btsi = bts.BtsInterface(Config.patterns, Config.Ldap)
Modified: debbugs-illa/bzsync.py
===================================================================
--- debbugs-illa/bzsync.py 2006-04-18 16:43:38 UTC (rev 3588)
+++ debbugs-illa/bzsync.py 2006-04-18 16:49:47 UTC (rev 3589)
@@ -39,9 +39,9 @@
import sys, re, os, email, smtplib
from email.MIMEText import MIMEText
-from bzlink import Config
import bz, bts
+from config import Config
bugurl = re.compile(r"^http://bugs.kde.org/(?:show_bug.cgi\?id=)?([0-9]*)$")
Added: debbugs-illa/config.py
===================================================================
--- debbugs-illa/config.py 2006-04-18 16:43:38 UTC (rev 3588)
+++ debbugs-illa/config.py 2006-04-18 16:49:47 UTC (rev 3589)
@@ -0,0 +1,40 @@
+#! /usr/bin/env python
+# vim:set encoding=utf-8:
+###############################################################################
+# Copyright:
+# © 2006 Pierre Habouzit <madcoder at debian.org>
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+# 3. Neither the name of the University nor the names of its contributors
+# may be used to endorse or promote products derived from this software
+# without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+# SUCH DAMAGE.
+###############################################################################
+
+
+class Config:
+ patterns = [ "http://bugs.kde.org/show_bug.cgi?id=%s",
+ "http://bugs.kde.org/%s",
+ "%s at bugs.kde.org" ]
+
+ Ldap = 'ldap://bts2ldap.debian.net:10101'
+ From = 'debian-qt-kde at lists.debian.org'
+ User = 'debian-qt-kde at lists.debian.org'
More information about the pkg-kde-commits
mailing list