Print full UUIDs during `new` and `comment`.
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spam@spamtrap.com>
Fri, 2 Mar 2012 12:28:34 +0000 (07:28 -0500)
committerW. Trevor King <wking@drexel.edu>
Fri, 2 Mar 2012 12:28:34 +0000 (07:28 -0500)
libbe/command/comment.py
libbe/command/new.py

index 9695ff63d5a97cb4a59b5eb31b2cba3869cd39fc..74521d14c6af46bd4b8a6139b19601b9c43636ef 100644 (file)
@@ -159,7 +159,7 @@ class Comment (libbe.command.Command):
         for key in ['alt-id', 'author']:
             if params[key] != None:
                 setattr(new, new._setting_name_to_attr_name(key), params[key])
-        print >> self.stdout, 'Created comment with ID %s' % new.id.user()
+        print >> self.stdout, 'Created comment with ID %s (%s)' % (new.id.user(), new.id.long_user())
         return 0
 
     def _long_help(self):
index e34d05c44b49eb9998f5b0ec340f60348578c3f8..a847132eac14e9a4652f714cb9bc69d0076d4fe3 100644 (file)
@@ -124,7 +124,7 @@ class New (libbe.command.Command):
             bug.severity = params['severity']
         bugdir.storage.writeable = True
         bug.save()
-        print >> self.stdout, 'Created bug with ID %s' % bug.id.user()
+        print >> self.stdout, 'Created bug with ID %s (%s)' % (bug.id.user(), bug.id.long_user())
         return 0
 
     def _long_help(self):