Projet

Général

Profil

0001-backoffice-show-old-style-class-name-in-inspect-1911.patch

Thomas Noël, 30 septembre 2017 13:10

Télécharger (1,21 ko)

Voir les différences:

Subject: [PATCH] backoffice: show old-style class name in inspect (#19111)

 wcs/backoffice/management.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
wcs/backoffice/management.py
2149 2149
            r += htmltext('<li><code title="%s">%s</code>') % (k, k)
2150 2150
            r += htmltext('  <div class="value"><span>%s</span>') % ellipsize(safe(v), 10000)
2151 2151
            if not isinstance(v, basestring):
2152
                r += htmltext(' <span class="type">(%r)</span>') % type(v)
2152
                if type(v) == v.__class__:
2153
                    klass = '%r' % type(v)
2154
                else:  # old-style class
2155
                    klass = '<class %s>' % v.__class__
2156
                r += htmltext(' <span class="type">(%s)</span>') % klass
2153 2157
            r += htmltext('</div></li>')
2154 2158

  
2155 2159
        if '_markers_stack' in (self.filled.workflow_data or {}):
2156
-