equal
deleted
inserted
replaced
265 countkey = '%s_count' % self.rtype |
265 countkey = '%s_count' % self.rtype |
266 try: |
266 try: |
267 self._cw.data[countkey] += 1 |
267 self._cw.data[countkey] += 1 |
268 except KeyError: |
268 except KeyError: |
269 self._cw.data[countkey] = 1 |
269 self._cw.data[countkey] = 1 |
270 self.w(self.form.render( |
270 self.form.render(w=self.w, divid=divid, title=title, removejs=removejs, |
271 divid=divid, title=title, removejs=removejs, i18nctx=i18nctx, |
271 i18nctx=i18nctx, counter=self._cw.data[countkey] , |
272 counter=self._cw.data[countkey] , **kwargs)) |
272 **kwargs) |
273 |
273 |
274 def form_title(self, entity, i18nctx): |
274 def form_title(self, entity, i18nctx): |
275 return self._cw.pgettext(i18nctx, entity.__regid__) |
275 return self._cw.pgettext(i18nctx, entity.__regid__) |
276 |
276 |
277 def add_hiddens(self, form, entity): |
277 def add_hiddens(self, form, entity): |