aboutsummaryrefslogtreecommitdiffstats
path: root/libbe
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2006-01-25 17:00:13 -0500
committerAaron Bentley <abentley@panoramicfeedback.com>2006-01-25 17:00:13 -0500
commit427e95ba1074f3d2f48c1cef32e454d6bcd5466a (patch)
treea83e79634e87af4092f549b376ecab6ed0463563 /libbe
parentbe6a59a9ffb427567d911c285cf2c59eec489247 (diff)
downloadbugseverywhere-427e95ba1074f3d2f48c1cef32e454d6bcd5466a.tar.gz
Added more possible bug statuses
Diffstat (limited to 'libbe')
-rw-r--r--libbe/bugdir.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/libbe/bugdir.py b/libbe/bugdir.py
index 9fee680..d30bc75 100644
--- a/libbe/bugdir.py
+++ b/libbe/bugdir.py
@@ -210,13 +210,15 @@ def checked_property(name, valid):
return property(getter, setter)
severity_levels = ("wishlist", "minor", "serious", "critical", "fatal")
+active_status = ("open", "in-progress", "waiting", "new", "verified")
+inactive_status = ("closed", "disabled", "fixed", "wontfix", "waiting")
severity_value = {}
for i in range(len(severity_levels)):
severity_value[severity_levels[i]] = i
class Bug(object):
- status = checked_property("status", (None, "open", "closed", "in-progress"))
+ status = checked_property("status", (None,)+active_status+inactive_status)
severity = checked_property("severity", (None, "wishlist", "minor",
"serious", "critical", "fatal"))
@@ -244,7 +246,7 @@ class Bug(object):
return os.path.join(self.path, self.uuid, file)
def _get_active(self):
- return self.status in ("open", "in-progress")
+ return self.status in active_status
active = property(_get_active)