From 4db1a045a0606bead191a563abc54dfa8352efe0 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 29 Aug 2012 23:26:17 -0400 Subject: Rewrite commands to use bugdirs instead of a single bugdir. The bulk of the work is in regard to XML, with new BugDir.xml and .from_xml methods to support the new entity. I also split the guts import_xml's ._run method into sub-methods to make the import logic more obvious. --- libbe/command/assign.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libbe/command/assign.py') diff --git a/libbe/command/assign.py b/libbe/command/assign.py index c710662..f9658e5 100644 --- a/libbe/command/assign.py +++ b/libbe/command/assign.py @@ -76,10 +76,11 @@ class Assign (libbe.command.Command): def _run(self, **params): assigned = parse_assigned(self, params['assigned']) - bugdir = self._get_bugdir() + bugdirs = self._get_bugdirs() for bug_id in params['bug-id']: - bug,dummy_comment = \ - libbe.command.util.bug_comment_from_user_id(bugdir, bug_id) + bugdir,bug,comment = ( + libbe.command.util.bugdir_bug_comment_from_user_id( + bugdirs, bug_id)) if bug.assigned != assigned: bug.assigned = assigned if bug.status == 'open': -- cgit