equal
deleted
inserted
replaced
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 |