web/views/reledit.py
changeset 10669 155c29e0ed1c
parent 10666 7f6b5f023884
child 10907 9ae707db5265
--- a/web/views/reledit.py	Tue Sep 15 17:10:58 2015 +0200
+++ b/web/views/reledit.py	Fri Sep 18 14:29:53 2015 +0200
@@ -259,7 +259,7 @@
         elif action == 'add':
             add_etype = self._compute_ttypes(rschema, role)[0]
             _new_entity = self._cw.vreg['etypes'].etype_class(add_etype)(self._cw)
-            _new_entity.eid = self._cw.varmaker.next()
+            _new_entity.eid = next(self._cw.varmaker)
             edit_entity = _new_entity
             # XXX see forms.py ~ 276 and entities.linked_to method
             #     is there another way?