From: W. Trevor King Date: Tue, 19 Jan 2010 15:46:41 +0000 (-0500) Subject: Added shortname (.id.user()) data to `be html`s comment data X-Git-Tag: 1.0.0~59^2~46^2~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d5c54945c7d74fab9b41f39ce31ac5f039e864a2;p=be.git Added shortname (.id.user()) data to `be html`s comment data --- 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('
') else: comment_entries.append('
') - 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): Comment: --------- Comment ---------
- Name: %(uuid)s
+ ID: %(uuid)s
+ Short name: %(shortname)s
From: %(author)s
Date: %(date)s