aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/inprogress.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2008-11-14 19:25:44 -0500
committerW. Trevor King <wking@drexel.edu>2008-11-14 19:25:44 -0500
commit87e356c9208e955fcf6c20c0b271db87bdd48014 (patch)
tree8a9ef32cd7bd9798077824fb26e73c1358599d6a /becommands/inprogress.py
parent91b284cde8c4443cf0997798f4f847ce95409cd3 (diff)
downloadbugseverywhere-87e356c9208e955fcf6c20c0b271db87bdd48014.tar.gz
Split Bug and Comment class out to bug.py from bugdir.py
Comment should probably have it's own file too... I also tried to clean up the interface for setting status and severity. Both attributes involve selecting strings from predefined lists. The lists of valid strings (and descriptions of each string) are now defined in bug.py. The bug.py lists are then used to generate appropriate help strings in becommands/status.py and severity.py. This should make it easier to keep the help strings in synch with the validation information. The original status strings weren't documented, and I didn't know what they all ment, so I elimanted some of them. 'in-progress' and 'disabled' are no longer with us. Of course, it would be simple to add them back in if people don't agree with me on that. Due to the loss of 'disabled' I had to change the status of two bugs (11e and 597) to 'closed'. I removed becommands/inprogress.py as well. It's functionality was replaced by the more general status.py command, which mimics the severity.py command.
Diffstat (limited to 'becommands/inprogress.py')
-rw-r--r--becommands/inprogress.py48
1 files changed, 0 insertions, 48 deletions
diff --git a/becommands/inprogress.py b/becommands/inprogress.py
deleted file mode 100644
index 05da971..0000000
--- a/becommands/inprogress.py
+++ /dev/null
@@ -1,48 +0,0 @@
-# Copyright (C) 2005 Aaron Bentley and Panometrics, Inc.
-# <abentley@panoramicfeedback.com>
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-"""Bug fixing in progress"""
-from libbe import cmdutil
-def execute(args):
- """
- >>> from libbe import tests
- >>> import os
- >>> dir = tests.simple_bug_dir()
- >>> os.chdir(dir.dir)
- >>> dir.get_bug("a").status
- u'open'
- >>> execute(["a"])
- >>> dir.get_bug("a").status
- u'in-progress'
- >>> tests.clean_up()
- """
- options, args = get_parser().parse_args(args)
- if len(args) !=1:
- raise cmdutil.UserError("Please specify a bug id.")
- bug = cmdutil.get_bug(args[0])
- bug.status = "in-progress"
- bug.save()
-
-def get_parser():
- parser = cmdutil.CmdOptionParser("be inprogress BUG-ID")
- return parser
-
-longhelp="""
-Mark a bug as 'in-progress'.
-"""
-
-def help():
- return get_parser().help_str() + longhelp