diff options
author | W. Trevor King <wking@drexel.edu> | 2010-01-23 11:10:45 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2010-01-23 11:10:45 -0500 |
commit | 3b0f1436ce39ff7cfc2782ea4aa327d50736805d (patch) | |
tree | a2924124daad5042833784900462e13df975e29c | |
parent | 14a4615880dacca1b96585fd9620d96a8cc46873 (diff) | |
download | bugseverywhere-3b0f1436ce39ff7cfc2782ea4aa327d50736805d.tar.gz |
Fix typos in untested parts of List and Import_XML for test_usage.py
-rw-r--r-- | libbe/command/import_xml.py | 2 | ||||
-rw-r--r-- | libbe/command/list.py | 6 |
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'] |