aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-01-19 10:46:41 -0500
committerW. Trevor King <wking@drexel.edu>2010-01-19 10:46:41 -0500
commitd5c54945c7d74fab9b41f39ce31ac5f039e864a2 (patch)
tree9f9863f5399a9dd06af8eec23c3850d994e2f0a1
parentb3d2784971e7a4fc088da46122c8351e1aea405f (diff)
downloadbugseverywhere-d5c54945c7d74fab9b41f39ce31ac5f039e864a2.tar.gz
Added shortname (.id.user()) data to `be html`s comment data
-rw-r--r--libbe/command/html.py5
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/>