backport changes from 3.21
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 16 Jun 2016 14:19:20 +0200
changeset 11278 19fcce6dc6d1
parent 11275 814f54d6183b (current diff)
parent 11224 a4fcee1e9789 (diff)
child 11279 e4f11ef1face
child 11287 b537c07e3bdc
backport changes from 3.21
.hgtags
__pkginfo__.py
cubicweb.spec
debian/changelog
misc/migration/3.10.0_Any.py
server/sources/native.py
--- 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
--- 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 <julien.cristau@logilab.fr>  Fri, 10 Jul 2015 17:04:11 +0200
 
+cubicweb (3.20.14-1) unstable; urgency=medium
+
+  * new upstream release
+
+ -- Julien Cristau <julien.cristau@logilab.fr>  Mon, 21 Mar 2016 17:59:22 +0100
+
 cubicweb (3.20.13-1) unstable; urgency=medium
 
   * new upstream release
--- 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()
 
--- 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