plone.api 2.2.5__tar.gz → 2.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- plone_api-2.2.5/CHANGES.rst → plone_api-2.4.0/CHANGES.md +183 -422
- plone_api-2.4.0/CONTRIBUTING.md +1 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/MANIFEST.in +3 -3
- {plone_api-2.2.5 → plone_api-2.4.0}/PKG-INFO +204 -446
- {plone_api-2.2.5 → plone_api-2.4.0}/README.md +1 -1
- {plone_api-2.2.5 → plone_api-2.4.0}/docs/content.md +150 -3
- {plone_api-2.2.5 → plone_api-2.4.0}/docs/contribute.md +26 -49
- {plone_api-2.2.5/src/plone/api/tests/doctests → plone_api-2.4.0/docs}/portal.md +43 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/pyproject.toml +5 -3
- {plone_api-2.2.5 → plone_api-2.4.0}/setup.py +7 -7
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/content.py +124 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/env.py +3 -3
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/portal.py +41 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/relation.py +4 -3
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/tests/doctests/content.md +150 -3
- plone_api-2.4.0/src/plone/api/tests/doctests/contribute.md +217 -0
- {plone_api-2.2.5/docs → plone_api-2.4.0/src/plone/api/tests/doctests}/portal.md +43 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/tests/test_content.py +209 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/tests/test_doctests.py +6 -6
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/tests/test_portal.py +71 -2
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone.api.egg-info/PKG-INFO +204 -446
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone.api.egg-info/SOURCES.txt +3 -2
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone.api.egg-info/requires.txt +2 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/tox.ini +2 -0
- plone_api-2.2.5/CONTRIBUTING.rst +0 -1
- {plone_api-2.2.5 → plone_api-2.4.0}/LICENSE +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/docs/about.md +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/docs/env.md +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/docs/group.md +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/docs/index.md +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/docs/relation.md +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/docs/user.md +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/setup.cfg +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/__init__.py +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/__init__.py +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/configure.zcml +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/exc.py +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/group.py +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/profiles/testfixture/metadata.xml +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/profiles/testfixture/types/Dexterity_Folder.xml +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/profiles/testfixture/types/Dexterity_Item.xml +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/profiles/testfixture/types.xml +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/testing.zcml +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/tests/Dexterity_Folder.xml +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/tests/Dexterity_Item.xml +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/tests/__init__.py +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/tests/base.py +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/tests/doctests/about.md +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/tests/doctests/env.md +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/tests/doctests/group.md +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/tests/doctests/relation.md +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/tests/doctests/user.md +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/tests/test_env.py +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/tests/test_group.py +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/tests/test_relation.py +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/tests/test_user.py +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/tests/test_validation.py +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/user.py +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone/api/validation.py +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone.api.egg-info/dependency_links.txt +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone.api.egg-info/namespace_packages.txt +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone.api.egg-info/not-zip-safe +0 -0
- {plone_api-2.2.5 → plone_api-2.4.0}/src/plone.api.egg-info/top_level.txt +0 -0
|
@@ -1,27 +1,63 @@
|
|
|
1
|
-
Changelog
|
|
2
|
-
=========
|
|
1
|
+
# Changelog
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
<!--
|
|
4
|
+
You should *NOT* be adding new change log entries to this file.
|
|
5
5
|
You should create a file in the news directory instead.
|
|
6
6
|
For helpful instructions, please see:
|
|
7
7
|
https://github.com/plone/plone.releaser/blob/master/ADD-A-NEWS-ITEM.rst
|
|
8
|
+
-->
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
<!-- towncrier release notes start -->
|
|
10
11
|
|
|
11
|
-
2.
|
|
12
|
-
------------------
|
|
12
|
+
## 2.4.0 (2025-03-14)
|
|
13
13
|
|
|
14
|
-
Bug fixes:
|
|
15
14
|
|
|
15
|
+
### New features:
|
|
16
|
+
|
|
17
|
+
- Add the `api.content.iter_ancestors` function for iterating over an object acquisition chain. @rohnsha0, @ale-rt #531
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug fixes:
|
|
21
|
+
|
|
22
|
+
- Replace `pkg_resources` with `importlib.metadata` @gforcada #4126
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Internal:
|
|
26
|
+
|
|
27
|
+
- Fix CI. @davisagli #571
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Documentation:
|
|
31
|
+
|
|
32
|
+
- Fix pull request preview builds on Read the Docs by replacing deprecated `pkg_resources` with `importlib.metadata`. @stevepiercy #565
|
|
33
|
+
- Improve code style in the documentation snippets #568
|
|
34
|
+
- Add `src` files in the check to determine whether to build a pull request preview on Read the Docs. @stevepiercy #574
|
|
35
|
+
- Fix link in README to Contributing to `plone.api`. @stevepiercy #575
|
|
36
|
+
|
|
37
|
+
## 2.3.0 (2025-02-21)
|
|
38
|
+
|
|
39
|
+
New features:
|
|
40
|
+
|
|
41
|
+
- Added the content API helper function `api.content.get_path`, which gets either the relative or absolute path of an object. @ujsquared (#532)
|
|
42
|
+
- Added two new portal API functions:
|
|
43
|
+
- `api.portal.get_vocabulary`: Get a vocabulary by name
|
|
44
|
+
- `api.portal.get_vocabulary_names`: Get a list of all available vocabulary names
|
|
45
|
+
@ujsquared (#533)
|
|
46
|
+
|
|
47
|
+
Internal:
|
|
48
|
+
|
|
49
|
+
- Making it easier for new contributors to get started with a simple Makefile and a tidy 'contributing' chapter. @ksuess (#558)
|
|
50
|
+
|
|
51
|
+
## 2.2.5 (2025-01-24)
|
|
52
|
+
|
|
53
|
+
Bug fixes:
|
|
16
54
|
|
|
17
55
|
- Fix api.content.get(path=path) when a item in the path is not accessible to the user.
|
|
18
56
|
[pbauer] (#549)
|
|
19
57
|
- Fix DeprecationWarnings. [maurits] (#4090)
|
|
20
58
|
|
|
21
|
-
|
|
22
59
|
Documentation:
|
|
23
60
|
|
|
24
|
-
|
|
25
61
|
- Preview docs on Read the Docs instead of Netlify. @stevepiercy (#545)
|
|
26
62
|
- Remove Netlify stuff, follow up to #545. @stevepiercy
|
|
27
63
|
- Sort and remove duplicate entries in `pyproject.toml`
|
|
@@ -30,269 +66,190 @@ Documentation:
|
|
|
30
66
|
- Enable copy button for code blocks.
|
|
31
67
|
- Add linkcheck to documentation of documentation. (#546)
|
|
32
68
|
|
|
33
|
-
|
|
34
|
-
2.2.4 (2024-12-16)
|
|
35
|
-
------------------
|
|
69
|
+
## 2.2.4 (2024-12-16)
|
|
36
70
|
|
|
37
71
|
Documentation:
|
|
38
72
|
|
|
39
|
-
|
|
40
73
|
- Remove references to unused Coveralls. @stevepiercy (#543)
|
|
41
74
|
|
|
42
|
-
|
|
43
|
-
2.2.3 (2024-10-23)
|
|
44
|
-
------------------
|
|
75
|
+
## 2.2.3 (2024-10-23)
|
|
45
76
|
|
|
46
77
|
Documentation:
|
|
47
78
|
|
|
48
|
-
|
|
49
79
|
- Fixed spelling of prerequisites. @stevepiercy (#541)
|
|
50
80
|
|
|
51
|
-
|
|
52
|
-
2.2.2 (2024-07-30)
|
|
53
|
-
------------------
|
|
81
|
+
## 2.2.2 (2024-07-30)
|
|
54
82
|
|
|
55
83
|
Documentation:
|
|
56
84
|
|
|
57
|
-
|
|
58
85
|
- Overhaul contributing documentation for Plone 6. @stevepiercy (#539)
|
|
59
86
|
- Use correct syntax for `no-index` in documentation. @stevepiercy (#540)
|
|
60
87
|
|
|
61
|
-
|
|
62
|
-
2.2.1 (2024-06-26)
|
|
63
|
-
------------------
|
|
88
|
+
## 2.2.1 (2024-06-26)
|
|
64
89
|
|
|
65
90
|
Bug fixes:
|
|
66
91
|
|
|
67
|
-
|
|
68
92
|
- Removed `portal_properties` from documentation and tests.
|
|
69
93
|
[maurits] (#125)
|
|
70
94
|
|
|
71
|
-
|
|
72
|
-
2.2.0 (2024-05-06)
|
|
73
|
-
------------------
|
|
95
|
+
## 2.2.0 (2024-05-06)
|
|
74
96
|
|
|
75
97
|
New features:
|
|
76
98
|
|
|
77
|
-
|
|
78
99
|
- Report if a permission does not exist
|
|
79
100
|
when calling `api.user.has_permission`.
|
|
80
101
|
[gforcada] (#515)
|
|
81
102
|
|
|
82
|
-
|
|
83
103
|
Bug fixes:
|
|
84
104
|
|
|
85
|
-
|
|
86
105
|
- In relation.create: Fix edge case where existing RelationList value is None. @davisagli (#535)
|
|
87
106
|
|
|
88
|
-
|
|
89
107
|
Internal:
|
|
90
108
|
|
|
91
|
-
|
|
92
109
|
- Update configuration files.
|
|
93
110
|
[plone devs] (cfffba8c)
|
|
94
111
|
|
|
95
|
-
|
|
96
|
-
2.1.0 (2024-02-22)
|
|
97
|
-
------------------
|
|
112
|
+
## 2.1.0 (2024-02-22)
|
|
98
113
|
|
|
99
114
|
New features:
|
|
100
115
|
|
|
101
|
-
|
|
102
116
|
- Implemented unrestricted find of content types. @gogobd (#312)
|
|
103
117
|
|
|
104
|
-
|
|
105
118
|
Internal:
|
|
106
119
|
|
|
107
|
-
|
|
108
120
|
- Enhanced Makefile paths to address whitespace compatibility issues. @Vivek-04022001 (#530)
|
|
109
121
|
|
|
110
|
-
|
|
111
|
-
2.0.9 (2024-02-12)
|
|
112
|
-
------------------
|
|
122
|
+
## 2.0.9 (2024-02-12)
|
|
113
123
|
|
|
114
124
|
Internal:
|
|
115
125
|
|
|
116
|
-
|
|
117
126
|
- Improved efficiency of view retrieval by deferring availability checks to error handling. @samriddhi99 (#479)
|
|
118
127
|
|
|
119
|
-
|
|
120
|
-
2.0.8 (2023-12-14)
|
|
121
|
-
------------------
|
|
128
|
+
## 2.0.8 (2023-12-14)
|
|
122
129
|
|
|
123
130
|
Bug fixes:
|
|
124
131
|
|
|
125
|
-
|
|
126
132
|
- Fix `api.portal.translate` usage with country-specific language codes [@ericof] (#524)
|
|
127
133
|
|
|
128
|
-
|
|
129
|
-
2.0.7 (2023-11-30)
|
|
130
|
-
------------------
|
|
134
|
+
## 2.0.7 (2023-11-30)
|
|
131
135
|
|
|
132
136
|
Documentation:
|
|
133
137
|
|
|
138
|
+
- Use the preferred `git switch -c` command. See <https://www.infoq.com/news/2019/08/git-2-23-switch-restore/>. @stevepiercy (#520)
|
|
134
139
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
2.0.6 (2023-11-03)
|
|
139
|
-
------------------
|
|
140
|
+
## 2.0.6 (2023-11-03)
|
|
140
141
|
|
|
141
142
|
Bug fixes:
|
|
142
143
|
|
|
143
|
-
|
|
144
144
|
- More informative error message in plone.api.content.create() [ajung] (#516)
|
|
145
145
|
|
|
146
|
-
|
|
147
|
-
2.0.5 (2023-10-25)
|
|
148
|
-
------------------
|
|
146
|
+
## 2.0.5 (2023-10-25)
|
|
149
147
|
|
|
150
148
|
Bug fixes:
|
|
151
149
|
|
|
152
|
-
|
|
153
150
|
- Replace deprecated assert methods.
|
|
154
151
|
[gforcada] (#1)
|
|
155
152
|
|
|
156
|
-
|
|
157
153
|
Internal:
|
|
158
154
|
|
|
159
|
-
|
|
160
155
|
- Update GHA
|
|
161
156
|
[gforcada] (#1)
|
|
162
157
|
- Fixup tests because PloneSite gets IContentish again. @Akshat2Jain @jaroel (#518)
|
|
163
158
|
|
|
164
|
-
|
|
165
|
-
2.0.4 (2023-07-14)
|
|
166
|
-
------------------
|
|
159
|
+
## 2.0.4 (2023-07-14)
|
|
167
160
|
|
|
168
161
|
Bug fixes:
|
|
169
162
|
|
|
170
|
-
|
|
171
163
|
- Do not run GitHub Actions tests twice.
|
|
172
164
|
Only run GitHub Actions tests when committing directly against master or main or
|
|
173
165
|
opening a pull request against master or main. This avoids to run the same test
|
|
174
166
|
suite for the same environment twice.
|
|
175
167
|
[thet] (#0)
|
|
168
|
+
|
|
176
169
|
- Mockup TinyMCE settings: Remove unused AtD related views.
|
|
177
170
|
|
|
178
171
|
Fix a test which was checking for "checkDocument" among other available views.
|
|
179
172
|
"checkDocument" was a TinyMCE endpoint for unmaintained "After the Deadline"
|
|
180
173
|
plugin, which is now removed. (#504)
|
|
181
174
|
|
|
182
|
-
|
|
183
175
|
Documentation:
|
|
184
176
|
|
|
185
|
-
|
|
186
177
|
- Enhance API docs of `portal.translate` to show that the domain is optional in some cases. @thet (#510)
|
|
187
178
|
|
|
188
|
-
|
|
189
|
-
2.0.3 (2023-05-22)
|
|
190
|
-
------------------
|
|
179
|
+
## 2.0.3 (2023-05-22)
|
|
191
180
|
|
|
192
181
|
Bug fixes:
|
|
193
182
|
|
|
194
|
-
|
|
195
183
|
- Create relation only if there is no existing one with same source, target, relationname.
|
|
196
184
|
But mark source as modified. @ksuess (#507)
|
|
197
185
|
|
|
198
|
-
|
|
199
|
-
2.0.2 (2023-04-14)
|
|
200
|
-
------------------
|
|
186
|
+
## 2.0.2 (2023-04-14)
|
|
201
187
|
|
|
202
188
|
Bug fixes:
|
|
203
189
|
|
|
204
|
-
|
|
205
190
|
- Fix deletion of relations by relation name. @ksuess (#501)
|
|
206
191
|
|
|
207
|
-
|
|
208
192
|
Documentation:
|
|
209
193
|
|
|
210
|
-
|
|
211
194
|
- Update link for Training. @stevepiercy (#503)
|
|
212
195
|
|
|
213
|
-
|
|
214
|
-
2.0.1 (2023-01-26)
|
|
215
|
-
------------------
|
|
196
|
+
## 2.0.1 (2023-01-26)
|
|
216
197
|
|
|
217
198
|
Documentation:
|
|
218
199
|
|
|
219
|
-
|
|
220
200
|
- Switch to 6.docs.plone.org (was 6.dev-docs.plone.org)
|
|
221
201
|
[ksuess] (#497)
|
|
222
202
|
- Fix links to appropriate versions of docs, in preparation for redirecting docs.plone.org to 6.docs.plone.org. Fix a few typos. Use renamed tox configuration option. [stevepiercy] (#498)
|
|
223
203
|
- Pin Sphinx<5,>=3 due to sphinx-book-theme 0.3.3 requirement. [stevepiercy] (#499)
|
|
224
204
|
- Update links to docs to use correct versions. [stevepiercy] (#500)
|
|
225
205
|
|
|
226
|
-
|
|
227
|
-
2.0.0 (2022-11-26)
|
|
228
|
-
------------------
|
|
206
|
+
## 2.0.0 (2022-11-26)
|
|
229
207
|
|
|
230
208
|
Bug fixes:
|
|
231
209
|
|
|
210
|
+
- Require Python 3.8 or higher. [maurits] (#600)
|
|
232
211
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
2.0.0b4 (2022-11-11)
|
|
237
|
-
--------------------
|
|
212
|
+
## 2.0.0b4 (2022-11-11)
|
|
238
213
|
|
|
239
214
|
Bug fixes:
|
|
240
215
|
|
|
241
|
-
|
|
242
216
|
- Trigger a new deploy of core Plone documentation when plone.api documentation is updated.
|
|
243
217
|
[esteele] (#496)
|
|
244
218
|
|
|
245
|
-
|
|
246
|
-
2.0.0b3 (2022-10-03)
|
|
247
|
-
--------------------
|
|
219
|
+
## 2.0.0b3 (2022-10-03)
|
|
248
220
|
|
|
249
221
|
Bug fixes:
|
|
250
222
|
|
|
251
|
-
|
|
252
223
|
- Use longer password in tests. [davisagli] (#495)
|
|
253
224
|
|
|
254
|
-
|
|
255
|
-
2.0.0b2 (2022-09-07)
|
|
256
|
-
--------------------
|
|
225
|
+
## 2.0.0b2 (2022-09-07)
|
|
257
226
|
|
|
258
227
|
Bug fixes:
|
|
259
228
|
|
|
260
|
-
|
|
261
229
|
- Ensure that the security related context managers
|
|
262
230
|
restore the context even if an error occurs. (#374)
|
|
263
231
|
|
|
264
|
-
|
|
265
|
-
2.0.0b1 (2022-06-23)
|
|
266
|
-
--------------------
|
|
232
|
+
## 2.0.0b1 (2022-06-23)
|
|
267
233
|
|
|
268
234
|
Bug fixes:
|
|
269
235
|
|
|
270
|
-
|
|
271
|
-
- ``mutually_exclusive_parameters`` error message should include only related arguments.
|
|
236
|
+
- `mutually_exclusive_parameters` error message should include only related arguments.
|
|
272
237
|
[martin.peeters] (#489)
|
|
273
238
|
|
|
274
|
-
|
|
275
|
-
2.0.0a4 (2022-06-07)
|
|
276
|
-
--------------------
|
|
239
|
+
## 2.0.0a4 (2022-06-07)
|
|
277
240
|
|
|
278
241
|
New features:
|
|
279
242
|
|
|
280
|
-
|
|
281
243
|
- Documentation: Add meta data [ksuess, stevepiercy] (#485)
|
|
282
244
|
|
|
283
|
-
|
|
284
245
|
Bug fixes:
|
|
285
246
|
|
|
286
|
-
|
|
287
247
|
- plone.api.content.get should always return a content [ericof] (#487)
|
|
288
248
|
|
|
289
|
-
|
|
290
|
-
2.0.0a3 (2022-05-26)
|
|
291
|
-
--------------------
|
|
249
|
+
## 2.0.0a3 (2022-05-26)
|
|
292
250
|
|
|
293
251
|
New features:
|
|
294
252
|
|
|
295
|
-
|
|
296
253
|
- Do not require the request parameter to be specified. If not specify fallback to the global request [ale-rt] (#412)
|
|
297
254
|
- Integration in new Plone 6 documentation. [ksuess] (#469)
|
|
298
255
|
- Preview of documentation per pull request. Netlify bot adds link in PR comments. [ksuess] (#469)
|
|
@@ -301,58 +258,43 @@ New features:
|
|
|
301
258
|
Update documentation [ksuess]
|
|
302
259
|
Add some doctests to module plone.api.relation. [ksuess] (#474)
|
|
303
260
|
|
|
304
|
-
|
|
305
261
|
Bug fixes:
|
|
306
262
|
|
|
307
|
-
|
|
308
263
|
- Clean up docs from review of #469 [stevepiercy] (#476)
|
|
309
264
|
- No unicode literals in documentation. [ksuess] (#483)
|
|
310
265
|
|
|
311
|
-
|
|
312
|
-
2.0.0a2 (2021-10-13)
|
|
313
|
-
--------------------
|
|
266
|
+
## 2.0.0a2 (2021-10-13)
|
|
314
267
|
|
|
315
268
|
Bug fixes:
|
|
316
269
|
|
|
317
|
-
|
|
318
270
|
- Fixed IndexError when calling set_registry_record with wrong value.
|
|
319
271
|
[maurits] (#435)
|
|
320
|
-
- Prevent startup error in relation code when
|
|
272
|
+
- Prevent startup error in relation code when `plone.app.iterate` is missing.
|
|
321
273
|
[maurits] (#462)
|
|
322
274
|
|
|
323
|
-
|
|
324
|
-
2.0.0a1 (2021-09-01)
|
|
325
|
-
--------------------
|
|
275
|
+
## 2.0.0a1 (2021-09-01)
|
|
326
276
|
|
|
327
277
|
Breaking changes:
|
|
328
278
|
|
|
329
|
-
|
|
330
279
|
- Drop support for Archetypes and Python 2.
|
|
331
280
|
[pbauer] (#460)
|
|
332
281
|
|
|
333
|
-
|
|
334
282
|
New features:
|
|
335
283
|
|
|
336
|
-
|
|
337
|
-
- There is now a ``plone.api.relation`` module that make it easier to work with relations.
|
|
284
|
+
- There is now a `plone.api.relation` module that make it easier to work with relations.
|
|
338
285
|
[pbauer] (#449)
|
|
339
286
|
|
|
340
|
-
|
|
341
|
-
1.11.0 (2021-06-30)
|
|
342
|
-
-------------------
|
|
287
|
+
## 1.11.0 (2021-06-30)
|
|
343
288
|
|
|
344
289
|
New features:
|
|
345
290
|
|
|
346
|
-
|
|
347
291
|
- Drop support for Plone 4.3, 5.0, 5.1, add support for 6.0.
|
|
348
292
|
The code might still work, but it is no longer tested.
|
|
349
293
|
You can use releases in the 1.10 series on the older versions.
|
|
350
294
|
[maurits] (#431)
|
|
351
295
|
|
|
352
|
-
|
|
353
296
|
Bug fixes:
|
|
354
297
|
|
|
355
|
-
|
|
356
298
|
- Add tests to verify that the intids utility is correct after moving content.
|
|
357
299
|
[ale-rt, maurits] (#430)
|
|
358
300
|
- Improve tox.ini so that plone.api could be tested locally.
|
|
@@ -363,180 +305,137 @@ Bug fixes:
|
|
|
363
305
|
Fixes: #451
|
|
364
306
|
[thet] (#452)
|
|
365
307
|
|
|
366
|
-
|
|
367
|
-
1.10.4 (2020-09-28)
|
|
368
|
-
-------------------
|
|
308
|
+
## 1.10.4 (2020-09-28)
|
|
369
309
|
|
|
370
310
|
Bug fixes:
|
|
371
311
|
|
|
372
|
-
|
|
373
312
|
- Fixed test failures on Python 3 with Products.MailHost 4.10.
|
|
374
313
|
[maurits] (#3178)
|
|
375
314
|
|
|
376
|
-
|
|
377
|
-
1.10.3 (2020-09-07)
|
|
378
|
-
-------------------
|
|
315
|
+
## 1.10.3 (2020-09-07)
|
|
379
316
|
|
|
380
317
|
Bug fixes:
|
|
381
318
|
|
|
382
|
-
|
|
383
|
-
- Fixed deprecation warning for ``CMFPlone.interfaces.ILanguageSchema``.
|
|
319
|
+
- Fixed deprecation warning for `CMFPlone.interfaces.ILanguageSchema`.
|
|
384
320
|
[maurits] (#3130)
|
|
385
321
|
|
|
386
|
-
|
|
387
|
-
1.10.2 (2020-04-20)
|
|
388
|
-
-------------------
|
|
322
|
+
## 1.10.2 (2020-04-20)
|
|
389
323
|
|
|
390
324
|
Bug fixes:
|
|
391
325
|
|
|
392
|
-
|
|
393
326
|
- Minor packaging updates. (#1)
|
|
394
327
|
|
|
395
|
-
|
|
396
|
-
1.10.1 (2020-03-04)
|
|
397
|
-
-------------------
|
|
328
|
+
## 1.10.1 (2020-03-04)
|
|
398
329
|
|
|
399
330
|
Bug fixes:
|
|
400
331
|
|
|
401
|
-
|
|
402
332
|
- Remove deprecation warnings [ale-rt] (#432)
|
|
403
333
|
- In tests, use stronger password.
|
|
404
334
|
[maurits] (#436)
|
|
405
335
|
- Removed duplicate and failing inline doctest for content.find.
|
|
406
336
|
[maurits] (#437)
|
|
407
337
|
|
|
408
|
-
|
|
409
|
-
1.10.0 (2019-05-01)
|
|
410
|
-
-------------------
|
|
338
|
+
## 1.10.0 (2019-05-01)
|
|
411
339
|
|
|
412
340
|
New features:
|
|
413
341
|
|
|
414
|
-
|
|
415
342
|
- Gracefully handle missing registry records on an interface.
|
|
416
|
-
|
|
343
|
+
: [gforcada] (#428)
|
|
417
344
|
|
|
418
|
-
|
|
419
|
-
1.9.2 (2019-03-04)
|
|
420
|
-
------------------
|
|
345
|
+
## 1.9.2 (2019-03-04)
|
|
421
346
|
|
|
422
347
|
Bug fixes:
|
|
423
348
|
|
|
424
|
-
|
|
425
|
-
- Fix querying ``object_provides`` for multiple interfaces using 'and'
|
|
349
|
+
- Fix querying `object_provides` for multiple interfaces using 'and'
|
|
426
350
|
operator. [fRiSi] (#426)
|
|
427
351
|
|
|
428
|
-
|
|
429
|
-
1.9.1 (2018-11-20)
|
|
430
|
-
------------------
|
|
352
|
+
## 1.9.1 (2018-11-20)
|
|
431
353
|
|
|
432
354
|
Bug fixes:
|
|
433
355
|
|
|
434
356
|
- Show only local roles when inherit=False.
|
|
435
357
|
[tschorr]
|
|
436
358
|
|
|
437
|
-
|
|
438
|
-
1.9.0 (2018-09-27)
|
|
439
|
-
------------------
|
|
359
|
+
## 1.9.0 (2018-09-27)
|
|
440
360
|
|
|
441
361
|
New features:
|
|
442
362
|
|
|
443
363
|
- Python 2/3 support.
|
|
444
364
|
[pbauer]
|
|
445
365
|
|
|
446
|
-
|
|
447
|
-
1.8.5 (2018-09-14)
|
|
448
|
-
------------------
|
|
366
|
+
## 1.8.5 (2018-09-14)
|
|
449
367
|
|
|
450
368
|
Bug fixes:
|
|
451
369
|
|
|
452
370
|
- Removed allow-hosts from base.cfg, so we can use the new pypi warehouse.
|
|
453
|
-
Refs https://github.com/plone/plone.api/issues/403
|
|
371
|
+
Refs <https://github.com/plone/plone.api/issues/403>
|
|
454
372
|
[jaroel]
|
|
455
|
-
|
|
456
373
|
- fix typos in doc strings
|
|
457
374
|
[tkimnguyen]
|
|
458
|
-
|
|
459
375
|
- Fix failing AT Collection creation when using api.content.create.
|
|
460
376
|
[gbastien]
|
|
461
377
|
|
|
462
|
-
|
|
463
|
-
1.8.4 (2018-04-24)
|
|
464
|
-
------------------
|
|
378
|
+
## 1.8.4 (2018-04-24)
|
|
465
379
|
|
|
466
380
|
Bug fixes:
|
|
467
381
|
|
|
468
|
-
- Call
|
|
469
|
-
This prevents
|
|
470
|
-
values already set by
|
|
471
|
-
Fixes
|
|
382
|
+
- Call `processForm` with `{None: None}` dict as values.
|
|
383
|
+
This prevents `processForm` using `REQUEST.form` and overwriting
|
|
384
|
+
values already set by `invokeFactory`.
|
|
385
|
+
Fixes [issue 99](https://github.com/plone/plone.api/issues/99).
|
|
472
386
|
[david-batranu]
|
|
473
|
-
|
|
474
387
|
- Simplification/minor speedup:
|
|
475
388
|
Permissions checks now directly use AccessControl.
|
|
476
389
|
Technical its now exact the same as before.
|
|
477
390
|
Before a tool lookup was needed, calling a utility function, calling AccessControl.
|
|
478
391
|
[jensens]
|
|
479
392
|
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
1.8.3 (2018-02-23)
|
|
483
|
-
------------------
|
|
393
|
+
## 1.8.3 (2018-02-23)
|
|
484
394
|
|
|
485
395
|
Bug fixes:
|
|
486
396
|
|
|
487
|
-
- Improved code quality according to isort and flake8.
|
|
488
|
-
|
|
489
|
-
- Fixed regular expression in test for Plone version. [maurits]
|
|
397
|
+
- Improved code quality according to isort and flake8. [maurits]
|
|
398
|
+
- Fixed regular expression in test for Plone version. [maurits]
|
|
490
399
|
|
|
491
|
-
|
|
492
|
-
1.8.2 (2018-01-17)
|
|
493
|
-
------------------
|
|
400
|
+
## 1.8.2 (2018-01-17)
|
|
494
401
|
|
|
495
402
|
Bug fixes:
|
|
496
403
|
|
|
497
404
|
- Fix test in Zope4,
|
|
498
|
-
where
|
|
405
|
+
where `Products.PlonePAS.tools.memberdata.MemberData` is an adapter now.
|
|
499
406
|
It can't be proofed to be equal when fetched twice.
|
|
500
407
|
[jensens]
|
|
501
|
-
|
|
502
408
|
- Change api.group.get_groups to work with CMF master.
|
|
503
409
|
[jaroel]
|
|
504
|
-
|
|
505
410
|
- Added six to deal with Python 2 / 3 compatibility.
|
|
506
411
|
[rudaporto]
|
|
507
412
|
|
|
508
|
-
1.8.1 (2017-10-17)
|
|
509
|
-
------------------
|
|
413
|
+
## 1.8.1 (2017-10-17)
|
|
510
414
|
|
|
511
415
|
Bug fixes:
|
|
512
416
|
|
|
513
417
|
- Don't rename an object when the id already is the target id.
|
|
514
|
-
Fixes
|
|
418
|
+
Fixes [issue 361](https://github.com/plone/plone.api/issues/361).
|
|
515
419
|
[jaroel]
|
|
516
|
-
|
|
517
420
|
- Change content.delete to allow both obj=None and objects=[] or objects=None.
|
|
518
|
-
Fixes
|
|
421
|
+
Fixes [issue 383](https://github.com/plone/plone.api/issues/383).
|
|
519
422
|
[jaroel]
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
``nl-be`` (Belgian/Flemish) should fall back to ``nl`` (Dutch).
|
|
423
|
+
- Let `zope.i18n` do the language negotiation for our `translate` function.
|
|
424
|
+
Our `get_current_translation` does not always give the correct one, especially with combined languages:
|
|
425
|
+
`nl-be` (Belgian/Flemish) should fall back to `nl` (Dutch).
|
|
524
426
|
The correct negotiated language can also differ per translation domain, which we do not account for.
|
|
525
|
-
|
|
526
|
-
Fixes
|
|
427
|
+
`zope.i18n` does that better.
|
|
428
|
+
Fixes [issue 379](https://github.com/plone/plone.api/issues/379).
|
|
527
429
|
[maurits]
|
|
528
|
-
|
|
529
|
-
- Fix use of Globals.DB which was removed in Zope4 (Fix https://github.com/plone/plone.api/issues/385)
|
|
430
|
+
- Fix use of Globals.DB which was removed in Zope4 (Fix <https://github.com/plone/plone.api/issues/385>)
|
|
530
431
|
[pbauer]
|
|
531
432
|
|
|
532
|
-
1.8 (2017-08-05)
|
|
533
|
-
----------------
|
|
433
|
+
## 1.8 (2017-08-05)
|
|
534
434
|
|
|
535
435
|
New features:
|
|
536
436
|
|
|
537
437
|
- Add method to check if ZODB is in read-only mode.
|
|
538
438
|
[loechel]
|
|
539
|
-
|
|
540
439
|
- added tox.ini and code convention definitions in setup.py and .editorconfig so that they could be enforced
|
|
541
440
|
[loechel]
|
|
542
441
|
|
|
@@ -545,9 +444,7 @@ Bug fixes:
|
|
|
545
444
|
- Fixes Tests and code convention son this repository.
|
|
546
445
|
[loechel]
|
|
547
446
|
|
|
548
|
-
|
|
549
|
-
1.7 (2017-05-23)
|
|
550
|
-
----------------
|
|
447
|
+
## 1.7 (2017-05-23)
|
|
551
448
|
|
|
552
449
|
New features:
|
|
553
450
|
|
|
@@ -556,39 +453,31 @@ New features:
|
|
|
556
453
|
|
|
557
454
|
Bug fixes:
|
|
558
455
|
|
|
559
|
-
- Simplify the
|
|
456
|
+
- Simplify the `plone.api.content.delete` method.
|
|
560
457
|
[thet]
|
|
561
|
-
|
|
562
458
|
- content.copy with safe_id=False should raise it's own exception. Fixes #340
|
|
563
459
|
[jaroel]
|
|
564
460
|
|
|
565
|
-
|
|
566
|
-
1.6.1 (2017-03-31)
|
|
567
|
-
------------------
|
|
461
|
+
## 1.6.1 (2017-03-31)
|
|
568
462
|
|
|
569
463
|
Bug fixes:
|
|
570
464
|
|
|
571
465
|
- Simplify delete and transition functions.
|
|
572
466
|
[adamcheasley]
|
|
573
|
-
|
|
574
467
|
- Do not reassign dynamic roles as local roles when using user.grant_roles().
|
|
575
468
|
Fixes same issue as #351 for groups.
|
|
576
469
|
[pbauer]
|
|
577
|
-
|
|
578
470
|
- Include local roles granted from being in a group when using "inherit=False"
|
|
579
471
|
in user.get_roles. Fixes #346
|
|
580
472
|
[pbauer]
|
|
581
|
-
|
|
582
473
|
- Ignore local roles granted on parents when using "inherit=False" in either
|
|
583
474
|
user.get_roles or group.get_roles. Fixes #354
|
|
584
475
|
[pbauer]
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
handler https://github.com/plone/plone.api/issues/99
|
|
476
|
+
- Fix title wrongly set by `api.content.create` when called from GS setup
|
|
477
|
+
handler <https://github.com/plone/plone.api/issues/99>
|
|
588
478
|
[gotcha, pgrunewald]
|
|
589
479
|
|
|
590
|
-
1.6 (2017-02-15)
|
|
591
|
-
----------------
|
|
480
|
+
## 1.6 (2017-02-15)
|
|
592
481
|
|
|
593
482
|
New features:
|
|
594
483
|
|
|
@@ -599,31 +488,23 @@ Bug fixes:
|
|
|
599
488
|
|
|
600
489
|
- Support user.get_roles for anonymous users. Refs #339
|
|
601
490
|
[jaroel]
|
|
602
|
-
|
|
603
491
|
- Fix imports from Globals that was removed in Zope4
|
|
604
492
|
[pbauer]
|
|
605
|
-
|
|
606
493
|
- Fix 'bad' quotes.
|
|
607
494
|
[adamcheasley]
|
|
608
|
-
|
|
609
495
|
- Typo in the documentation.
|
|
610
496
|
[ale-rt]
|
|
611
|
-
|
|
612
497
|
- Fix error in tests that try to add built-in roles, which no longer fails
|
|
613
498
|
silently in Zope4.
|
|
614
499
|
[MatthewWilkes]
|
|
615
|
-
|
|
616
500
|
- Do not reassign global roles as local roles when using group.grant_roles()
|
|
617
501
|
[pbauer]
|
|
618
|
-
|
|
619
502
|
- reST syntax in documentation, follow style-guide, adjust setup.py
|
|
620
503
|
[svx]
|
|
621
|
-
|
|
622
504
|
- Do not reassign dynamic roles as local roles when using group.grant_roles().
|
|
623
505
|
[pbauer]
|
|
624
506
|
|
|
625
|
-
1.5.1 (2016-12-06)
|
|
626
|
-
------------------
|
|
507
|
+
## 1.5.1 (2016-12-06)
|
|
627
508
|
|
|
628
509
|
New:
|
|
629
510
|
|
|
@@ -632,103 +513,80 @@ New:
|
|
|
632
513
|
|
|
633
514
|
Fixes:
|
|
634
515
|
|
|
635
|
-
- Fix translation related tests to use the
|
|
516
|
+
- Fix translation related tests to use the `plonelocales` domain instead `passwordresettool`.
|
|
636
517
|
Products.PasswordResetTool was removed in Plone 5.1.
|
|
637
518
|
[thet]
|
|
638
|
-
|
|
639
519
|
- Allow plone.api.group.get_groups for Anonymous user. Refs #290
|
|
640
520
|
[jaroel]
|
|
641
|
-
|
|
642
521
|
- Allow adopting to a Special User. Fixes #320 - checking permissions for Anonymous User.
|
|
643
522
|
[jaroel]
|
|
644
|
-
|
|
645
523
|
- Fix an AttributeError in `api.user.revoke_roles`
|
|
646
524
|
[ale-rt]
|
|
647
|
-
|
|
648
525
|
- Remove print statements and use @security decorators to make
|
|
649
526
|
code-analysis happy.
|
|
650
527
|
[ale-rt]
|
|
651
|
-
|
|
652
528
|
- Typo in the documentation.
|
|
653
529
|
[ale-rt]
|
|
654
|
-
|
|
655
530
|
- Fix travis and coveralls.
|
|
656
531
|
[gforcada]
|
|
657
|
-
|
|
658
532
|
- Various wording tweaks
|
|
659
533
|
[tkimnguyen]
|
|
660
|
-
|
|
661
534
|
- In api.content.move if source **and** target are specified and target is already
|
|
662
535
|
source parent, skip the operation.
|
|
663
|
-
|
|
664
536
|
- Fix test
|
|
665
537
|
[gforcada]
|
|
666
|
-
|
|
667
538
|
- Fix PRINTINGMAILHOST_ENABLED evaluation to respect Products.PrintingMailHost
|
|
668
539
|
internal logic
|
|
669
540
|
[ale-rt]
|
|
670
541
|
|
|
671
|
-
1.5 (2016-02-20)
|
|
672
|
-
----------------
|
|
542
|
+
## 1.5 (2016-02-20)
|
|
673
543
|
|
|
674
544
|
New:
|
|
675
545
|
|
|
676
546
|
- Add `portal.translate`
|
|
677
547
|
[ebrehault]
|
|
678
|
-
|
|
679
548
|
- Add `portal.get_default_language` and `portal.get_current_language`
|
|
680
549
|
[ebrehault]
|
|
681
550
|
|
|
682
551
|
Fixes:
|
|
683
552
|
|
|
684
|
-
- Fix
|
|
553
|
+
- Fix `test_zope_version` test to be able to deal with development versions of Zope.
|
|
685
554
|
[thet]
|
|
686
|
-
|
|
687
555
|
- Remove the Plone APIs conventions. They are moved to
|
|
688
|
-
https://5.docs.plone.org/develop/styleguide
|
|
689
|
-
and https://5.docs.plone.org/develop/coredev/docs/git.html
|
|
556
|
+
<https://5.docs.plone.org/develop/styleguide>
|
|
557
|
+
and <https://5.docs.plone.org/develop/coredev/docs/git.html>
|
|
690
558
|
[thet]
|
|
691
|
-
|
|
692
559
|
- Cleanup code to match Plone's style guide.
|
|
693
560
|
[gforcada]
|
|
694
|
-
|
|
695
561
|
- Fix corner case on content.transition code: if a transition only has
|
|
696
|
-
exit transitions and no transition goes back to it
|
|
562
|
+
exit transitions and no transition goes back to it `find_path` will fail.
|
|
697
563
|
[gforcada]
|
|
698
|
-
|
|
699
564
|
- Handle automatic transitions on api.content.transition.
|
|
700
565
|
[gforcada]
|
|
701
566
|
|
|
702
|
-
1.4.11 (2016-01-08)
|
|
703
|
-
-------------------
|
|
567
|
+
## 1.4.11 (2016-01-08)
|
|
704
568
|
|
|
705
569
|
New:
|
|
706
570
|
|
|
707
571
|
- Allow to set/get registry settings from an interface.
|
|
708
|
-
https://github.com/plone/plone.api/issues/269
|
|
572
|
+
<https://github.com/plone/plone.api/issues/269>
|
|
709
573
|
[gforcada]
|
|
710
574
|
|
|
711
|
-
|
|
712
|
-
1.4.10 (2015-11-19)
|
|
713
|
-
-------------------
|
|
575
|
+
## 1.4.10 (2015-11-19)
|
|
714
576
|
|
|
715
577
|
Fixes:
|
|
716
578
|
|
|
717
579
|
- Rerelease, as 1.4.9 misses the doctests directory.
|
|
718
580
|
[maurits]
|
|
719
581
|
|
|
720
|
-
|
|
721
|
-
1.4.9 (2015-11-19)
|
|
722
|
-
------------------
|
|
582
|
+
## 1.4.9 (2015-11-19)
|
|
723
583
|
|
|
724
584
|
Fixes:
|
|
725
585
|
|
|
726
586
|
- #283 portal.send_email does not respect transaction aborts
|
|
727
587
|
[jensens]
|
|
728
588
|
|
|
729
|
-
|
|
730
|
-
1.4.8 (2015-10-27)
|
|
731
|
-
------------------
|
|
589
|
+
## 1.4.8 (2015-10-27)
|
|
732
590
|
|
|
733
591
|
New:
|
|
734
592
|
|
|
@@ -740,246 +598,179 @@ Fixes:
|
|
|
740
598
|
- Fixed Plone 5 version comparison in tests.
|
|
741
599
|
[maurits]
|
|
742
600
|
|
|
743
|
-
|
|
744
|
-
1.4.7 (2015-09-27)
|
|
745
|
-
------------------
|
|
601
|
+
## 1.4.7 (2015-09-27)
|
|
746
602
|
|
|
747
603
|
- Get email_charset value from the configuration registry, falling back
|
|
748
604
|
to portal property if not found.
|
|
749
605
|
[esteele]
|
|
750
606
|
|
|
607
|
+
## 1.4.6 (2015-09-14)
|
|
751
608
|
|
|
752
|
-
|
|
753
|
-
------------------
|
|
754
|
-
|
|
755
|
-
- Fixed `api.content.find` with combination of depth and path. Path
|
|
609
|
+
- Fixed `api.content.find` with combination of depth and path. Path
|
|
756
610
|
is no longer ignored then.
|
|
757
611
|
[maurits]
|
|
758
|
-
|
|
759
612
|
- Remove unittest2 dependency.
|
|
760
613
|
[gforcada]
|
|
761
614
|
|
|
762
|
-
|
|
763
|
-
1.4.5 (2015-09-09)
|
|
764
|
-
------------------
|
|
615
|
+
## 1.4.5 (2015-09-09)
|
|
765
616
|
|
|
766
617
|
- Fixed long description of package to be valid restructured text,
|
|
767
618
|
displaying nicely on PyPI.
|
|
768
619
|
[maurits]
|
|
769
620
|
|
|
770
|
-
|
|
771
|
-
1.4.4 (2015-09-08)
|
|
772
|
-
------------------
|
|
621
|
+
## 1.4.4 (2015-09-08)
|
|
773
622
|
|
|
774
623
|
- Symlink doctests so that they'll be included in the built egg and don't
|
|
775
624
|
break coredev builds.
|
|
776
625
|
[esteele]
|
|
777
626
|
|
|
778
|
-
|
|
779
|
-
1.4.3 (2015-09-08)
|
|
780
|
-
------------------
|
|
627
|
+
## 1.4.3 (2015-09-08)
|
|
781
628
|
|
|
782
629
|
- Try to get use_email_as_login from registry first.
|
|
783
630
|
[pbauer]
|
|
784
631
|
|
|
785
|
-
|
|
786
|
-
1.4.2 (2015-09-07)
|
|
787
|
-
------------------
|
|
632
|
+
## 1.4.2 (2015-09-07)
|
|
788
633
|
|
|
789
634
|
- Use the version defined in Products.CMFPlone in env.plone_version, just like Plone's control panel.
|
|
790
635
|
Also fixes Jenkins testrunner where we don't have the Plone egg.
|
|
791
636
|
[jaroel]
|
|
792
637
|
|
|
793
|
-
|
|
794
|
-
1.4.1 (2015-09-07)
|
|
795
|
-
------------------
|
|
638
|
+
## 1.4.1 (2015-09-07)
|
|
796
639
|
|
|
797
640
|
- Removed dependency on Products.CMFPlone to avoid circular dependencies. Products.CMFPlone will be there.
|
|
798
641
|
[jaroel]
|
|
799
642
|
|
|
800
|
-
|
|
801
|
-
1.4 (2015-09-04)
|
|
802
|
-
----------------
|
|
643
|
+
## 1.4 (2015-09-04)
|
|
803
644
|
|
|
804
645
|
- plone.api.content.delete: add option check_linkintegrity. If True raise
|
|
805
646
|
exception if deleting would result in broken links.
|
|
806
647
|
[pbauer]
|
|
807
|
-
|
|
808
648
|
- plone.api.content.find: object_provides arguments accepts tuples.
|
|
809
649
|
Fixes #266.
|
|
810
650
|
[ale-rt]
|
|
811
|
-
|
|
812
651
|
- Fixed plone.api.content.create in Plone 5. Refs 160.
|
|
813
652
|
[jaroel]
|
|
814
653
|
- plone.api.content.transition: Now accepts kwargs that can be supplied to the workflow transition.
|
|
815
654
|
[neilferreira]
|
|
816
655
|
|
|
817
|
-
1.3.3 (2015-07-14)
|
|
818
|
-
------------------
|
|
656
|
+
## 1.3.3 (2015-07-14)
|
|
819
657
|
|
|
820
658
|
- plone.api.content.get_state now allows for an optional default value.
|
|
821
659
|
This is used when no workflow is defined for the object. Refs #246
|
|
822
660
|
[jaroel]
|
|
823
|
-
|
|
824
661
|
- plone.api.portal.get_registry_record now suggests look-alike records when no records is found. Refs #249.
|
|
825
662
|
[jaroel]
|
|
826
|
-
|
|
827
663
|
- Fixed tests for Plone 5. Refs #241.
|
|
828
664
|
[jaroel]
|
|
829
|
-
|
|
830
665
|
- Support Products.PrintingMailHost. Refs #228.
|
|
831
666
|
[jaroel]
|
|
832
|
-
|
|
833
667
|
- api.plone.org docs point to docs.plone.org/external/plone.api/docs/. Refs #202
|
|
834
668
|
[jaroel]
|
|
835
|
-
|
|
836
669
|
- plone.api.content.get_view no longer swallows exceptions.
|
|
837
670
|
[jaroel]
|
|
838
|
-
|
|
839
671
|
- Add plone.api.content.find. Refs #210
|
|
840
672
|
[jaroel]
|
|
841
|
-
|
|
842
673
|
- Make send_email compatible with Plone >= 5.0b2.
|
|
843
674
|
[pbauer]
|
|
844
|
-
|
|
845
675
|
- Use the source's parent as a target when no target is specified.
|
|
846
676
|
[jaroel]
|
|
847
|
-
|
|
848
677
|
- Make Products.Archetypes dependency optional. Fixes #197
|
|
849
678
|
[jaroel]
|
|
850
|
-
|
|
851
679
|
- Added local TOCS to main docs pages. Fixes #90.
|
|
852
680
|
[jaroel]
|
|
853
|
-
|
|
854
681
|
- Allow deleting multiple objects. Fixes #198
|
|
855
682
|
[jaroel]
|
|
856
|
-
|
|
857
683
|
- Fixed `make docs`.
|
|
858
684
|
[jaroel]
|
|
859
|
-
|
|
860
685
|
- Support Zope users in user.adopt_user. Fixes #171 and #157.
|
|
861
686
|
[jaroel]
|
|
862
|
-
|
|
863
687
|
- explicit dependencies in setup.py, explicit zcml loading in tests.
|
|
864
688
|
[jensens]
|
|
865
|
-
|
|
866
689
|
- import getToolByName from origin location
|
|
867
690
|
[jensens]
|
|
868
|
-
|
|
869
691
|
- overhaul of documentation: semantic linebreaks, few links fixed, minor
|
|
870
692
|
rewording.
|
|
871
693
|
[jensens]
|
|
872
|
-
|
|
873
|
-
- fix ``revoke_roles`` method: now if is't called with obj parameter,
|
|
694
|
+
- fix `revoke_roles` method: now if is't called with obj parameter,
|
|
874
695
|
it doesn't set inherited roles locally.
|
|
875
696
|
[cekk]
|
|
876
697
|
|
|
877
|
-
1.3.2 (2014-11-17)
|
|
878
|
-
------------------
|
|
698
|
+
## 1.3.2 (2014-11-17)
|
|
879
699
|
|
|
880
|
-
- fixes #190 - broken
|
|
700
|
+
- fixes #190 - broken `MANIFEST.in`.
|
|
881
701
|
[jensens]
|
|
882
702
|
|
|
703
|
+
## 1.3.1 (2014-11-17)
|
|
883
704
|
|
|
884
|
-
1.3.
|
|
885
|
-
------------------
|
|
886
|
-
|
|
887
|
-
- Resolves issues with ``README.rst`` symlink that prevented 1.3.0 from
|
|
705
|
+
- Resolves issues with `README.rst` symlink that prevented 1.3.0 from
|
|
888
706
|
being installed. And please never ever in future use symlinks in eggs, ok?
|
|
889
707
|
[jensens]
|
|
890
708
|
|
|
891
|
-
|
|
892
|
-
1.3.0 (2014-11-17)
|
|
893
|
-
------------------
|
|
709
|
+
## 1.3.0 (2014-11-17)
|
|
894
710
|
|
|
895
711
|
- Fixes #184 NameChooser on rename used the wrong way and fails on
|
|
896
712
|
safe_id=True.
|
|
897
713
|
[benniboy]
|
|
898
|
-
|
|
899
714
|
- Clarified documentation for content.copy, refs #185.
|
|
900
715
|
[benniboy]
|
|
901
|
-
|
|
902
716
|
- Fixes if a content is copied in the same folder or in a target folder, where
|
|
903
717
|
same source id exists, the existing source(same folder) or third object
|
|
904
718
|
(same id as source) gets renamed instead of the target.
|
|
905
719
|
[benniboy]
|
|
906
|
-
|
|
907
720
|
- Use getUserById to find the user when given a User object in adopt_user.
|
|
908
721
|
[tschanzt]
|
|
909
|
-
|
|
910
|
-
- Made ``api.portal.get_localized_time`` also work with datetime.date.
|
|
722
|
+
- Made `api.portal.get_localized_time` also work with datetime.date.
|
|
911
723
|
[nightmarebadger]
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
``api.user.revoke_roles``.
|
|
724
|
+
- Raise better/expected errors in `api.user.grant_roles` and
|
|
725
|
+
`api.user.revoke_roles`.
|
|
915
726
|
[adamcheasley]
|
|
916
|
-
|
|
917
|
-
- Add ``api.user.has_permission`` ref #172.
|
|
727
|
+
- Add `api.user.has_permission` ref #172.
|
|
918
728
|
[adamcheasley]
|
|
919
729
|
|
|
920
|
-
|
|
921
|
-
1.2.1 (2014-06-24)
|
|
922
|
-
------------------
|
|
730
|
+
## 1.2.1 (2014-06-24)
|
|
923
731
|
|
|
924
732
|
- Resolve issues with CHANGES.rst symlink that prevented 1.2.0 from
|
|
925
733
|
being installed in some circumstances.
|
|
926
734
|
[mattss]
|
|
927
735
|
|
|
736
|
+
## 1.2.0 (2014-06-24)
|
|
928
737
|
|
|
929
|
-
|
|
930
|
-
------------------
|
|
931
|
-
|
|
932
|
-
- Enhance ``api.content.transition`` with the ability to transition from the
|
|
738
|
+
- Enhance `api.content.transition` with the ability to transition from the
|
|
933
739
|
current state to a given state without knowing the transition 'path'
|
|
934
740
|
refs. #162
|
|
935
741
|
[adamcheasley]
|
|
936
|
-
|
|
937
|
-
- Add ``api.env.plone_version()`` and ``api.env.zope_version()``, refs #126.
|
|
742
|
+
- Add `api.env.plone_version()` and `api.env.zope_version()`, refs #126.
|
|
938
743
|
[hvelarde]
|
|
939
|
-
|
|
940
|
-
- Stop UnicodeDecodeErrors being swallowed in ``api.content.create``.
|
|
744
|
+
- Stop UnicodeDecodeErrors being swallowed in `api.content.create`.
|
|
941
745
|
[mattss]
|
|
942
|
-
|
|
943
|
-
- Catch AttributeError in ``api.content.get`` (raised if only part of the
|
|
746
|
+
- Catch AttributeError in `api.content.get` (raised if only part of the
|
|
944
747
|
traversal path exists).
|
|
945
748
|
[mattss]
|
|
946
749
|
|
|
947
|
-
|
|
948
|
-
1.1.0 (2013-10-12)
|
|
949
|
-
------------------
|
|
750
|
+
## 1.1.0 (2013-10-12)
|
|
950
751
|
|
|
951
752
|
- List supported Plone versions in setup.py.
|
|
952
753
|
[zupo]
|
|
953
|
-
|
|
954
754
|
- Plone 4.0 and 4.1 are now tested under Python 2.6 on CI.
|
|
955
755
|
[hvelarde]
|
|
956
|
-
|
|
957
756
|
- Use Plone 4.3 on development by default (was 4.2).
|
|
958
757
|
[hvelarde]
|
|
959
758
|
|
|
960
|
-
|
|
961
|
-
1.1.0-rc.1 (2013-10-10)
|
|
962
|
-
-----------------------
|
|
759
|
+
## 1.1.0-rc.1 (2013-10-10)
|
|
963
760
|
|
|
964
761
|
- Fix README.rst so it renders correctly on PyPI.
|
|
965
762
|
[zupo]
|
|
966
|
-
|
|
967
763
|
- Use api.plone.org/foo redirects.
|
|
968
764
|
[zupo]
|
|
969
|
-
|
|
970
765
|
- Add MANIFEST.in file.
|
|
971
766
|
[hvelarde]
|
|
972
767
|
|
|
973
|
-
|
|
974
|
-
1.0.0-rc.3 (2013-10-09)
|
|
975
|
-
-----------------------
|
|
768
|
+
## 1.0.0-rc.3 (2013-10-09)
|
|
976
769
|
|
|
977
770
|
- Packaging issues.
|
|
978
771
|
[zupo]
|
|
979
772
|
|
|
980
|
-
|
|
981
|
-
1.0.0-rc.2 (2013-10-09)
|
|
982
|
-
-----------------------
|
|
773
|
+
## 1.0.0-rc.2 (2013-10-09)
|
|
983
774
|
|
|
984
775
|
- Proof-read the docs, improved grammar and wording.
|
|
985
776
|
[cewing]
|
|
@@ -993,17 +784,18 @@ Fixes:
|
|
|
993
784
|
- Amend user.get method to accept a userid parameter, refs #112.
|
|
994
785
|
[cewing, xiru, winstonf88]
|
|
995
786
|
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
787
|
+
:::{note}
|
|
788
|
+
This change fixes a bug in the earlier implementation that could cause
|
|
789
|
+
errors in some situations. This situation will only arise if the userid and
|
|
790
|
+
username for a user are not the same. If membrane is being used for content-
|
|
791
|
+
based user objects, or if email-as-login is enabled *and* a user has changed
|
|
792
|
+
their email address this will be the case. In the previous implementation
|
|
793
|
+
the username parameter was implicitly being treated as userid. The new
|
|
794
|
+
implementation does not do so. If consumer code is relying on this bug and
|
|
795
|
+
passing userid, and if that code uses the username parameter as a keyword
|
|
796
|
+
parameter, then lookup will fail. In all other cases, there should be no
|
|
797
|
+
difference.
|
|
798
|
+
:::
|
|
1007
799
|
|
|
1008
800
|
- Add api.env.debug_mode() and api.env.test_mode(), refs #125.
|
|
1009
801
|
[sdelcourt]
|
|
@@ -1049,103 +841,72 @@ Fixes:
|
|
|
1049
841
|
- Fixed moving folderish objects.
|
|
1050
842
|
[pingviini]
|
|
1051
843
|
|
|
1052
|
-
|
|
1053
|
-
1.0.0-rc.1 (2013-01-27)
|
|
1054
|
-
-----------------------
|
|
844
|
+
## 1.0.0-rc.1 (2013-01-27)
|
|
1055
845
|
|
|
1056
846
|
- Increase test coverage.
|
|
1057
847
|
[cillianderoiste, JessN, reinhardt, zupo]
|
|
1058
|
-
|
|
1059
|
-
- Implementation of ``api.env.adopt_roles()`` context manager for
|
|
848
|
+
- Implementation of `api.env.adopt_roles()` context manager for
|
|
1060
849
|
temporarily switching roles inside a block.
|
|
1061
850
|
[RichyB]
|
|
1062
|
-
|
|
1063
|
-
- Created ``api.env`` module for interacting with global environment.
|
|
851
|
+
- Created `api.env` module for interacting with global environment.
|
|
1064
852
|
[RichyB]
|
|
1065
|
-
|
|
1066
853
|
- Decorators for defining constraints on api methods. Depend on `decorator`
|
|
1067
854
|
package.
|
|
1068
855
|
[JessN]
|
|
1069
|
-
|
|
1070
856
|
- Resolved #61: Improve api.portal.get().
|
|
1071
857
|
[cillianderoiste]
|
|
1072
|
-
|
|
1073
858
|
- Use plone.api methods in plone.api codebase.
|
|
1074
859
|
[zupo]
|
|
1075
|
-
|
|
1076
|
-
- Switch to `flake8` instead of `pep8`+`pyflakes`.
|
|
860
|
+
- Switch to `flake8` instead of `` pep8`+`pyflakes ``.
|
|
1077
861
|
[zupo]
|
|
1078
|
-
|
|
1079
862
|
- Get the portal path with absolute_url_path.
|
|
1080
863
|
[cillianderoiste]
|
|
1081
|
-
|
|
1082
864
|
- Travis build speed-ups.
|
|
1083
865
|
[zupo]
|
|
1084
|
-
|
|
1085
866
|
- Support for Python 2.6.
|
|
1086
867
|
[RichyB, zupo]
|
|
1087
|
-
|
|
1088
868
|
- Support for Plone 4.0.
|
|
1089
869
|
[adamcheasley]
|
|
1090
|
-
|
|
1091
870
|
- Support for Plone 4.3.
|
|
1092
871
|
[cillianderoiste, zupo]
|
|
1093
|
-
|
|
1094
872
|
- Spelling fixes.
|
|
1095
873
|
[adamtheturtle]
|
|
1096
|
-
|
|
1097
874
|
- Make get_view and get_tool tests not have hardcoded list of *all* expected
|
|
1098
875
|
values.
|
|
1099
876
|
[RichyB, cillianderoiste]
|
|
1100
|
-
|
|
1101
877
|
- Code Style Guide.
|
|
1102
878
|
[iElectric, cillianderoiste, marciomazza, RichyB, thet, zupo]
|
|
1103
|
-
|
|
1104
|
-
- Depend on ``manuel`` in setup.py.
|
|
879
|
+
- Depend on `manuel` in setup.py.
|
|
1105
880
|
[zupo]
|
|
1106
|
-
|
|
1107
881
|
- Documentation how to get/set member properties.
|
|
1108
882
|
[zupo]
|
|
1109
|
-
|
|
1110
|
-
- Improvements to ``get_registry_record``.
|
|
883
|
+
- Improvements to `get_registry_record`.
|
|
1111
884
|
[zupo]
|
|
1112
885
|
|
|
1113
|
-
|
|
1114
|
-
0.1b1 (2012-10-23)
|
|
1115
|
-
------------------
|
|
886
|
+
## 0.1b1 (2012-10-23)
|
|
1116
887
|
|
|
1117
888
|
- Contributors guide and style guide.
|
|
1118
889
|
[zupo]
|
|
1119
|
-
|
|
1120
890
|
- Enforce PEP257 for docstrings.
|
|
1121
891
|
[zupo]
|
|
1122
|
-
|
|
1123
|
-
- Fix ``get_navigation_root()`` to return object instead of path.
|
|
892
|
+
- Fix `get_navigation_root()` to return object instead of path.
|
|
1124
893
|
[pbauer]
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
``grant_roles()`` and ``revoke roles()`` for users and groups.
|
|
894
|
+
- Implementation of `get_permissions()`, `get_roles()`,
|
|
895
|
+
`grant_roles()` and `revoke roles()` for users and groups.
|
|
1128
896
|
[rudaporto, xiru]
|
|
1129
|
-
|
|
1130
|
-
- Implementation of ``get_registry_record`` and ``set_registry_record``.
|
|
897
|
+
- Implementation of `get_registry_record` and `set_registry_record`.
|
|
1131
898
|
[pbauer]
|
|
1132
|
-
|
|
1133
899
|
- Use `Makefile` to build the project, run tests, generate documentation, etc.
|
|
1134
900
|
[witsch]
|
|
1135
|
-
|
|
1136
|
-
- Moving all ReadTheDocs dependencies into ``rtd_requirements.txt``.
|
|
901
|
+
- Moving all ReadTheDocs dependencies into `rtd_requirements.txt`.
|
|
1137
902
|
[zupo]
|
|
1138
903
|
|
|
1139
|
-
|
|
1140
|
-
0.1a2 (2012-09-03)
|
|
1141
|
-
------------------
|
|
904
|
+
## 0.1a2 (2012-09-03)
|
|
1142
905
|
|
|
1143
906
|
- Updated release, adding new features, test coverage, cleanup & refactor.
|
|
1144
907
|
[hvelarde, avelino, ericof, jpgimenez, xiru, macagua, zupo]
|
|
1145
908
|
|
|
1146
|
-
|
|
1147
|
-
0.1a1 (2012-07-13)
|
|
1148
|
-
------------------
|
|
909
|
+
## 0.1a1 (2012-07-13)
|
|
1149
910
|
|
|
1150
911
|
- Initial release.
|
|
1151
912
|
[davisagli, fulv, iElectric, jcerjak, jonstahl, kcleong, mauritsvanrees,
|