From: W. Trevor King Date: Wed, 30 Dec 2009 00:48:33 +0000 (-0500) Subject: Propogate long_to_short_user() -> long_to_short_text() and inverse X-Git-Tag: 1.0.0~59^2~52^2~16 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6ab6b8d0255ccf3557453fc0762d1529d39462ed;p=be.git Propogate long_to_short_user() -> long_to_short_text() and inverse I'd missed some calls when I made the changes. --- 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)