skeleton/sobjects.py.tmpl
author Julien Cristau <julien.cristau@logilab.fr>
Thu, 13 Nov 2014 10:37:44 +0100
changeset 10025 7b72ecc3f4d2
parent 8207 c04676b16c59
permissions -rw-r--r--
[migration] hackish black magic to bootstrap addition of formula attr during migration Turns out we can't add an attribute to CWAttribute before the attribute exists. add_attribute generates rql with a 'formula' relation, which CW doesn't know about yet, so things get unhappy. Once that is fixed, we need to make the CWAttribute addition operation deal with CWAttribute entities that don't have a formula yet. Finally, move the migration to bootstrapmigration_repository so it happens early on, and use add_entity_type rather than add_relation_type for CWComputedRType.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8207
c04676b16c59 ([config] add file encoding information to python files (closes #1942655)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents: 5423
diff changeset
     1
# -*- coding: utf-8 -*-
5423
e15abfdcce38 backport default into stable: stable is now cw 3.8
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5184
diff changeset
     2
# copyright %(year)s %(author)s, all rights reserved.
e15abfdcce38 backport default into stable: stable is now cw 3.8
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5184
diff changeset
     3
# contact %(author-web-site)s -- mailto:%(author-email)s
e15abfdcce38 backport default into stable: stable is now cw 3.8
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5184
diff changeset
     4
#
e15abfdcce38 backport default into stable: stable is now cw 3.8
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5184
diff changeset
     5
%(long-license)s
e15abfdcce38 backport default into stable: stable is now cw 3.8
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5184
diff changeset
     6
"""%(distname)s repository side views, usually for notification"""