aboutsummaryrefslogtreecommitdiffstats
path: root/becommands
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2008-11-19 07:57:57 -0500
committerW. Trevor King <wking@drexel.edu>2008-11-19 07:57:57 -0500
commit35b7aaa33c1826d7b39dc8a0f32100f5c0c5788d (patch)
tree66d70e054b4997ff1debb124e07b872df6f7afe3 /becommands
parent4c4f80d65e778544554ff0c9faebcf9ccff43614 (diff)
downloadbugseverywhere-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 'becommands')
-rw-r--r--becommands/new.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/becommands/new.py b/becommands/new.py
index d09d048..0f9928a 100644
--- a/becommands/new.py
+++ b/becommands/new.py
@@ -16,7 +16,6 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
"""Create a new bug"""
from libbe import cmdutil, names
-from libbe.bug import new_bug
__desc__ = __doc__
def execute(args):
@@ -43,7 +42,7 @@ def execute(args):
if len(args) != 1:
raise cmdutil.UserError("Please supply a summary message")
dir = cmdutil.bug_tree()
- bug = new_bug(dir)
+ bug = dir.new_bug()
bug.summary = args[0]
bug.save()
bugs = (dir.list())