aboutsummaryrefslogtreecommitdiffstats
path: root/becommands
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-07-25 07:26:19 -0400
committerW. Trevor King <wking@drexel.edu>2009-07-25 07:26:19 -0400
commit9afbe4e78f7a332401ec03008ff66faa5c11e297 (patch)
treef1bdf894bae6b619858a56de1496d28519e7c487 /becommands
parent987324916401466efd01a8aeefb22c59b5f5a766 (diff)
downloadbugseverywhere-9afbe4e78f7a332401ec03008ff66faa5c11e297.tar.gz
Renamed Comment.From and .time_string to .author and .date respectively.
Now they conform to the libbe.settings_object.setting_name_to_attr_name() standard. I fixed the references I found in becommands/comment.py interfaces/xml/be-mbox-to-xml interfaces/xml/be-xml-to-mbox but there may have been some references or files that slipped through.
Diffstat (limited to 'becommands')
-rw-r--r--becommands/comment.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/becommands/comment.py b/becommands/comment.py
index fc30a26..7bbee2c 100644
--- a/becommands/comment.py
+++ b/becommands/comment.py
@@ -38,7 +38,7 @@ def execute(args, manipulate_encodings=True):
>>> print comment.body
This is a comment about a
<BLANKLINE>
- >>> comment.From == bd.user_id
+ >>> comment.author == bd.user_id
True
>>> comment.time <= int(time.time())
True
@@ -121,7 +121,7 @@ def execute(args, manipulate_encodings=True):
if options.XML == False:
new = parent.new_reply(body=body)
if options.author != None:
- new.From = options.author
+ new.author = options.author
if options.alt_id != None:
new.alt_id = options.alt_id
if options.content_type != None: