equal
deleted
inserted
replaced
1056 data = {'cw_eid': subject, SQL_PREFIX + rtype: object} |
1056 data = {'cw_eid': subject, SQL_PREFIX + rtype: object} |
1057 subjtype = kwargs.get('subjtype') |
1057 subjtype = kwargs.get('subjtype') |
1058 if subjtype is None: |
1058 if subjtype is None: |
1059 # Try to infer it |
1059 # Try to infer it |
1060 targets = [t.type for t in |
1060 targets = [t.type for t in |
1061 self.schema.rschema(rtype).targets()] |
1061 self.schema.rschema(rtype).subjects()] |
1062 if len(targets) == 1: |
1062 if len(targets) == 1: |
1063 subjtype = targets[0] |
1063 subjtype = targets[0] |
1064 else: |
1064 else: |
1065 raise ValueError('You should give the subject etype for ' |
1065 raise ValueError('You should give the subject etype for ' |
1066 'inlined relation %s' |
1066 'inlined relation %s' |