OWLABOXView correction
authorLaure Bourgois <Laure.Bourgois@logilab.fr>
Wed, 28 Jan 2009 17:28:08 +0100
changeset 508 fab4e2cfe053
parent 507 f4a6f1ccc4d8
child 509 1d65eb1a5834
child 510 6b92504d77c1
OWLABOXView correction
web/views/owl.py
--- a/web/views/owl.py	Wed Jan 28 17:25:22 2009 +0100
+++ b/web/views/owl.py	Wed Jan 28 17:28:08 2009 +0100
@@ -217,7 +217,6 @@
         entity = self.complete_entity(row, col)
         eschema = entity.e_schema
         self.w(u'''<%s rdf:ID="%s">''' % (eschema, entity.name))
-        print 'i'*40
         self.w(u'<!--attributes-->')
         for rschema, aschema in eschema.attribute_definitions():
             if rschema.type in skiprels:
@@ -243,8 +242,7 @@
             else:
                 rel = getattr(entity, rschema.type)
                 reverse = '%s' % rschema.type        
-            if len(rel)!=0:
-                print rel
+            if len(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))