diff -r ce9556358dbd -r 99ff746e8de8 web/views/schema.py --- a/web/views/schema.py Fri Feb 10 16:31:39 2012 +0100 +++ b/web/views/schema.py Fri Feb 10 16:53:52 2012 +0100 @@ -205,11 +205,11 @@ _ = self._cw._ # inheritance if entity.specializes: - self.w(u'
%s' % _('Parent class:')) + self.w(u'
%s' % _('Parent class:')) self.wview('csv', entity.related('specializes', 'subject')) self.w(u'
') if entity.reverse_specializes: - self.w(u'
%s' % _('Sub-classes:')) + self.w(u'
%s' % _('Sub-classes:')) self.wview('csv', entity.related('specializes', 'object')) self.w(u'
') # entity schema image @@ -566,8 +566,14 @@ def edge_properties(self, rschema, subjnode, objnode): """return default DOT drawing options for a relation schema""" + # Inheritance relation (i.e 'specializes'). + if rschema is None: + kwargs = {'label': 'Parent class', + 'color' : 'grey', 'style' : 'filled', + 'arrowhead': 'empty', + 'fontsize': '10px'} # symmetric rels are handled differently, let yams decide what's best - if rschema.symmetric: + elif rschema.symmetric: kwargs = {'label': rschema.type, 'color': '#887788', 'style': 'dashed', 'dir': 'both', 'arrowhead': 'normal', 'arrowtail': 'normal',