aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/comment.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-06-22 16:27:46 -0400
committerW. Trevor King <wking@drexel.edu>2009-06-22 16:27:46 -0400
commit4e5dc3888699076e46bdc1d94f901ca889b88b05 (patch)
tree752955efc584d113261c5e5c865faf51113703d8 /becommands/comment.py
parent0f6e647f18a2d6165c0333cb7d123fc781c8e4e1 (diff)
downloadbugseverywhere-4e5dc3888699076e46bdc1d94f901ca889b88b05.tar.gz
Added `be list --sort *` for user-selectable sorting.
Also added libbe.bug.cmp_last_modified, which handles part of 9ce2f015-8ea0-43a5-a03d-fc36f6d202fe. To do better we could extend the RCS framework. I also transcribed a few emails from the be-devel list onto their relavent bugs and closed a few bugs. Finally, I removed some left over InvalidValue cruft.
Diffstat (limited to 'becommands/comment.py')
-rw-r--r--becommands/comment.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/becommands/comment.py b/becommands/comment.py
index 29e9f88..f7459dd 100644
--- a/becommands/comment.py
+++ b/becommands/comment.py
@@ -102,10 +102,14 @@ def execute(args, test=False):
body+='\n'
comment = parent.new_reply(body=body)
+ if options.content_type != None:
+ comment.content_type = options.content_type
bd.save()
def get_parser():
parser = cmdutil.CmdOptionParser("be comment ID [COMMENT]")
+ parser.add_option("-c", "--content-type", metavar="MIME", dest="content_type",
+ help="Set comment content-type (e.g. text/plain)", default=None)
return parser
longhelp="""