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