--- 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>')