From: stefan Date: Thu, 4 Nov 2010 22:34:20 +0000 (+0000) Subject: Make HTMLProperty report actual classname in repr(). X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=983a58fd8c0e768cd27f7f381afe08dbefba82c2;p=roundup.git 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 --- 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):