doc/3.20.rst
author Julien Cristau <julien.cristau@logilab.fr>
Wed, 02 Apr 2014 15:32:17 +0200
changeset 10112 ff7f86d8393d
parent 10107 1ef92a6193a8
child 10118 78ab2b14048a
permissions -rw-r--r--
[devtools] call turn_repo_off in tearDown (closes #4673491) lets it catch leaked sessions even when running a single test
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10006
8391bf718485 remove most 3.10 bw compat
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
     1
What's new in CubicWeb 3.20
8391bf718485 remove most 3.10 bw compat
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
     2
===========================
8391bf718485 remove most 3.10 bw compat
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
     3
10081
f1baed9ccf0d [doc/3.20] mention CWEP-002
Julien Cristau <julien.cristau@logilab.fr>
parents: 10008
diff changeset
     4
New features
f1baed9ccf0d [doc/3.20] mention CWEP-002
Julien Cristau <julien.cristau@logilab.fr>
parents: 10008
diff changeset
     5
------------
f1baed9ccf0d [doc/3.20] mention CWEP-002
Julien Cristau <julien.cristau@logilab.fr>
parents: 10008
diff changeset
     6
f1baed9ccf0d [doc/3.20] mention CWEP-002
Julien Cristau <julien.cristau@logilab.fr>
parents: 10008
diff changeset
     7
* virtual relations: a new ComputedRelation class can be used in
f1baed9ccf0d [doc/3.20] mention CWEP-002
Julien Cristau <julien.cristau@logilab.fr>
parents: 10008
diff changeset
     8
  schema.py; its `rule` attribute is an RQL snippet that defines the new
f1baed9ccf0d [doc/3.20] mention CWEP-002
Julien Cristau <julien.cristau@logilab.fr>
parents: 10008
diff changeset
     9
  relation.
10107
1ef92a6193a8 [serverctl] rename remove_cube to drop_cube (closes #4545093)
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents: 10091
diff changeset
    10
10081
f1baed9ccf0d [doc/3.20] mention CWEP-002
Julien Cristau <julien.cristau@logilab.fr>
parents: 10008
diff changeset
    11
* computed attributes: an attribute can now be defined with a `formula`
f1baed9ccf0d [doc/3.20] mention CWEP-002
Julien Cristau <julien.cristau@logilab.fr>
parents: 10008
diff changeset
    12
  argument (also an RQL snippet); it will be read-only, and updated
f1baed9ccf0d [doc/3.20] mention CWEP-002
Julien Cristau <julien.cristau@logilab.fr>
parents: 10008
diff changeset
    13
  automatically.
f1baed9ccf0d [doc/3.20] mention CWEP-002
Julien Cristau <julien.cristau@logilab.fr>
parents: 10008
diff changeset
    14
f1baed9ccf0d [doc/3.20] mention CWEP-002
Julien Cristau <julien.cristau@logilab.fr>
parents: 10008
diff changeset
    15
  Both of these features are described in `CWEP-002`_, and the updated
f1baed9ccf0d [doc/3.20] mention CWEP-002
Julien Cristau <julien.cristau@logilab.fr>
parents: 10008
diff changeset
    16
  "Data model" chapter of the CubicWeb book.
f1baed9ccf0d [doc/3.20] mention CWEP-002
Julien Cristau <julien.cristau@logilab.fr>
parents: 10008
diff changeset
    17
f1baed9ccf0d [doc/3.20] mention CWEP-002
Julien Cristau <julien.cristau@logilab.fr>
parents: 10008
diff changeset
    18
.. _CWEP-002: http://hg.logilab.org/review/cwep/file/tip/CWEP-002.rst
f1baed9ccf0d [doc/3.20] mention CWEP-002
Julien Cristau <julien.cristau@logilab.fr>
parents: 10008
diff changeset
    19
10091
09878c2f8621 [dataimport] Have ucsvreader's API match that of csv.reader (closes #3705701)
Rémi Cardona <remi.cardona@logilab.fr>
parents: 10081
diff changeset
    20
09878c2f8621 [dataimport] Have ucsvreader's API match that of csv.reader (closes #3705701)
Rémi Cardona <remi.cardona@logilab.fr>
parents: 10081
diff changeset
    21
API Changes
09878c2f8621 [dataimport] Have ucsvreader's API match that of csv.reader (closes #3705701)
Rémi Cardona <remi.cardona@logilab.fr>
parents: 10081
diff changeset
    22
-----------
09878c2f8621 [dataimport] Have ucsvreader's API match that of csv.reader (closes #3705701)
Rémi Cardona <remi.cardona@logilab.fr>
parents: 10081
diff changeset
    23
09878c2f8621 [dataimport] Have ucsvreader's API match that of csv.reader (closes #3705701)
Rémi Cardona <remi.cardona@logilab.fr>
parents: 10081
diff changeset
    24
* ``ucsvreader()`` and ``ucsvreader_pb()`` from the ``dataimport`` module have
09878c2f8621 [dataimport] Have ucsvreader's API match that of csv.reader (closes #3705701)
Rémi Cardona <remi.cardona@logilab.fr>
parents: 10081
diff changeset
    25
  2 new keyword arguments ``delimiter`` and ``quotechar`` to replace the
09878c2f8621 [dataimport] Have ucsvreader's API match that of csv.reader (closes #3705701)
Rémi Cardona <remi.cardona@logilab.fr>
parents: 10081
diff changeset
    26
  ``separator`` and ``quote`` arguments respectively. This makes the API match
09878c2f8621 [dataimport] Have ucsvreader's API match that of csv.reader (closes #3705701)
Rémi Cardona <remi.cardona@logilab.fr>
parents: 10081
diff changeset
    27
  that of Python's ``csv.reader()``.  The old arguments are still supported
09878c2f8621 [dataimport] Have ucsvreader's API match that of csv.reader (closes #3705701)
Rémi Cardona <remi.cardona@logilab.fr>
parents: 10081
diff changeset
    28
  though deprecated.
09878c2f8621 [dataimport] Have ucsvreader's API match that of csv.reader (closes #3705701)
Rémi Cardona <remi.cardona@logilab.fr>
parents: 10081
diff changeset
    29
10107
1ef92a6193a8 [serverctl] rename remove_cube to drop_cube (closes #4545093)
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents: 10091
diff changeset
    30
* the migration environment's ``remove_cube`` function is now called ``drop_cube``.
1ef92a6193a8 [serverctl] rename remove_cube to drop_cube (closes #4545093)
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents: 10091
diff changeset
    31
10091
09878c2f8621 [dataimport] Have ucsvreader's API match that of csv.reader (closes #3705701)
Rémi Cardona <remi.cardona@logilab.fr>
parents: 10081
diff changeset
    32
10006
8391bf718485 remove most 3.10 bw compat
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    33
Deprecated Code Drops
8391bf718485 remove most 3.10 bw compat
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    34
----------------------
8391bf718485 remove most 3.10 bw compat
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    35
10008
36b75aefe2c2 [doc/3.20] more details on removed code
Julien Cristau <julien.cristau@logilab.fr>
parents: 10007
diff changeset
    36
* most of 3.10 and 3.11 backward compat is gone; this includes:
36b75aefe2c2 [doc/3.20] more details on removed code
Julien Cristau <julien.cristau@logilab.fr>
parents: 10007
diff changeset
    37
  - CtxComponent.box_action() and CtxComponent.build_link()
36b75aefe2c2 [doc/3.20] more details on removed code
Julien Cristau <julien.cristau@logilab.fr>
parents: 10007
diff changeset
    38
  - cubicweb.devtools.htmlparser.XMLDemotingValidator
36b75aefe2c2 [doc/3.20] more details on removed code
Julien Cristau <julien.cristau@logilab.fr>
parents: 10007
diff changeset
    39
  - various methods and properties on Entities, replaced by cw_edited and cw_attr_cache
36b75aefe2c2 [doc/3.20] more details on removed code
Julien Cristau <julien.cristau@logilab.fr>
parents: 10007
diff changeset
    40
  - 'commit_event' method on hooks, replaced by 'postcommit_event'
36b75aefe2c2 [doc/3.20] more details on removed code
Julien Cristau <julien.cristau@logilab.fr>
parents: 10007
diff changeset
    41
  - server.hook.set_operation(), replaced by Operation.get_instance(...).add_data()
36b75aefe2c2 [doc/3.20] more details on removed code
Julien Cristau <julien.cristau@logilab.fr>
parents: 10007
diff changeset
    42
  - View.div_id(), View.div_class() and View.create_url()
36b75aefe2c2 [doc/3.20] more details on removed code
Julien Cristau <julien.cristau@logilab.fr>
parents: 10007
diff changeset
    43
  - `*VComponent` classes
36b75aefe2c2 [doc/3.20] more details on removed code
Julien Cristau <julien.cristau@logilab.fr>
parents: 10007
diff changeset
    44
  - in forms, Field.value() and Field.help() must take the form and the field itself as arguments
36b75aefe2c2 [doc/3.20] more details on removed code
Julien Cristau <julien.cristau@logilab.fr>
parents: 10007
diff changeset
    45
  - form.render() must get `w` as a named argument, and renderer.render() must take `w` as first argument
36b75aefe2c2 [doc/3.20] more details on removed code
Julien Cristau <julien.cristau@logilab.fr>
parents: 10007
diff changeset
    46
  - in breadcrumbs, the optional `recurs` argument must be a set, not False
36b75aefe2c2 [doc/3.20] more details on removed code
Julien Cristau <julien.cristau@logilab.fr>
parents: 10007
diff changeset
    47
  - cubicweb.web.views.idownloadable.{download_box,IDownloadableLineView}
36b75aefe2c2 [doc/3.20] more details on removed code
Julien Cristau <julien.cristau@logilab.fr>
parents: 10007
diff changeset
    48
  - primary views no longer have `render_entity_summary` and `summary` methods
36b75aefe2c2 [doc/3.20] more details on removed code
Julien Cristau <julien.cristau@logilab.fr>
parents: 10007
diff changeset
    49
  - WFHistoryVComponent's `cell_call` method is replaced by `render_body`
36b75aefe2c2 [doc/3.20] more details on removed code
Julien Cristau <julien.cristau@logilab.fr>
parents: 10007
diff changeset
    50
  - cubicweb.dataimport.ObjectStore.add(), replaced by create_entity
36b75aefe2c2 [doc/3.20] more details on removed code
Julien Cristau <julien.cristau@logilab.fr>
parents: 10007
diff changeset
    51
  - ManageView.{folders,display_folders}