Commit 7e13318b authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

R [schema hooks] big refactoring / reorganization for clearer code, a few fixes on the way

parent de355ee59e52
......@@ -932,9 +932,10 @@ class Repository(object):
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:
var = '%s%s' % (rtype.upper(), x.upper())
if x == 'subject':
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment