devtools/devctl.py
branchtls-sprint
changeset 1739 78b0819162a8
parent 1665 14a8f9d434c8
child 1769 fb91d2b8a441
--- a/devtools/devctl.py	Tue May 12 11:49:30 2009 +0200
+++ b/devtools/devctl.py	Tue May 12 11:56:12 2009 +0200
@@ -163,7 +163,8 @@
                             subjtype, objtype = teschema, eschema
                         if librschema.has_rdef(subjtype, objtype):
                             continue
-                    if actionbox.relation_mode(rschema, eschema, teschema, role) == 'create':
+                    if actionbox.appearsin_addmenu.etype_get(eschema, rschema,
+                                                             role, teschema):
                         if role == 'subject':
                             label = 'add %s %s %s %s' % (eschema, rschema,
                                                          teschema, role)