web/views/editforms.py
changeset 10669 155c29e0ed1c
parent 10666 7f6b5f023884
child 11294 cd1183a65ebb
--- a/web/views/editforms.py	Tue Sep 15 17:10:58 2015 +0200
+++ b/web/views/editforms.py	Fri Sep 18 14:29:53 2015 +0200
@@ -147,7 +147,7 @@
         # selector
         etype = kwargs.pop('etype', self._cw.form.get('etype'))
         entity = self._cw.vreg['etypes'].etype_class(etype)(self._cw)
-        entity.eid = self._cw.varmaker.next()
+        entity.eid = next(self._cw.varmaker)
         self.render_form(entity)
 
     def form_title(self, entity):
@@ -199,7 +199,7 @@
         entity.complete()
         self.newentity = copy(entity)
         self.copying = entity
-        self.newentity.eid = self._cw.varmaker.next()
+        self.newentity.eid = next(self._cw.varmaker)
         self.w(u'<script type="text/javascript">updateMessage("%s");</script>\n'
                % self._cw._(self.warning_message))
         super(CopyFormView, self).render_form(self.newentity)