cleaning code
authorLaure Bourgois <Laure.Bourgois@logilab.fr>
Wed, 28 Jan 2009 17:32:44 +0100
changeset 512 cfb8d087cba3
parent 511 5df6588d7374
child 513 907c18c01c60
cleaning code
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                           
                                         
         </rdfs:comment>
-   </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)
-
+   </owl:Ontology>''' % (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</%s> ''' % (reverse, targetschemas[0], html_escape(unicode(x.name)), html_escape(unicode(x.eid)), reverse))
+                        self.w(u'''<%s>%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</%s> ''' % (reverse, targetschemas[0], html_escape(unicode(x.eid)), reverse))