1 What's new in CubicWeb 3.21? |
|
2 ============================ |
|
3 |
|
4 New features |
|
5 ------------ |
|
6 |
|
7 * the datadir-url configuration option lets one choose where static data files |
|
8 are served (instead of the default ${base-url}/data/) |
|
9 |
|
10 * some integrity checking that was previously implemented in Python was |
|
11 moved to the SQL backend. This includes some constraints, and |
|
12 referential integrity. Some consequences are that: |
|
13 |
|
14 - disabling integrity hooks no longer disables those checks |
|
15 - upgrades that modify constraints will fail when running on sqlite |
|
16 (but upgrades aren't supported on sqlite anyway) |
|
17 |
|
18 * for easier instance monitoring, cubicweb can regularly dump some statistics |
|
19 (basically those exposed by the 'info' and 'gc' views) in json format to a file |
|
20 |
|
21 User-visible changes |
|
22 -------------------- |
|
23 |
|
24 * the use of fckeditor for text form fields is disabled by default |
|
25 |
|
26 * the 'https-deny-anonymous' configuration setting no longer exists |
|
27 |
|
28 Code movement |
|
29 ------------- |
|
30 |
|
31 The cubicweb.web.views.timeline module (providing the timeline-json, timeline |
|
32 and static-timeline views) has moved to a standalone cube_ |
|
33 |
|
34 .. _cube: https://www.cubicweb.org/project/cubicweb-timeline |
|
35 |
|
36 API changes |
|
37 ----------- |
|
38 |
|
39 * req.set_cookie's "expires" argument, if not None, is expected to be a |
|
40 date or a datetime in UTC. It was previously interpreted as localtime |
|
41 with the UTC offset the server started in, which was inconsistent (we |
|
42 are not aware of any users of that API). |
|
43 |
|
44 * the way to run tests on a postgresql backend has changed slightly, use |
|
45 cubicweb.devtools.{start,stop}pgcluster in setUpModule and tearDownModule |
|
46 |
|
47 * the Connection and ClientConnection objects introduced in CubicWeb 3.19 have |
|
48 been unified. To connect to a repository, use: |
|
49 |
|
50 session = repo.new_session(login, password=...) |
|
51 with session.new_cnx() as cnx: |
|
52 cnx.execute(...) |
|
53 |
|
54 In tests, the 'repo_cnx' and 'client_cnx' methods of RepoAccess are now |
|
55 aliases to 'cnx'. |
|
56 |
|
57 Deprecated code drops |
|
58 --------------------- |
|
59 |
|
60 * the user_callback api has been removed; people should use plain |
|
61 ajax functions instead |
|
62 |
|
63 * the `Pyro` and `Zmq-pickle` remote repository access methods have |
|
64 been entirely removed (emerging alternatives such as rqlcontroller |
|
65 and cwclientlib should be used instead). Note that as a side effect, |
|
66 "repository-only" instances (i.e. without a http component) are no |
|
67 longer possible. If you have any such instances, you will need to |
|
68 rename the configuration file from repository.conf to all-in-one.conf |
|
69 and run ``cubicweb-ctl upgrade`` to update it. Likewise, remote cubicweb-ctl |
|
70 shell is no longer available. |
|
71 |
|
72 * the old (deprecated since 3.19) `DBAPI` api is completely removed |
|
73 |
|
74 * cubicweb.toolsutils.config_connect() has been removed |
|