aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command/assign.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-12-14 07:37:51 -0500
committerW. Trevor King <wking@drexel.edu>2009-12-14 07:37:51 -0500
commit19fe0817ba7c2cd04caea3adfa82d4490288a548 (patch)
tree6291cac9b9861f1009d63a419c3e79879f356bc8 /libbe/command/assign.py
parent2f0ceedba5b6619faf476cd1aa67e826e91d5c7c (diff)
downloadbugseverywhere-19fe0817ba7c2cd04caea3adfa82d4490288a548.tar.gz
Transitioned comment to Command format
Diffstat (limited to 'libbe/command/assign.py')
-rw-r--r--libbe/command/assign.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/libbe/command/assign.py b/libbe/command/assign.py
index 6d1233c..f5d2df4 100644
--- a/libbe/command/assign.py
+++ b/libbe/command/assign.py
@@ -75,15 +75,8 @@ class Assign (libbe.command.Command):
elif assignee == '-':
assignee = params['user-id']
for bug_id in params['bug-id']:
- p = libbe.util.id.parse_user(bugdir, bug_id)
- if p['type'] != 'bug':
- raise libbe.command.UserError(
- '%s is a %s id, not a bug id' % (bug_id, p['type']))
- if p['bugdir'] != bugdir.uuid:
- raise libbe.command.UserError(
- "%s doesn't belong to this bugdir (%s)"
- % (bug_id, bugdir.uuid))
- bug = bugdir.bug_from_uuid(p['bug'])
+ bug,dummy_comment = \
+ libbe.command.util.bug_comment_from_user_id(bugdir, bug_id)
if bug.assigned != assignee:
bug.assigned = assignee