# HG changeset patch # User Sylvain Thénault # Date 1253016652 -7200 # Node ID 3422d2188940e8c19b0fe76868b8cc8254aa2f01 # Parent 11b6016e397072222fcb7768a4ac129bd4efc179 [i18ncube] access to appearsin_addmenu config through uicfg directly diff -r 11b6016e3970 -r 3422d2188940 devtools/devctl.py --- a/devtools/devctl.py Mon Sep 14 19:01:37 2009 +0200 +++ b/devtools/devctl.py Tue Sep 15 14:10:52 2009 +0200 @@ -23,6 +23,7 @@ from cubicweb import CW_SOFTWARE_ROOT as BASEDIR, BadCommandUsage, underline_title from cubicweb.__pkginfo__ import version as cubicwebversion from cubicweb.toolsutils import Command, copy_skeleton +from cubicweb.web import uicfg from cubicweb.web.webconfig import WebConfiguration from cubicweb.server.serverconfig import ServerConfiguration @@ -151,7 +152,7 @@ add_msg(w, rschema.description) w('# add related box generated message\n') w('\n') - actionbox = vreg['boxes']['edit_box'][0] + appearsin_addmenu = uicfg.actionbox_appearsin_addmenu for eschema in schema.entities(): if eschema.is_final(): continue @@ -170,8 +171,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)