skeleton/migration/precreate.py.tmpl
author Pierre-Yves David <pierre-yves.david@logilab.fr>
Thu, 28 Mar 2013 11:45:17 +0100
brancholdstable
changeset 8818 d8b0984c923c
parent 8207 c04676b16c59
permissions -rw-r--r--
[migration] fix bug in `CWAttributeAddOp.revertprecommit_event` The `rdefdef` attribute is set during the operation execution. In some the operation crash before this assignment. In such case `revertprecommit` raise an attribute error crashing the whole process and shadowing the original error. This changeset detect and Avoid this situation.

# -*- coding: utf-8 -*-
# copyright %(year)s %(author)s, all rights reserved.
# contact %(author-web-site)s -- mailto:%(author-email)s
#
%(long-license)s
"""%(distname)s precreate script, executed at instance creation time or when
the cube is added to an existing instance, before the schema is serialized.

This is typically to create groups referenced by the cube'schema.
"""