diff options
author | W. Trevor King <wking@drexel.edu> | 2009-10-20 09:30:42 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-10-20 09:30:42 -0400 |
commit | 501014a3f86bdfb7be7b52c6d1d0eb4fd7a75f02 (patch) | |
tree | 3813119aab22972f095fd70734077f03dddb4f24 /becommands | |
parent | 833adcb9c41ff0aa82700ab0c99277d23fc18dd7 (diff) | |
download | bugseverywhere-501014a3f86bdfb7be7b52c6d1d0eb4fd7a75f02.tar.gz |
Pass content_type to Comment.new_reply() to fix error adding non-text/ comments
Diffstat (limited to 'becommands')
-rw-r--r-- | becommands/comment.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/becommands/comment.py b/becommands/comment.py index 9a614b2..950a95a 100644 --- a/becommands/comment.py +++ b/becommands/comment.py @@ -119,13 +119,11 @@ def execute(args, manipulate_encodings=True): body+='\n' if options.XML == False: - new = parent.new_reply(body=body) + new = parent.new_reply(body=body, content_type=options.content_type) if options.author != None: new.author = options.author if options.alt_id != None: new.alt_id = options.alt_id - if options.content_type != None: - new.content_type = options.content_type else: # import XML comment [list] # read in the comments str_body = body.encode("unicode_escape").replace(r'\n', '\n') |