aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/close.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-11-21 15:06:10 -0500
committerW. Trevor King <wking@drexel.edu>2009-11-21 15:06:10 -0500
commitf3de7e1a6d07b5488fd3c9e01caba53216e612d2 (patch)
tree9ad63d3c5e960271eac24b13e94df741dca74f43 /becommands/close.py
parent64cb5e5ec672cd357bc66a8480465e531db25f52 (diff)
parent614d4e40e148520ac511cbe0606bcbdcf24c8a08 (diff)
downloadbugseverywhere-f3de7e1a6d07b5488fd3c9e01caba53216e612d2.tar.gz
Merged mostly completed `be email-bugs'.
Highlights: * new be commands 'email-bugs' and 'import-xml' * standardized <be-xml> format for XML files. * new be-handle-mail interface '[be-bug:xml]' * restrict_file_access security patch * new subprocess handling submodule libbe.subproc * test.py adjusted to use an installed VCS for most tests. * assorted bugfixes Altered interfaces to the following be commands: * comment --xml tag gone, use import-xml. * show --xml xml format updated to <be-xml> format. Also adjusted be-mbox-to-xml and be-xml-to-mbox to handle new <be-xml> format and provide better handling of *.extra_strings.
Diffstat (limited to 'becommands/close.py')
-rw-r--r--becommands/close.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/becommands/close.py b/becommands/close.py
index 2cdcb59..a14cea8 100644
--- a/becommands/close.py
+++ b/becommands/close.py
@@ -21,7 +21,7 @@
from libbe import cmdutil, bugdir
__desc__ = __doc__
-def execute(args, manipulate_encodings=True):
+def execute(args, manipulate_encodings=True, restrict_file_access=False):
"""
>>> from libbe import bugdir
>>> import os
@@ -45,7 +45,7 @@ def execute(args, manipulate_encodings=True):
raise cmdutil.UsageError("Too many arguments.")
bd = bugdir.BugDir(from_disk=True,
manipulate_encodings=manipulate_encodings)
- bug = cmdutil.bug_from_shortname(bd, args[0])
+ bug = cmdutil.bug_from_id(bd, args[0])
bug.status = "closed"
bd.save()