web/views/owl.py
changeset 517 64402a18da5d
parent 516 56fd73de1f06
child 537 f16da6c874da
--- a/web/views/owl.py	Thu Jan 29 12:10:41 2009 +0100
+++ b/web/views/owl.py	Thu Jan 29 15:16:51 2009 +0100
@@ -239,7 +239,7 @@
                 attr = 'reverse_%s' % rschema.type 
             else:
                 attr = rschema.type        
-            for x in getattr(entity, tag):
+            for x in getattr(entity, attr):
                 self.w(u'<%s>%s %s</%s>' % (attr, x.id, x.eid, attr))
         self.w(u'</%s>'% eschema)