aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libbe/command/import_xml.py2
-rw-r--r--libbe/command/list.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/libbe/command/import_xml.py b/libbe/command/import_xml.py
index 598ecb8..287d8b7 100644
--- a/libbe/command/import_xml.py
+++ b/libbe/command/import_xml.py
@@ -115,7 +115,7 @@ class Import_XML (libbe.command.Command):
if params['xml-file'] == '-':
xml = self.stdin.read().encode(self.stdin.encoding)
else:
- self._check_restricted_access(storage, params['xml-file'])
+ self._check_restricted_access(bugdir.storage, params['xml-file'])
xml = libbe.util.encoding.get_file_contents(
params['xml-file'])
diff --git a/libbe/command/list.py b/libbe/command/list.py
index d0acf90..73c60a9 100644
--- a/libbe/command/list.py
+++ b/libbe/command/list.py
@@ -154,7 +154,7 @@ class List (libbe.command.Command):
writeable = bugdir.storage.writeable
bugdir.storage.writeable = False
cmp_list, status, severity, assigned, extra_strings_regexps = \
- self._parse_params(params)
+ self._parse_params(bugdir, params)
filter = Filter(status, severity, assigned,
extra_strings_regexps=extra_strings_regexps)
bugs = [bugdir.bug_from_uuid(uuid) for uuid in bugdir.uuids()]
@@ -175,7 +175,7 @@ class List (libbe.command.Command):
bugdir.storage.writeable = writeable
return 0
- def _parse_params(self, params):
+ def _parse_params(self, bugdir, params):
cmp_list = []
if params['sort'] != None:
for cmp in params['sort'].sort_by.split(','):
@@ -211,7 +211,7 @@ class List (libbe.command.Command):
assigned = 'all'
else:
assigned = libbe.command.util.select_values(
- params['assigned'], libbe.command.util.assignees())
+ params['assigned'], libbe.command.util.assignees(bugdir))
for i in range(len(assigned)):
if assigned[i] == '-':
assigned[i] = params['user-id']