author | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> |
Fri, 02 Apr 2010 08:44:00 +0200 | |
branch | stable |
changeset 5132 | 260d73ad4f24 |
parent 5131 | 88b5ca8da928 |
child 5133 | aa9c01571805 |
--- a/server/migractions.py Fri Apr 02 08:43:01 2010 +0200 +++ b/server/migractions.py Fri Apr 02 08:44:00 2010 +0200 @@ -1167,9 +1167,8 @@ return session return self.cnx.request() - def cmd_create_entity(self, etype, **kwargs): + def cmd_create_entity(self, etype, commit=False, **kwargs): """add a new entity of the given type""" - commit = kwargs.pop('commit', False) entity = self._cw.create_entity(etype, **kwargs) if commit: self.commit()