diff options
author | W. Trevor King <wking@drexel.edu> | 2009-12-14 20:13:30 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-12-14 20:13:30 -0500 |
commit | 0f87a22c20a019f49455005542d4c60216ce39d2 (patch) | |
tree | cc049719dfeb4ba385c2e34b71a2ee8c03a92c69 /libbe/command/comment.py | |
parent | 3e5823d0985a54dec37f103dc72fda604d12a948 (diff) | |
download | bugseverywhere-0f87a22c20a019f49455005542d4c60216ce39d2.tar.gz |
Transitioned merge to Command-format
Diffstat (limited to 'libbe/command/comment.py')
-rw-r--r-- | libbe/command/comment.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libbe/command/comment.py b/libbe/command/comment.py index 3ec4062..23def57 100644 --- a/libbe/command/comment.py +++ b/libbe/command/comment.py @@ -37,8 +37,8 @@ class Comment (libbe.command.Command): >>> cmd._setup_io = lambda i_enc,o_enc : None >>> cmd.stdout = sys.stdout - >>> cmd.run(bd.storage, bd, {'user-id':u'Fran\\xe7ois'}, - ... ['/a', 'This is a comment about a']) + >>> ret = cmd.run(bd.storage, bd, {'user-id':u'Fran\\xe7ois'}, + ... ['/a', 'This is a comment about a']) >>> bd.flush_reload() >>> bug = bd.bug_from_uuid('a') >>> bug.load_comments(load_full=False) @@ -57,12 +57,12 @@ class Comment (libbe.command.Command): >>> if 'EDITOR' in os.environ: ... del os.environ['EDITOR'] - >>> cmd.run(bd.storage, bd, {'user-id':u'Frank'}, ['/b']) + >>> ret = cmd.run(bd.storage, bd, {'user-id':u'Frank'}, ['/b']) Traceback (most recent call last): UserError: No comment supplied, and EDITOR not specified. >>> os.environ['EDITOR'] = "echo 'I like cheese' > " - >>> cmd.run(bd.storage, bd, {'user-id':u'Frank'}, ['/b']) + >>> ret = cmd.run(bd.storage, bd, {'user-id':u'Frank'}, ['/b']) >>> bd.flush_reload() >>> bug = bd.bug_from_uuid('b') >>> bug.load_comments(load_full=False) @@ -139,6 +139,7 @@ class Comment (libbe.command.Command): for key in ['alt-id', 'author', 'content-type']: if params[key] != None: setattr(new, key, params[key]) + return 0 def _long_help(self): return """ |