1 API changes in cubicweb 3.14 |
1 Whats new in CubicWeb 3.14 |
2 ---------------------------- |
2 ========================== |
|
3 |
|
4 API changes |
|
5 ----------- |
3 |
6 |
4 * `Entity.fetch_rql` `restriction` argument has been deprecated and should be |
7 * `Entity.fetch_rql` `restriction` argument has been deprecated and should be |
5 replaced with a call to the new `Entity.fetch_rqlst` method, get the returned |
8 replaced with a call to the new `Entity.fetch_rqlst` method, get the returned |
6 value (a rql `Select` node) and use the RQL syntax tree API to include the |
9 value (a rql `Select` node) and use the RQL syntax tree API to include the |
7 above-mentionned restrictions. |
10 above-mentionned restrictions. |
46 RelationField methods with the same names, that take a form as a parameter. |
49 RelationField methods with the same names, that take a form as a parameter. |
47 |
50 |
48 **No backward compatibility yet**. It's still time to cry for it. |
51 **No backward compatibility yet**. It's still time to cry for it. |
49 Cubes known to be affected: tracker, vcsfile, vcreview |
52 Cubes known to be affected: tracker, vcsfile, vcreview |
50 |
53 |
|
54 * `CWPermission` entity type and its associated require_permission relation type |
|
55 (abstract) and require_group relation definitions have been moved to a new |
|
56 `localperms` cube. With this have gone some functions from the |
|
57 `cubicweb.schemas` package as well as some views. This makes cubicweb itself |
|
58 smaller while you get all the local permissions stuff into a single, |
|
59 documented, place. |
|
60 |
|
61 Backward compat is kept for existing instances, **though you should have |
|
62 installed the localperms cubes**. A proper error should be displayed when |
|
63 trying to migrate to 3.14 an instance the use `CWPermission` without the new |
|
64 cube installed. For new instances / test, you should add a dependancy on the |
|
65 new cube in cubes using this feature, along with a dependancy on cubicweb >= |
|
66 3.14. |
|
67 |
|
68 * jQuery has been updated to 1.6.4. No backward compat issue known (yet...) |
|
69 |
|
70 |
|
71 Unintrusive API changes |
|
72 ----------------------- |
|
73 |
|
74 * refactored properties forms (eg user preferences and site wide properties) to |
|
75 ease overridding |
|
76 |
|
77 * table view allows to set None in 'headers', meaning the label should be fetched |
|
78 from the result set as done by default |
|
79 |
|
80 * new `anonymized_request` decorator to temporary run stuff as an anonymous |
|
81 user, whatever the currently logged in user |
|
82 |
|
83 * new 'verbatimattr' attribute view |
|
84 |
|
85 |
|
86 User interface changes |
|
87 ---------------------- |
|
88 |
|
89 * breadcrumb is properly kept when creating an entity with __linkto |
|
90 |
|
91 * users and groups management now really lead to that (i.e. includes *groups* |
|
92 management) |
|
93 |
|
94 * new 'jsonp' controller with 'jsonexport' and 'ejsonexport' views |
|
95 |
|
96 |
|
97 Configuration |
|
98 ------------ |
|
99 |
|
100 * add option 'resources-concat' to make javascript/css files concatenation |
|
101 optional |