server/repository.py
changeset 2641 9c33d98a074e
parent 2631 90dd26e61361
child 2647 b0a2e779845c
--- a/server/repository.py	Sat Aug 01 17:22:05 2009 +0200
+++ b/server/repository.py	Sat Aug 01 17:22:46 2009 +0200
@@ -932,9 +932,10 @@
         """
         rql = []
         eschema = self.schema.eschema(etype)
+        pendingrtypes = session.transaction_data.get('pendingrtypes', ())
         for rschema, targetschemas, x in eschema.relation_definitions():
             rtype = rschema.type
-            if rtype in VIRTUAL_RTYPES:
+            if rtype in VIRTUAL_RTYPES or rtype in pendingrtypes:
                 continue
             var = '%s%s' % (rtype.upper(), x.upper())
             if x == 'subject':