Fixed a few more Comment.date->time calls.
authorW. Trevor King <wking@drexel.edu>
Sat, 15 Nov 2008 01:34:57 +0000 (20:34 -0500)
committerW. Trevor King <wking@drexel.edu>
Sat, 15 Nov 2008 01:34:57 +0000 (20:34 -0500)
Bug keeps timestamps in Bug.time, so working towards consitency for
Comment.

becommands/comment.py
libbe/bug.py

index d214a1977fb05122dc66dbf3560338d650d6e107..50fdc23d4d1cebbb6166aefa752d65a4e3aac898 100644 (file)
@@ -30,7 +30,7 @@ def execute(args):
     u'This is a comment about a\\n'
     >>> comment.From == names.creator()
     True
-    >>> comment.date <= int(time.time())
+    >>> comment.time <= int(time.time())
     True
     >>> comment.in_reply_to is None
     True
index 19297bb6a9a38b13839fdeaf1d0f5cc132ab642f..b0ebca4265c3796f16931e7e2617ab25011afb1b 100644 (file)
@@ -182,7 +182,7 @@ def new_bug(dir, uuid=None):
 def new_comment(bug, body=None):
     comm = bug.new_comment()
     comm.From = names.creator()
-    comm.date = time.time()
+    comm.time = time.time()
     comm.body = body
     return comm