misc/migration/3.9.5_Any.py
author Pierre-Yves David <pierre-yves.david@logilab.fr>
Tue, 11 Oct 2011 18:18:14 +0200
branchstable
changeset 7938 80c6e2155c3d
parent 6105 a648c832da1f
permissions -rw-r--r--
AnyRsetView: Refactor the columns_name method and update doc. We drop the 'label_column_%s' % colidx pattern and add a clean column_label method that might be overwritten by children class to alter the way default columns headers are computed.

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