web/views/autoform.py
changeset 10669 155c29e0ed1c
parent 10666 7f6b5f023884
child 10932 cb217b2b3463
--- a/web/views/autoform.py	Tue Sep 15 17:10:58 2015 +0200
+++ b/web/views/autoform.py	Fri Sep 18 14:29:53 2015 +0200
@@ -357,7 +357,7 @@
             self.w(self._cw._('no such entity type %s') % self.etype)
             return
         entity = cls(self._cw)
-        entity.eid = self._cw.varmaker.next()
+        entity.eid = next(self._cw.varmaker)
         return entity
 
     def call(self, i18nctx, **kwargs):