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/due.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libbe/command/due.py') diff --git a/libbe/command/due.py b/libbe/command/due.py index b026ed7..00ad742 100644 --- a/libbe/command/due.py +++ b/libbe/command/due.py @@ -61,9 +61,10 @@ class Due (libbe.command.Command): ]) def _run(self, **params): - bugdir = self._get_bugdir() - bug,dummy_comment = libbe.command.util.bug_comment_from_user_id( - bugdir, params['bug-id']) + bugdirs = self._get_bugdirs() + bugdir,bug,comment = ( + libbe.command.util.bugdir_bug_comment_from_user_id( + bugdirs, params['bug-id'])) if params['due'] == None: due_time = get_due(bug) if due_time is None: -- cgit