cubicweb/skeleton/cubicweb_CUBENAME/__pkginfo__.py.tmpl
author Philippe Pepiot <philippe.pepiot@logilab.fr>
Wed, 11 Sep 2019 11:56:43 +0200
branch3.26
changeset 12726 1a2c7d6397ec
parent 11470 c0167228c12c
child 12567 26744ad37953
permissions -rw-r--r--
Avoid to update inlined relation column to NULL when deleting entities When deleting entities, cubicweb run a rql DELETE on all relations to trigger hooks. For an inlined relation this also mean set the column to NULL. This operation may fail if there's additional constraints on the column. Also this is a weird and useless behavior since deleting the entity row will by definition delete the relation. We still doesn't handle the case where both subject and object are going to be deleted because rows need to be deleted in a particular order that cubicweb doesn't handle. Add a test checking UPDATE does not occur but hooks are correctly called. Closes #17236690
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7003
6eeed1e9782c [skel] avoid pylint warning for newly generated cube
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 6828
diff changeset
     1
# pylint: disable=W0622
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     2
"""%(distname)s application packaging information"""
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     3
11176
4a43193ce7b0 [test] Add a test ensuring new cube built from skeleton is flake8-compliant
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11057
diff changeset
     4
11470
c0167228c12c [skeleton] Fix modname in __pkginfo__
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11456
diff changeset
     5
modname = 'cubicweb_%(cubename)s'
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     6
distname = '%(distname)s'
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     7
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     8
numversion = (0, 1, 0)
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     9
version = '.'.join(str(num) for num in numversion)
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    10
5184
955ee1b24756 [c-c newcube] #1192: simpler cubicweb-ctl newcube, and more
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5163
diff changeset
    11
license = '%(license)s'
458
99712f0d5472 fix syntax in skeleton's __pkginfo__.py
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 365
diff changeset
    12
author = '%(author)s'
99712f0d5472 fix syntax in skeleton's __pkginfo__.py
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 365
diff changeset
    13
author_email = '%(author-email)s'
6828
b022065b4376 [skeleton] nicer pkginfo organization
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5536
diff changeset
    14
description = '%(shortdesc)s'
b022065b4376 [skeleton] nicer pkginfo organization
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5536
diff changeset
    15
web = 'http://www.cubicweb.org/project/%%s' %% distname
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    16
10214
88f60d4b9952 [newcube] Make the generated code PEP-8 compliant
Christophe de Vienne <christophe@unlish.com>
parents: 8565
diff changeset
    17
__depends__ = %(dependencies)s
6828
b022065b4376 [skeleton] nicer pkginfo organization
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5536
diff changeset
    18
__recommends__ = {}
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    19
8565
53c8cf9450b9 [skeleton] add pypi classifiers in __pkginfo__ and setup.py (closes #2502156)
Arthur Lutz <arthur.lutz@logilab.fr>
parents: 7758
diff changeset
    20
classifiers = [
53c8cf9450b9 [skeleton] add pypi classifiers in __pkginfo__ and setup.py (closes #2502156)
Arthur Lutz <arthur.lutz@logilab.fr>
parents: 7758
diff changeset
    21
    'Environment :: Web Environment',
53c8cf9450b9 [skeleton] add pypi classifiers in __pkginfo__ and setup.py (closes #2502156)
Arthur Lutz <arthur.lutz@logilab.fr>
parents: 7758
diff changeset
    22
    'Framework :: CubicWeb',
53c8cf9450b9 [skeleton] add pypi classifiers in __pkginfo__ and setup.py (closes #2502156)
Arthur Lutz <arthur.lutz@logilab.fr>
parents: 7758
diff changeset
    23
    'Programming Language :: Python',
53c8cf9450b9 [skeleton] add pypi classifiers in __pkginfo__ and setup.py (closes #2502156)
Arthur Lutz <arthur.lutz@logilab.fr>
parents: 7758
diff changeset
    24
    'Programming Language :: JavaScript',
11176
4a43193ce7b0 [test] Add a test ensuring new cube built from skeleton is flake8-compliant
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11057
diff changeset
    25
]