Skip to content
Snippets Groups Projects
Commit e9db0e76470f authored by Adrien Di Mascio's avatar Adrien Di Mascio
Browse files

api upgrade for varmaker

- self.varmaker is now defined on self._cw
- self.initialize_varmaker is not required anymore
parent bab5f515dc70
No related branches found
No related tags found
No related merge requests found
...@@ -217,5 +217,4 @@ ...@@ -217,5 +217,4 @@
jsonmeth = 'add_comment' jsonmeth = 'add_comment'
def call(self, commented): def call(self, commented):
self.initialize_varmaker()
newcomment = self._cw.vreg['etypes'].etype_class('Comment')(self._cw) newcomment = self._cw.vreg['etypes'].etype_class('Comment')(self._cw)
...@@ -221,5 +220,5 @@ ...@@ -221,5 +220,5 @@
newcomment = self._cw.vreg['etypes'].etype_class('Comment')(self._cw) newcomment = self._cw.vreg['etypes'].etype_class('Comment')(self._cw)
newcomment.eid = self.varmaker.next() newcomment.eid = self._cw.varmaker.next()
self.comment_form(commented, newcomment) self.comment_form(commented, newcomment)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment