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