merge
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Wed, 28 Jan 2009 17:31:07 +0100
changeset 511 5df6588d7374
parent 510 6b92504d77c1 (current diff)
parent 509 1d65eb1a5834 (diff)
child 512 cfb8d087cba3
merge
--- a/web/views/owl.py	Wed Jan 28 17:30:26 2009 +0100
+++ b/web/views/owl.py	Wed Jan 28 17:31:07 2009 +0100
@@ -242,7 +242,7 @@
             else:
                 rel = getattr(entity, rschema.type)
                 reverse = '%s' % rschema.type        
-            if len(rel):
+            if rel:
                 for x in rel:
                     if hasattr(x, 'name'):
                         self.w(u'''<%s>%s %s %s</%s> ''' % (reverse, targetschemas[0], html_escape(unicode(x.name)), html_escape(unicode(x.eid)), reverse))