From e2d1c0ed5e1306a2ca61f9a73f39c87dae474233 Mon Sep 17 00:00:00 2001 From: Thomas NOEL Date: Sat, 30 Sep 2017 13:09:53 +0200 Subject: [PATCH] backoffice: show old-style class name in inspect (#19111) --- wcs/backoffice/management.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wcs/backoffice/management.py b/wcs/backoffice/management.py index eb1c8b22..8e22136a 100644 --- a/wcs/backoffice/management.py +++ b/wcs/backoffice/management.py @@ -2149,7 +2149,11 @@ class FormBackOfficeStatusPage(FormStatusPage): r += htmltext('
  • %s') % (k, k) r += htmltext('
    %s') % ellipsize(safe(v), 10000) if not isinstance(v, basestring): - r += htmltext(' (%r)') % type(v) + if type(v) == v.__class__: + klass = '%r' % type(v) + else: # old-style class + klass = '' % v.__class__ + r += htmltext(' (%s)') % klass r += htmltext('
  • ') if '_markers_stack' in (self.filled.workflow_data or {}): -- 2.14.2