diff options
author | W. Trevor King <wking@drexel.edu> | 2010-01-19 10:46:41 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2010-01-19 10:46:41 -0500 |
commit | d5c54945c7d74fab9b41f39ce31ac5f039e864a2 (patch) | |
tree | 9f9863f5399a9dd06af8eec23c3850d994e2f0a1 | |
parent | b3d2784971e7a4fc088da46122c8351e1aea405f (diff) | |
download | bugseverywhere-d5c54945c7d74fab9b41f39ce31ac5f039e864a2.tar.gz |
Added shortname (.id.user()) data to `be html`s comment data
-rw-r--r-- | libbe/command/html.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libbe/command/html.py b/libbe/command/html.py index d0985cc..0b4cf89 100644 --- a/libbe/command/html.py +++ b/libbe/command/html.py @@ -223,7 +223,7 @@ class HTMLGen (object): comment_entries.append('<div class="comment root">') else: comment_entries.append('<div class="comment">') - template_info = {} + template_info = {'shortname': comment.id.user()} for attr in ['uuid', 'author', 'date', 'body']: value = getattr(comment, attr) if attr == 'body': @@ -611,7 +611,8 @@ class HTMLGen (object): <td class="bug_comment_label">Comment:</td> <td class="bug_comment"> --------- Comment ---------<br/> - Name: %(uuid)s<br/> + ID: %(uuid)s<br/> + Short name: %(shortname)s<br/> From: %(author)s<br/> Date: %(date)s<br/> <br/> |