devtools/devctl.py
changeset 3230 1d25e928c299
parent 3163 edfe43ceaa35
parent 3221 3422d2188940
child 3293 69c0ba095536
--- a/devtools/devctl.py	Mon Sep 14 11:25:56 2009 +0200
+++ b/devtools/devctl.py	Tue Sep 15 15:01:41 2009 +0200
@@ -153,7 +153,8 @@
             add_msg(w, rschema.description)
     w('# add related box generated message\n')
     w('\n')
-    actionbox = vreg['boxes']['edit_box'][0]
+    from cubicweb.web import uicfg
+    appearsin_addmenu = uicfg.actionbox_appearsin_addmenu
     for eschema in schema.entities():
         if eschema.is_final():
             continue
@@ -172,8 +173,8 @@
                             subjtype, objtype = teschema, eschema
                         if librschema.has_rdef(subjtype, objtype):
                             continue
-                    if actionbox.appearsin_addmenu.etype_get(eschema, rschema,
-                                                             role, teschema):
+                    if appearsin_addmenu.etype_get(eschema, rschema, role,
+                                                   teschema):
                         if role == 'subject':
                             label = 'add %s %s %s %s' % (eschema, rschema,
                                                          teschema, role)