aboutsummaryrefslogtreecommitdiffstats
path: root/becommands
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2008-12-02 10:39:52 -0500
committerW. Trevor King <wking@drexel.edu>2008-12-02 10:39:52 -0500
commit742ecad12d831ed296d8ae00fe8e130b0ecd54d0 (patch)
treebd722b6f8cf56d5b5c6dad7bdfc309cbaad86caa /becommands
parent6a94d050bbd72b3812fd7cb05445a66484103214 (diff)
downloadbugseverywhere-742ecad12d831ed296d8ae00fe8e130b0ecd54d0.tar.gz
Bug moved to the settings_object system.
Diffstat (limited to 'becommands')
-rw-r--r--becommands/assign.py6
-rw-r--r--becommands/new.py4
-rw-r--r--becommands/target.py4
3 files changed, 7 insertions, 7 deletions
diff --git a/becommands/assign.py b/becommands/assign.py
index a41bbae..2f9ff21 100644
--- a/becommands/assign.py
+++ b/becommands/assign.py
@@ -15,7 +15,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
"""Assign an individual or group to fix a bug"""
-from libbe import cmdutil, bugdir
+from libbe import cmdutil, bugdir, settings_object
__desc__ = __doc__
def execute(args, test=False):
@@ -23,7 +23,7 @@ def execute(args, test=False):
>>> import os
>>> bd = bugdir.simple_bug_dir()
>>> os.chdir(bd.root)
- >>> bd.bug_from_shortname("a").assigned is None
+ >>> bd.bug_from_shortname("a").assigned is settings_object.EMPTY
True
>>> execute(["a"], test=True)
@@ -38,7 +38,7 @@ def execute(args, test=False):
>>> execute(["a","none"], test=True)
>>> bd._clear_bugs()
- >>> bd.bug_from_shortname("a").assigned is None
+ >>> bd.bug_from_shortname("a").assigned is settings_object.EMPTY
True
"""
parser = get_parser()
diff --git a/becommands/new.py b/becommands/new.py
index 58fabbc..69ff5b8 100644
--- a/becommands/new.py
+++ b/becommands/new.py
@@ -15,7 +15,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
"""Create a new bug"""
-from libbe import cmdutil, bugdir
+from libbe import cmdutil, bugdir, settings_object
__desc__ = __doc__
def execute(args, test=False):
@@ -35,7 +35,7 @@ def execute(args, test=False):
True
>>> bug.severity
u'minor'
- >>> bug.target == None
+ >>> bug.target == settings_object.EMPTY
True
"""
parser = get_parser()
diff --git a/becommands/target.py b/becommands/target.py
index d14ff06..c83ffa7 100644
--- a/becommands/target.py
+++ b/becommands/target.py
@@ -15,7 +15,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
"""Show or change a bug's target for fixing"""
-from libbe import cmdutil, bugdir
+from libbe import cmdutil, bugdir, settings_object
__desc__ = __doc__
def execute(args, test=False):
@@ -41,7 +41,7 @@ def execute(args, test=False):
bd = bugdir.BugDir(from_disk=True, manipulate_encodings=not test)
bug = bd.bug_from_shortname(args[0])
if len(args) == 1:
- if bug.target is None:
+ if bug.target is None or bug.target is settings_object.EMPTY:
print "No target assigned."
else:
print bug.target