# HG changeset patch # User Laure Bourgois # Date 1233160364 -3600 # Node ID cfb8d087cba30a6033408a743ef035ecee6ddd9d # Parent 5df6588d73745dc1c2a9f58de8bf78714b00a929 cleaning code diff -r 5df6588d7374 -r cfb8d087cba3 web/views/owl.py --- a/web/views/owl.py Wed Jan 28 17:31:07 2009 +0100 +++ b/web/views/owl.py Wed Jan 28 17:32:44 2009 +0100 @@ -204,9 +204,9 @@ %s Cubicweb OWL Ontology - ''' % (self.schema.name, self.schema.name, self.schema.name, self.schema.name, self.schema.name, self.schema.name, self.schema.name)) - #self.view('owl', rset) - + ''' % (self.schema.name, self.schema.name, self.schema.name, self.schema.name, self.schema.name, + self.schema.name, self.schema.name)) + for i in xrange(self.rset.rowcount): self.cell_call(i, 0, skiprels=('is', 'is_instance_of', 'identity', 'owned_by', 'created_by'), @@ -245,7 +245,8 @@ if rel: for x in rel: if hasattr(x, 'name'): - self.w(u'''<%s>%s %s %s ''' % (reverse, targetschemas[0], html_escape(unicode(x.name)), html_escape(unicode(x.eid)), reverse)) + self.w(u'''<%s>%s %s %s ''' % (reverse, targetschemas[0], html_escape(unicode(x.name)), + html_escape(unicode(x.eid)), reverse)) else : self.w(u'''<%s>%s %s ''' % (reverse, targetschemas[0], html_escape(unicode(x.eid)), reverse))