From d5c54945c7d74fab9b41f39ce31ac5f039e864a2 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 19 Jan 2010 10:46:41 -0500 Subject: [PATCH] Added shortname (.id.user()) data to `be html`s comment data --- libbe/command/html.py | 5 +++-- 1 file 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('
') 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

-- 2.26.2