update prototype stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 16 Oct 2009 17:11:31 +0200
branchstable
changeset 3708 95e8c3a9698a
parent 3707 78596919ede3
child 3709 e67ade20bf80
update prototype
server/migractions.py
--- a/server/migractions.py	Fri Oct 16 16:29:46 2009 +0200
+++ b/server/migractions.py	Fri Oct 16 17:11:31 2009 +0200
@@ -1083,10 +1083,10 @@
             return session
         return self.cnx.request()
 
-    def cmd_create_entity(self, etype, *args, **kwargs):
+    def cmd_create_entity(self, etype, **kwargs):
         """add a new entity of the given type"""
         commit = kwargs.pop('commit', False)
-        entity = self._cw.create_entity(etype, *args, **kwargs)
+        entity = self._cw.create_entity(etype, **kwargs)
         if commit:
             self.commit()
         return entity