devtools/devctl.py
changeset 3998 94cc7cad3d2d
parent 3890 d7a270f50f54
parent 3978 2c95e3033f64
child 4021 280c910c8710
equal deleted inserted replaced
3895:92ead039d3d0 3998:94cc7cad3d2d
    19 from logilab.common.modutils import get_module_files
    19 from logilab.common.modutils import get_module_files
    20 from logilab.common.textutils import splitstrip
    20 from logilab.common.textutils import splitstrip
    21 from logilab.common.shellutils import ASK
    21 from logilab.common.shellutils import ASK
    22 from logilab.common.clcommands import register_commands
    22 from logilab.common.clcommands import register_commands
    23 
    23 
       
    24 from cubicweb.__pkginfo__ import version as cubicwebversion
    24 from cubicweb import CW_SOFTWARE_ROOT as BASEDIR, BadCommandUsage
    25 from cubicweb import CW_SOFTWARE_ROOT as BASEDIR, BadCommandUsage
    25 from cubicweb.__pkginfo__ import version as cubicwebversion
       
    26 from cubicweb.toolsutils import Command, copy_skeleton, underline_title
    26 from cubicweb.toolsutils import Command, copy_skeleton, underline_title
       
    27 from cubicweb.schema import CONSTRAINTS
    27 from cubicweb.web.webconfig import WebConfiguration
    28 from cubicweb.web.webconfig import WebConfiguration
    28 from cubicweb.server.serverconfig import ServerConfiguration
    29 from cubicweb.server.serverconfig import ServerConfiguration
    29 
    30 
    30 
    31 
    31 class DevCubeConfiguration(ServerConfiguration, WebConfiguration):
    32 class DevCubeConfiguration(ServerConfiguration, WebConfiguration):
   136         list(_iter_vreg_objids(libvreg, vregdone))
   137         list(_iter_vreg_objids(libvreg, vregdone))
   137     else:
   138     else:
   138         libschema = {}
   139         libschema = {}
   139         afs = uicfg.autoform_section
   140         afs = uicfg.autoform_section
   140         appearsin_addmenu = uicfg.actionbox_appearsin_addmenu
   141         appearsin_addmenu = uicfg.actionbox_appearsin_addmenu
       
   142         for cstrtype in CONSTRAINTS:
       
   143             add_msg(w, cstrtype)
   141     done = set()
   144     done = set()
   142     for eschema in sorted(schema.entities()):
   145     for eschema in sorted(schema.entities()):
   143         etype = eschema.type
   146         etype = eschema.type
   144         if etype not in libschema:
   147         if etype not in libschema:
   145             add_msg(w, etype)
   148             add_msg(w, etype)