mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Stylistic updates.
This commit is contained in:
parent
a10900da83
commit
881a2e000d
@ -56,16 +56,19 @@ import callbacks
|
||||
import structures
|
||||
import configurable
|
||||
|
||||
statusKeys = ['unconfirmed', 'new', 'assigned', 'reopened', 'resolved', \
|
||||
'verified', 'closed']
|
||||
resolutionKeys = ['fixed', 'invalid', 'worksforme', 'needinfo', \
|
||||
'test-request', 'wontfix', 'cantfix', 'moved', 'duplicate', 'remind', 'later']
|
||||
resolutionKeys += ['notabug', 'notgnome', 'incomplete', 'gnome1.x', 'moved' ]
|
||||
priorityKeys = ['p1', 'p2', 'p3', 'p4', 'p5']
|
||||
priorityKeys += ['Low', 'Normal', 'High', 'Immediate', 'Urgent']
|
||||
severityKeys = ['enhancement', 'trivial', 'minor', 'normal', 'major', \
|
||||
'critical', 'blocker']
|
||||
statusKeys = ['unconfirmed', 'new', 'assigned', 'reopened', 'resolved',
|
||||
'verified', 'closed']
|
||||
resolutionKeys = ['fixed', 'invalid', 'worksforme', 'needinfo',
|
||||
'test-request', 'wontfix', 'cantfix', 'moved', 'duplicate',
|
||||
'remind', 'later', 'notabug', 'notgnome', 'incomplete',
|
||||
'gnome1.x', 'moved']
|
||||
priorityKeys = ['p1', 'p2', 'p3', 'p4', 'p5', 'Low', 'Normal', 'High',
|
||||
'Immediate', 'Urgent']
|
||||
severityKeys = ['enhancement', 'trivial', 'minor', 'normal', 'major',
|
||||
'critical', 'blocker']
|
||||
|
||||
dbfilename = os.path.join(conf.dataDir, 'Bugzilla.db')
|
||||
|
||||
def makeDb(filename):
|
||||
if os.path.exists(filename):
|
||||
d = structures.PersistentDictionary(filename)
|
||||
@ -79,10 +82,12 @@ def makeDb(filename):
|
||||
d.flush()
|
||||
return d
|
||||
|
||||
|
||||
class BugzillaError(Exception):
|
||||
"""A bugzilla error"""
|
||||
pass
|
||||
|
||||
|
||||
def configure(onStart, afterConnect, advanced):
|
||||
from questions import expect, anything, yn
|
||||
onStart.append('load Bugzilla')
|
||||
@ -95,6 +100,7 @@ def configure(onStart, afterConnect, advanced):
|
||||
|
||||
replyNoBugzilla = 'I don\'t have a bugzilla %r'
|
||||
|
||||
|
||||
class Bugzilla(callbacks.PrivmsgCommandAndRegexp, configurable.Mixin):
|
||||
"""Show a link to a bug report with a brief description"""
|
||||
threaded = True
|
||||
@ -130,9 +136,8 @@ class Bugzilla(callbacks.PrivmsgCommandAndRegexp, configurable.Mixin):
|
||||
query.append('ctype=csv')
|
||||
return query
|
||||
def die(self):
|
||||
configurable.Mixin.die(self)
|
||||
self.db.close()
|
||||
del self.db
|
||||
configurable.Mixin.die(self)
|
||||
|
||||
def add(self, irc, msg, args):
|
||||
"""<name> <url> <description>
|
||||
|
Loading…
Reference in New Issue
Block a user