From 6ab6b8d0255ccf3557453fc0762d1529d39462ed Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 29 Dec 2009 19:48:33 -0500 Subject: [PATCH] Propogate long_to_short_user() -> long_to_short_text() and inverse I'd missed some calls when I made the changes. --- libbe/comment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libbe/comment.py b/libbe/comment.py index ad22683..fab1f54 100644 --- a/libbe/comment.py +++ b/libbe/comment.py @@ -156,7 +156,7 @@ class Comment(Tree, settings_object.SavedSettingsObject): def _set_comment_body(self, old=None, new=None, force=False): assert self.uuid != INVALID_UUID, self if self.bug != None and self.bug.bugdir != None: - new = libbe.util.id.short_to_long_user([self.bug.bugdir], new) + new = libbe.util.id.short_to_long_text([self.bug.bugdir], new) if (self.storage != None and self.storage.writeable == True) \ or force==True: assert new != None, "Can't save empty comment" @@ -464,7 +464,7 @@ class Comment(Tree, settings_object.SavedSettingsObject): if self.content_type.startswith("text/"): body = (self.body or "") if self.bug != None and self.bug.bugdir != None: - body = libbe.util.id.long_to_short_user([self.bug.bugdir], body) + body = libbe.util.id.long_to_short_text([self.bug.bugdir], body) lines.extend(body.splitlines()) else: lines.append("Content type %s not printable. Try XML output instead" % self.content_type) -- 2.26.2