misc/migration/3.9.5_Any.py
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 25 Jun 2013 12:11:42 +0200
changeset 9148 1b549c1acd4f
parent 6105 a648c832da1f
permissions -rw-r--r--
[schema,server] add a security debugging aid (closes #2920304) - Add a DGB_SEC debugging flag (to be used with set_debug/debugged). - Add a context manager (tunesecurity) to filter security assertions. Note: this does not address all read-security mecanisms.

if not rql('CWConstraintType X WHERE X name "RQLUniqueConstraint"',
           ask_confirm=False):
    rql('INSERT CWConstraintType X: X name "RQLUniqueConstraint"',
        ask_confirm=False)