aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command/open.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/command/open.py')
-rw-r--r--libbe/command/open.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/libbe/command/open.py b/libbe/command/open.py
index 0c6bf05..a6fe48d 100644
--- a/libbe/command/open.py
+++ b/libbe/command/open.py
@@ -1,4 +1,5 @@
# Copyright (C) 2005-2009 Aaron Bentley and Panometrics, Inc.
+# Gianluca Montecchi <gian@grys.it>
# Marien Zwart <marienz@gentoo.org>
# Thomas Gerigk <tgerigk@gmx.de>
# W. Trevor King <wking@drexel.edu>
@@ -20,7 +21,8 @@
from libbe import cmdutil, bugdir
__desc__ = __doc__
-def execute(args, manipulate_encodings=True):
+def execute(args, manipulate_encodings=True, restrict_file_access=False,
+ dir="."):
"""
>>> import os
>>> bd = bugdir.SimpleBugDir()
@@ -42,8 +44,9 @@ def execute(args, manipulate_encodings=True):
if len(args) > 1:
raise cmdutil.UsageError, "Too many arguments."
bd = bugdir.BugDir(from_disk=True,
- manipulate_encodings=manipulate_encodings)
- bug = cmdutil.bug_from_shortname(bd, args[0])
+ manipulate_encodings=manipulate_encodings,
+ root=dir)
+ bug = cmdutil.bug_from_id(bd, args[0])
bug.status = "open"
def get_parser():