devtools/devctl.py
branchtls-sprint
changeset 1662 a2c550e464ad
parent 1510 59584270a5bf
child 1665 14a8f9d434c8
--- a/devtools/devctl.py	Mon May 04 17:03:44 2009 +0200
+++ b/devtools/devctl.py	Mon May 04 17:24:43 2009 +0200
@@ -157,10 +157,10 @@
                 for teschema in rschema.targets(eschema, role):
                     if libconfig is not None:
                         if role == 'subject':
-                            subjtype, objtype = etype, tetype
+                            subjtype, objtype = eschema, teschema
                         else:
-                            subjtype, objtype = tetype, etype
-                        if libschema.rschema(rtype).has_rdef(subjtype, objtype):
+                            subjtype, objtype = teschema, eschema
+                        if rschema.has_rdef(subjtype, objtype):
                             continue
                     if actionbox.relation_mode(rschema, eschema, teschema, role) == 'create':
                         if role == 'subject':