author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Wed, 09 Dec 2015 08:44:45 +0100 | |
changeset 11049 | 1f41697f2e26 |
parent 10933 | 830f1ea52789 |
child 11043 | 12db20aeda44 |
permissions | -rw-r--r-- |
10927
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
1 |
3.22 |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
2 |
==== |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
3 |
|
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
4 |
New features |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
5 |
------------ |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
6 |
|
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
7 |
* a huge amount of changes were done towards python 3.x support (as yet |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
8 |
incomplete). This introduces a new dependency on six, to handle |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
9 |
python2/python3 compatibility. |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
10 |
|
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
11 |
* new cubicweb.dataimport.massive_store module, a postgresql-specific store |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
12 |
using the COPY statement to accelerate massive data imports. This |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
13 |
functionality was previously part of cubicweb-dataio (there are some API |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
14 |
differences with that previous version, however). |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
15 |
|
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
16 |
* cubes custom sql scripts are executed before creating tables. This allows |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
17 |
them to create new types or extensions. |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
18 |
|
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
19 |
User-visible changes |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
20 |
-------------------- |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
21 |
|
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
22 |
* the ldapfeed source now depends on the `ldap3` module instead of |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
23 |
`python-ldap`. |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
24 |
|
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
25 |
* replies don't get an ``Expires`` header by default. However when they do, |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
26 |
they also get a coherent ``Cache-Control``. |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
27 |
|
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
28 |
* data files are regenerated at each request, they are no longer cached by |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
29 |
``cubicweb.web.PropertySheet``. Requests for data files missing the instance |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
30 |
hash are handled with a redirection instead of a direct reply, to allow |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
31 |
correct cache-related reply headers. |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
32 |
|
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
33 |
API changes |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
34 |
----------- |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
35 |
|
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
36 |
* ``config.repository()`` creates a new Repository object each time, instead of |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
37 |
returning a cached object |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
38 |
|
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
39 |
* migration scripts, as well as other scripts executed by ``cubicweb-ctl |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
40 |
shell``, are loaded with the print_function flag enabled (for backwards |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
41 |
compatibility, if that fails they are re-loaded without that flag) |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
42 |
|
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
43 |
* the ``cw_fti_index_rql_queries`` method on entity classes is replaced by |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
44 |
``cw_fti_index_rql_limit``, a generator which yields ``ResultSet`` objects |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
45 |
containing entities to be indexed. By default, entities are returned 1000 at |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
46 |
a time. |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
47 |
|
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
48 |
* ``IDownloadableAdapter`` API is clarified: ``download_url``, |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
49 |
``download_content_type`` and ``download_file_name`` return unicode objects, |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
50 |
``download_data`` returns bytes. |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
51 |
|
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
52 |
* the ``Repository.extid2eid()`` entry point for external sources is deprecated. |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
53 |
Imports should use one of the stores from the ``cubicweb.dataimport`` package |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
54 |
instead. |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
55 |
|
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
56 |
* the ``cubicweb.repoapi.get_repository()`` function's ``uri`` argument should |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
57 |
no longer be used. |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
58 |
|
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
59 |
* the generic datafeed xml parser is deprecated in favor of the "store" API |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
60 |
introduced in cubicweb 3.21. |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
61 |
|
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
62 |
* the session manager lives in the ``sessions`` registry instead of ``components``. |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
63 |
|
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
64 |
Deprecated code drops |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
65 |
--------------------- |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
66 |
|
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
67 |
* the ``cubicweb.server.hooksmanager`` module was removed |
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
68 |
|
41341b5a1f49
[doc] add 3.22 changelog
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
69 |
* the ``Repository.pinfo()`` method was removed |
10933
830f1ea52789
[utils] Drop now-unused SizeConstrainedList
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
10927
diff
changeset
|
70 |
|
830f1ea52789
[utils] Drop now-unused SizeConstrainedList
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
10927
diff
changeset
|
71 |
* the ``cubicweb.utils.SizeConstrainedList`` class was removed |