B bugfix stable
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Sun, 16 Aug 2009 20:19:54 +0200
branchstable
changeset 2866 4c804711548d
parent 2865 a791b39470cf
child 2867 e8581a4f1bae
child 2868 937890e25765
B bugfix
web/views/ajaxedit.py
--- a/web/views/ajaxedit.py	Sun Aug 16 19:55:05 2009 +0200
+++ b/web/views/ajaxedit.py	Sun Aug 16 20:19:54 2009 +0200
@@ -40,14 +40,12 @@
                 etypes = rschema.subjects(entity.e_schema)
             if len(etypes) == 1:
                 self.etype = etypes[0]
-        fakebox = []
         self.w(u'<div id="%s">' % self.id)
         self.w(u'<h1>%s</h1>' % self.req._('relation %(relname)s of %(ent)s')
                % {'relname': rschema.display_name(self.req, role(self)),
                   'ent': entity.view('incontext')})
         self.w(u'<ul>')
-        self.w_unrelated(fakebox, entity)
-        for boxitem in fakebox:
+        for boxitem in self.unrelated_boxitems(entity):
             boxitem.render(self.w)
         self.w(u'</ul></div>')