Commits

Anonymous committed 7c5dd7a Merge

branch merge + add NEWS for attach command

Comments (0)

Files changed (2)

 Changes in @NEW@:
     * Add filter and issue commands
+    * Add "attach" command
     * Fix comment display output - comments were being printed twice.
+    * Format time/date for comment display.
 Changes in 0.1:
     * Initial release

jiranemo/display.py

 # full details.
 #
 
+import time
 import textwrap
 
 def displayProjects(client, detail=False):
 def displayComments(client, key, comments, detail=False):
     print "Comments for %s:" % key
     for idx, comment in enumerate(comments):
+        t = [ int(x) for x in comment.timePerformed ] + [ 1, 1, 1 ]
+        format = '%b %d, %Y %I:%M %p'
         print "%s said at %s:" % (comment.username,
-                                      comment.timePerformed)
+                                  time.strftime(format, t))
         if comment.level:
             print "   (Security level %s)" % (comment.level,)
         body = textwrap.wrap(comment.body, 70, initial_indent=4 * ' ',