diff options
author | W. Trevor King <wking@drexel.edu> | 2008-11-19 07:57:57 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2008-11-19 07:57:57 -0500 |
commit | 35b7aaa33c1826d7b39dc8a0f32100f5c0c5788d (patch) | |
tree | 66d70e054b4997ff1debb124e07b872df6f7afe3 /libbe/bugdir.py | |
parent | 4c4f80d65e778544554ff0c9faebcf9ccff43614 (diff) | |
download | bugseverywhere-35b7aaa33c1826d7b39dc8a0f32100f5c0c5788d.tar.gz |
Moved bug.new_bug code into bugdir.BugDir.new_bug.
Also removed explicit comparisons from beweb/controllers.py, since
they are now built into the Bug.__cmp__ method.
Diffstat (limited to 'libbe/bugdir.py')
-rw-r--r-- | libbe/bugdir.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libbe/bugdir.py b/libbe/bugdir.py index cf8cba5..41f0fec 100644 --- a/libbe/bugdir.py +++ b/libbe/bugdir.py @@ -195,6 +195,10 @@ class BugDir: self.rcs.mkdir(path) bug = Bug(self.bugs_path, None, self.rcs, self) bug.uuid = uuid + bug.creator = self.rcs.get_user_id() + bug.severity = "minor" + bug.status = "open" + bug.time = time.time() return bug class InvalidValue(ValueError): |