web/views/autoform.py
changeset 10669 155c29e0ed1c
parent 10666 7f6b5f023884
child 10932 cb217b2b3463
equal deleted inserted replaced
10668:4fb62d791073 10669:155c29e0ed1c
   355             cls = self._cw.vreg['etypes'].etype_class(self.etype)
   355             cls = self._cw.vreg['etypes'].etype_class(self.etype)
   356         except Exception:
   356         except Exception:
   357             self.w(self._cw._('no such entity type %s') % self.etype)
   357             self.w(self._cw._('no such entity type %s') % self.etype)
   358             return
   358             return
   359         entity = cls(self._cw)
   359         entity = cls(self._cw)
   360         entity.eid = self._cw.varmaker.next()
   360         entity.eid = next(self._cw.varmaker)
   361         return entity
   361         return entity
   362 
   362 
   363     def call(self, i18nctx, **kwargs):
   363     def call(self, i18nctx, **kwargs):
   364         self.render_form(i18nctx, **kwargs)
   364         self.render_form(i18nctx, **kwargs)
   365 
   365