web/views/primary.py
changeset 6582 8eb7883b4223
parent 6500 e288df2e2f18
child 6616 26587186b856
--- a/web/views/primary.py	Thu Oct 21 18:38:36 2010 +0200
+++ b/web/views/primary.py	Fri Oct 22 09:15:35 2010 +0200
@@ -371,13 +371,13 @@
     __regid__ = 'attribute'
     __select__ = EntityView.__select__ & match_kwargs('rtype')
 
-    def cell_call(self, row, col, rtype, **kwargs):
+    def cell_call(self, row, col, rtype, role, **kwargs):
         entity = self.cw_rset.get_entity(row, col)
         if self._cw.vreg.schema.rschema(rtype).final:
             self.w(entity.printable_value(rtype))
         else:
             dispctrl = uicfg.primaryview_display_ctrl.etype_get(
-                entity.e_schema, rtype, kwargs['role'], '*')
+                entity.e_schema, rtype, role, '*')
             rset = entity.related(rtype, role)
             if rset:
                 self.wview('autolimited', rset, initargs={'dispctrl': dispctrl})