From: W. Trevor King Date: Sat, 15 Nov 2008 01:34:57 +0000 (-0500) Subject: Fixed a few more Comment.date->time calls. X-Git-Tag: 1.0.0~164 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=8895be5592b93780bcedf16a40d522a86f891fa8;p=be.git Fixed a few more Comment.date->time calls. Bug keeps timestamps in Bug.time, so working towards consitency for Comment. --- diff --git a/becommands/comment.py b/becommands/comment.py index d214a19..50fdc23 100644 --- a/becommands/comment.py +++ b/becommands/comment.py @@ -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 diff --git a/libbe/bug.py b/libbe/bug.py index 19297bb..b0ebca4 100644 --- a/libbe/bug.py +++ b/libbe/bug.py @@ -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