diff -r c7a95ebcc093 -r 010a59e12d89 web/views/autoform.py --- a/web/views/autoform.py Tue Apr 23 15:16:36 2013 +0200 +++ b/web/views/autoform.py Tue Apr 23 15:33:50 2013 +0200 @@ -272,7 +272,7 @@ **kwargs) def form_title(self, entity, i18nctx): - return self._cw.pgettext(i18nctx, entity.__regid__) + return self._cw.pgettext(i18nctx, entity.cw_etype) def add_hiddens(self, form, entity): """to ease overriding (see cubes.vcsfile.views.forms for instance)""" @@ -498,7 +498,7 @@ for rschema, role, related in field.relations_table(form): # already linked entities if related: - label = rschema.display_name(req, role, context=form.edited_entity.__regid__) + label = rschema.display_name(req, role, context=form.edited_entity.cw_etype) w(u'