devtools/devctl.py
changeset 3998 94cc7cad3d2d
parent 3890 d7a270f50f54
parent 3978 2c95e3033f64
child 4021 280c910c8710
--- a/devtools/devctl.py	Mon Nov 23 14:13:53 2009 +0100
+++ b/devtools/devctl.py	Thu Dec 03 17:17:43 2009 +0100
@@ -21,9 +21,10 @@
 from logilab.common.shellutils import ASK
 from logilab.common.clcommands import register_commands
 
+from cubicweb.__pkginfo__ import version as cubicwebversion
 from cubicweb import CW_SOFTWARE_ROOT as BASEDIR, BadCommandUsage
-from cubicweb.__pkginfo__ import version as cubicwebversion
 from cubicweb.toolsutils import Command, copy_skeleton, underline_title
+from cubicweb.schema import CONSTRAINTS
 from cubicweb.web.webconfig import WebConfiguration
 from cubicweb.server.serverconfig import ServerConfiguration
 
@@ -138,6 +139,8 @@
         libschema = {}
         afs = uicfg.autoform_section
         appearsin_addmenu = uicfg.actionbox_appearsin_addmenu
+        for cstrtype in CONSTRAINTS:
+            add_msg(w, cstrtype)
     done = set()
     for eschema in sorted(schema.entities()):
         etype = eschema.type