missing groupmap propagation to rschema2rql
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 08 Dec 2009 13:59:47 +0100
changeset 4033 732eccbed54a
parent 4032 c3a018efe7c9
child 4036 137be4878127
missing groupmap propagation to rschema2rql
server/schemaserial.py
--- a/server/schemaserial.py	Tue Dec 08 13:49:02 2009 +0100
+++ b/server/schemaserial.py	Tue Dec 08 13:59:47 2009 +0100
@@ -395,7 +395,8 @@
     return relations, values
 
 
-def __rdef2rql(genmap, rschema, subjtype=None, objtype=None, props=None, groupmap=None):
+def __rdef2rql(genmap, rschema, subjtype=None, objtype=None, props=None,
+               groupmap=None):
     if subjtype is None:
         assert objtype is None
         assert props is None
@@ -445,8 +446,8 @@
 
 def erschema2rql(erschema, groupmap):
     if isinstance(erschema, schemamod.EntitySchema):
-        return eschema2rql(erschema, groupmap)
-    return rschema2rql(erschema)
+        return eschema2rql(erschema, groupmap=groupmap)
+    return rschema2rql(erschema, groupmap=groupmap)
 
 def eschema2rql(eschema, groupmap):
     """return a list of rql insert statements to enter an entity schema