diff options
author | Aaron Bentley <aaron.bentley@utoronto.ca> | 2006-01-25 20:37:55 -0500 |
---|---|---|
committer | Aaron Bentley <aaron.bentley@utoronto.ca> | 2006-01-25 20:37:55 -0500 |
commit | dcc900ada8cc7ccf99d54ed9ed55c74f4b9c2a29 (patch) | |
tree | 1fa198d35b0e493245c6213bd42261b06eedeb42 /libbe | |
parent | 81d4a023b5773516df0f0dfbb0c9e26656d0d32a (diff) | |
parent | 4eb3e0d84a15aabbf723fe9b3696dfc81efd9bb0 (diff) | |
download | bugseverywhere-dcc900ada8cc7ccf99d54ed9ed55c74f4b9c2a29.tar.gz |
Merge my changes
Diffstat (limited to 'libbe')
-rw-r--r-- | libbe/bugdir.py | 6 |
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) |