# HG changeset patch # User Sylvain Thénault # Date 1466079560 -7200 # Node ID 19fcce6dc6d11031e558ffcc28d48a3b82387386 # Parent 814f54d6183b4ac00e6e3a49fdeeddea2b5c47df# Parent a4fcee1e9789c280ac011a9cfe2e2018a3fedbc9 backport changes from 3.21 diff -r 814f54d6183b -r 19fcce6dc6d1 .hgtags --- a/.hgtags Wed May 04 23:52:36 2016 +0200 +++ b/.hgtags Thu Jun 16 14:19:20 2016 +0200 @@ -517,6 +517,9 @@ 8c5dabbcd4d9505c3a617f9dbe2b10172bdc2b3a 3.20.13 8c5dabbcd4d9505c3a617f9dbe2b10172bdc2b3a debian/3.20.13-1 8c5dabbcd4d9505c3a617f9dbe2b10172bdc2b3a centos/3.20.13-1 +f66a4895759e0913b1203943fc2cd7be1a821e05 3.20.14 +f66a4895759e0913b1203943fc2cd7be1a821e05 debian/3.20.14-1 +f66a4895759e0913b1203943fc2cd7be1a821e05 centos/3.20.14-1 887c6eef807781560adcd4ecd2dea9011f5a6681 3.21.0 887c6eef807781560adcd4ecd2dea9011f5a6681 debian/3.21.0-1 887c6eef807781560adcd4ecd2dea9011f5a6681 centos/3.21.0-1 diff -r 814f54d6183b -r 19fcce6dc6d1 __pkginfo__.py diff -r 814f54d6183b -r 19fcce6dc6d1 cubicweb.spec diff -r 814f54d6183b -r 19fcce6dc6d1 debian/changelog --- a/debian/changelog Wed May 04 23:52:36 2016 +0200 +++ b/debian/changelog Thu Jun 16 14:19:20 2016 +0200 @@ -64,6 +64,12 @@ -- Julien Cristau Fri, 10 Jul 2015 17:04:11 +0200 +cubicweb (3.20.14-1) unstable; urgency=medium + + * new upstream release + + -- Julien Cristau Mon, 21 Mar 2016 17:59:22 +0100 + cubicweb (3.20.13-1) unstable; urgency=medium * new upstream release diff -r 814f54d6183b -r 19fcce6dc6d1 misc/migration/3.10.0_Any.py --- a/misc/migration/3.10.0_Any.py Wed May 04 23:52:36 2016 +0200 +++ b/misc/migration/3.10.0_Any.py Thu Jun 16 14:19:20 2016 +0200 @@ -1,7 +1,5 @@ from six import text_type -from cubicweb.server.session import hooks_control - for uri, cfg in config.read_sources_file().items(): if uri in ('system', 'admin'): continue @@ -11,7 +9,7 @@ add_relation_definition('CWSource', 'cw_source', 'CWSource') add_entity_type('CWSourceHostConfig') -with hooks_control(session, session.HOOKS_ALLOW_ALL, 'cw.sources'): +with session.allow_all_hooks_but('cw.sources'): create_entity('CWSource', type=u'native', name=u'system') commit() diff -r 814f54d6183b -r 19fcce6dc6d1 misc/migration/3.10.9_Any.py --- a/misc/migration/3.10.9_Any.py Wed May 04 23:52:36 2016 +0200 +++ b/misc/migration/3.10.9_Any.py Thu Jun 16 14:19:20 2016 +0200 @@ -14,7 +14,7 @@ enabled = interactive_mode with progress(title=title, nbops=nbops, size=30, enabled=enabled) as pb: for i, row in enumerate(rset): - with hooks_control(session, session.HOOKS_DENY_ALL, 'integrity'): + with session.deny_all_hooks_but('integrity'): data = {'eid': row[0], 'cwuri': row[1].replace(u'/eid', u'')} rql('SET X cwuri %(cwuri)s WHERE X eid %(eid)s', data) if not i % 100: # commit every 100 entities to limit memory consumption diff -r 814f54d6183b -r 19fcce6dc6d1 server/sources/native.py