From 983a58fd8c0e768cd27f7f381afe08dbefba82c2 Mon Sep 17 00:00:00 2001 From: stefan Date: Thu, 4 Nov 2010 22:34:20 +0000 Subject: [PATCH] Make HTMLProperty report actual classname in repr(). git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4572 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/cgi/templating.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/roundup/cgi/templating.py b/roundup/cgi/templating.py index 079305b..510aa61 100644 --- a/roundup/cgi/templating.py +++ b/roundup/cgi/templating.py @@ -1289,8 +1289,9 @@ class HTMLProperty(HTMLInputMixin, HTMLPermissions): HTMLInputMixin.__init__(self) def __repr__(self): - return ''%(id(self), self._formname, - self._prop, self._value) + classname = self.__class__.__name__ + return '<%s(0x%x) %s %r %r>'%(classname, id(self), self._formname, + self._prop, self._value) def __str__(self): return self.plain() def __cmp__(self, other): -- 2.30.2