Fix typos in untested parts of List and Import_XML for test_usage.py
authorW. Trevor King <wking@drexel.edu>
Sat, 23 Jan 2010 16:10:45 +0000 (11:10 -0500)
committerW. Trevor King <wking@drexel.edu>
Sat, 23 Jan 2010 16:10:45 +0000 (11:10 -0500)
libbe/command/import_xml.py
libbe/command/list.py

index 598ecb8c708c71af01810b178ff5586ff93907c6..287d8b74a77bf8dbe228e3484304c9fc9414bd64 100644 (file)
@@ -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'])
 
index d0acf90f013f104959adb3d4c33d03c988442e0e..73c60a9c23a66ef6219d1ea61c4a6db4a3ba6043 100644 (file)
@@ -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']