web/views/primary.py
changeset 6371 9af007a3acb9
parent 6366 1806148d6ce8
child 6377 3bb415310d4f
--- a/web/views/primary.py	Thu Sep 30 15:00:40 2010 +0200
+++ b/web/views/primary.py	Thu Sep 30 15:35:01 2010 +0200
@@ -143,7 +143,7 @@
         if display_attributes:
             self.w(u'<table>')
             for rschema, role, dispctrl, value in display_attributes:
-                if support_args(self._render_attribute, 'label'):
+                if not hasattr(self, '_render_attribute'):
                     label = self._rel_label(entity, rschema, role, dispctrl)
                     self.render_attribute(label, value, table=True)
                 elif support_args(self._render_attribute, 'dispctrl'):