From 9afbe4e78f7a332401ec03008ff66faa5c11e297 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 25 Jul 2009 07:26:19 -0400 Subject: 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. --- becommands/comment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'becommands') 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 - >>> 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: -- cgit