collective.documentgenerator 3.46__py3-none-any.whl

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.
Files changed (176) hide show
  1. collective/documentgenerator/AT_renderer.py +98 -0
  2. collective/documentgenerator/DX_renderer.py +52 -0
  3. collective/documentgenerator/__init__.py +17 -0
  4. collective/documentgenerator/adapters.py +23 -0
  5. collective/documentgenerator/browser/__init__.py +0 -0
  6. collective/documentgenerator/browser/actionspanel.py +19 -0
  7. collective/documentgenerator/browser/check_pod_templates.pt +63 -0
  8. collective/documentgenerator/browser/children_pod_template.pt +16 -0
  9. collective/documentgenerator/browser/configure.zcml +220 -0
  10. collective/documentgenerator/browser/controlpanel.py +159 -0
  11. collective/documentgenerator/browser/converter.py +43 -0
  12. collective/documentgenerator/browser/generation_view.py +532 -0
  13. collective/documentgenerator/browser/overrides.py +9 -0
  14. collective/documentgenerator/browser/resources/css/documentgenerator.css +133 -0
  15. collective/documentgenerator/browser/static/.gitkeep +0 -0
  16. collective/documentgenerator/browser/static/configurable.svg +1232 -0
  17. collective/documentgenerator/browser/static/csv.svg +521 -0
  18. collective/documentgenerator/browser/static/doc.svg +23 -0
  19. collective/documentgenerator/browser/static/docx.svg +20 -0
  20. collective/documentgenerator/browser/static/download_icon.svg +54 -0
  21. collective/documentgenerator/browser/static/libreoffice-blanck.svg +481 -0
  22. collective/documentgenerator/browser/static/mailinglooptemplate.svg +1207 -0
  23. collective/documentgenerator/browser/static/missing_use.svg +42 -0
  24. collective/documentgenerator/browser/static/nok.svg +38 -0
  25. collective/documentgenerator/browser/static/nok_use.svg +38 -0
  26. collective/documentgenerator/browser/static/nok_used.svg +38 -0
  27. collective/documentgenerator/browser/static/odp.svg +1264 -0
  28. collective/documentgenerator/browser/static/ods.svg +1354 -0
  29. collective/documentgenerator/browser/static/odt.svg +1347 -0
  30. collective/documentgenerator/browser/static/ok.svg +38 -0
  31. collective/documentgenerator/browser/static/ok_use.svg +38 -0
  32. collective/documentgenerator/browser/static/ok_used.svg +38 -0
  33. collective/documentgenerator/browser/static/pdf.svg +557 -0
  34. collective/documentgenerator/browser/static/podtemplate.svg +1197 -0
  35. collective/documentgenerator/browser/static/rtf.svg +521 -0
  36. collective/documentgenerator/browser/static/style.svg +1207 -0
  37. collective/documentgenerator/browser/static/subtemplate.svg +1250 -0
  38. collective/documentgenerator/browser/static/xls.svg +159 -0
  39. collective/documentgenerator/browser/static/xlsx.svg +48 -0
  40. collective/documentgenerator/browser/table.py +277 -0
  41. collective/documentgenerator/browser/templates_listing.pt +23 -0
  42. collective/documentgenerator/browser/views.py +365 -0
  43. collective/documentgenerator/config.py +162 -0
  44. collective/documentgenerator/configure.zcml +41 -0
  45. collective/documentgenerator/content/__init__.py +0 -0
  46. collective/documentgenerator/content/condition.py +60 -0
  47. collective/documentgenerator/content/conditions.zcml +29 -0
  48. collective/documentgenerator/content/configure.zcml +25 -0
  49. collective/documentgenerator/content/document_factory.py +73 -0
  50. collective/documentgenerator/content/file_representation.py +73 -0
  51. collective/documentgenerator/content/file_representation.zcml +28 -0
  52. collective/documentgenerator/content/merge_templates.py +15 -0
  53. collective/documentgenerator/content/merge_templates.zcml +10 -0
  54. collective/documentgenerator/content/pod_template.py +547 -0
  55. collective/documentgenerator/content/style_template.py +52 -0
  56. collective/documentgenerator/content/vocabulary.py +315 -0
  57. collective/documentgenerator/content/vocabulary.zcml +104 -0
  58. collective/documentgenerator/demo/__init__.py +0 -0
  59. collective/documentgenerator/demo/archetypes.zcml +10 -0
  60. collective/documentgenerator/demo/configure.zcml +19 -0
  61. collective/documentgenerator/demo/helper.py +198 -0
  62. collective/documentgenerator/events/__init__.py +0 -0
  63. collective/documentgenerator/events/configure.zcml +30 -0
  64. collective/documentgenerator/events/pod_templates_events.py +66 -0
  65. collective/documentgenerator/events/styles_events.py +122 -0
  66. collective/documentgenerator/helper/__init__.py +9 -0
  67. collective/documentgenerator/helper/archetypes-adapter.zcml +10 -0
  68. collective/documentgenerator/helper/archetypes-page.zcml +9 -0
  69. collective/documentgenerator/helper/archetypes.py +67 -0
  70. collective/documentgenerator/helper/base.py +266 -0
  71. collective/documentgenerator/helper/configure.zcml +38 -0
  72. collective/documentgenerator/helper/dexterity.py +174 -0
  73. collective/documentgenerator/interfaces.py +165 -0
  74. collective/documentgenerator/locales/collective.documentgenerator.pot +564 -0
  75. collective/documentgenerator/locales/es/LC_MESSAGES/collective.documentgenerator.po +572 -0
  76. collective/documentgenerator/locales/es/LC_MESSAGES/plone.po +32 -0
  77. collective/documentgenerator/locales/fr/LC_MESSAGES/collective.documentgenerator.po +566 -0
  78. collective/documentgenerator/locales/fr/LC_MESSAGES/plone.po +27 -0
  79. collective/documentgenerator/locales/manual.pot +30 -0
  80. collective/documentgenerator/locales/plone-manual.pot +22 -0
  81. collective/documentgenerator/locales/plone.pot +30 -0
  82. collective/documentgenerator/locales/update.sh +22 -0
  83. collective/documentgenerator/migrations/__init__.py +0 -0
  84. collective/documentgenerator/migrations/migrate_to_11.py +53 -0
  85. collective/documentgenerator/migrations/migrate_to_12.py +30 -0
  86. collective/documentgenerator/migrations/migrate_to_13.py +37 -0
  87. collective/documentgenerator/migrations/migrate_to_3.py +36 -0
  88. collective/documentgenerator/migrations/migrate_to_5.py +30 -0
  89. collective/documentgenerator/migrations/migrate_to_6.py +27 -0
  90. collective/documentgenerator/migrations/migrate_to_7.py +32 -0
  91. collective/documentgenerator/migrations/migrate_to_8.py +34 -0
  92. collective/documentgenerator/migrations/migrate_to_9.py +48 -0
  93. collective/documentgenerator/profiles/base/browserlayer.xml +7 -0
  94. collective/documentgenerator/profiles/base/controlpanel.xml +20 -0
  95. collective/documentgenerator/profiles/base/metadata.xml +7 -0
  96. collective/documentgenerator/profiles/base/types/ConfigurablePODTemplate.xml +43 -0
  97. collective/documentgenerator/profiles/base/types/MailingLoopTemplate.xml +42 -0
  98. collective/documentgenerator/profiles/base/types/PODTemplate.xml +42 -0
  99. collective/documentgenerator/profiles/base/types/StyleTemplate.xml +42 -0
  100. collective/documentgenerator/profiles/base/types/SubTemplate.xml +42 -0
  101. collective/documentgenerator/profiles/base/types.xml +10 -0
  102. collective/documentgenerator/profiles/base/viewlets.xml +6 -0
  103. collective/documentgenerator/profiles/demo/browserlayer.xml +7 -0
  104. collective/documentgenerator/profiles/demo/collectivedocumentgenerator_demo_marker.txt +0 -0
  105. collective/documentgenerator/profiles/demo/import_steps.xml +11 -0
  106. collective/documentgenerator/profiles/demo/metadata.xml +7 -0
  107. collective/documentgenerator/profiles/demo/registry.xml +13 -0
  108. collective/documentgenerator/profiles/demo/templates/mailing.odt +0 -0
  109. collective/documentgenerator/profiles/demo/templates/modele_general.ods +0 -0
  110. collective/documentgenerator/profiles/demo/templates/modele_general.odt +0 -0
  111. collective/documentgenerator/profiles/demo/templates/mod/303/250le_collection.odt +0 -0
  112. collective/documentgenerator/profiles/demo/templates/possibly_mailed_model.odt +0 -0
  113. collective/documentgenerator/profiles/demo/templates/styles.odt +0 -0
  114. collective/documentgenerator/profiles/demo/templates/styles_2.odt +0 -0
  115. collective/documentgenerator/profiles/demo/templates/sub_template.odt +0 -0
  116. collective/documentgenerator/profiles/demo/viewlets.xml +3 -0
  117. collective/documentgenerator/profiles/plone4/collectivedocumentgenerator_marker.txt +0 -0
  118. collective/documentgenerator/profiles/plone4/cssregistry.xml +11 -0
  119. collective/documentgenerator/profiles/plone4/metadata.xml +7 -0
  120. collective/documentgenerator/profiles/plone4/registry.xml +6 -0
  121. collective/documentgenerator/profiles/plone5/metadata.xml +7 -0
  122. collective/documentgenerator/profiles/plone5/registry.xml +15 -0
  123. collective/documentgenerator/profiles/testing/metadata.xml +7 -0
  124. collective/documentgenerator/profiles/testing/propertiestool.xml +5 -0
  125. collective/documentgenerator/profiles/testing/types/member.xml +85 -0
  126. collective/documentgenerator/profiles/testing/types.xml +5 -0
  127. collective/documentgenerator/profiles.zcml +186 -0
  128. collective/documentgenerator/renderer.zcml +145 -0
  129. collective/documentgenerator/search_replace/__init__.py +0 -0
  130. collective/documentgenerator/search_replace/configure.zcml +19 -0
  131. collective/documentgenerator/search_replace/pod_template.py +146 -0
  132. collective/documentgenerator/search_replace/search_result_form.pt +48 -0
  133. collective/documentgenerator/search_replace/searchreplace_panel.pt +22 -0
  134. collective/documentgenerator/search_replace/searchreplace_panel.py +261 -0
  135. collective/documentgenerator/setuphandlers.py +287 -0
  136. collective/documentgenerator/testing.py +324 -0
  137. collective/documentgenerator/testing.zcml +16 -0
  138. collective/documentgenerator/tests/__init__.py +0 -0
  139. collective/documentgenerator/tests/failing_template.odt +0 -0
  140. collective/documentgenerator/tests/robot/.gitkeep +0 -0
  141. collective/documentgenerator/tests/template_to_clean.odt +0 -0
  142. collective/documentgenerator/tests/template_without_style_page.odt +0 -0
  143. collective/documentgenerator/tests/test_AT_helper_view.py +276 -0
  144. collective/documentgenerator/tests/test_DX_helper_view.py +355 -0
  145. collective/documentgenerator/tests/test_base_helper_view.py +128 -0
  146. collective/documentgenerator/tests/test_check_podtemplates_view.py +138 -0
  147. collective/documentgenerator/tests/test_config.py +106 -0
  148. collective/documentgenerator/tests/test_configurable_pod_template.py +383 -0
  149. collective/documentgenerator/tests/test_demo_profile.py +115 -0
  150. collective/documentgenerator/tests/test_events.py +169 -0
  151. collective/documentgenerator/tests/test_file.odt +0 -0
  152. collective/documentgenerator/tests/test_generation_view.py +652 -0
  153. collective/documentgenerator/tests/test_mailing.odt +0 -0
  154. collective/documentgenerator/tests/test_mailing_loop_template.py +48 -0
  155. collective/documentgenerator/tests/test_pod_template.py +178 -0
  156. collective/documentgenerator/tests/test_robot.py +26 -0
  157. collective/documentgenerator/tests/test_search_replace.py +419 -0
  158. collective/documentgenerator/tests/test_setup.py +49 -0
  159. collective/documentgenerator/tests/test_style_template.py +19 -0
  160. collective/documentgenerator/tests/test_sub_template.py +49 -0
  161. collective/documentgenerator/tests/test_templates_listing_view.py +91 -0
  162. collective/documentgenerator/tests/test_utils.py +244 -0
  163. collective/documentgenerator/tests/test_vocabulary.py +154 -0
  164. collective/documentgenerator/utils.py +396 -0
  165. collective/documentgenerator/viewlets/__init__.py +0 -0
  166. collective/documentgenerator/viewlets/batchactions.py +14 -0
  167. collective/documentgenerator/viewlets/configure.zcml +16 -0
  168. collective/documentgenerator/viewlets/generationlinks.pt +28 -0
  169. collective/documentgenerator/viewlets/generationlinks.py +58 -0
  170. collective.documentgenerator-3.46-py3.13-nspkg.pth +1 -0
  171. collective_documentgenerator-3.46.dist-info/METADATA +1142 -0
  172. collective_documentgenerator-3.46.dist-info/RECORD +176 -0
  173. collective_documentgenerator-3.46.dist-info/WHEEL +5 -0
  174. collective_documentgenerator-3.46.dist-info/entry_points.txt +5 -0
  175. collective_documentgenerator-3.46.dist-info/namespace_packages.txt +1 -0
  176. collective_documentgenerator-3.46.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1142 @@
1
+ Metadata-Version: 2.4
2
+ Name: collective.documentgenerator
3
+ Version: 3.46
4
+ Summary: Desktop document generation (.odt, .pdf, .doc, ...) based on appy framework (https://appyframe.work/tool/public) and OpenOffice/LibreOffice
5
+ Home-page: https://pypi.org/project/collective.documentgenerator
6
+ Author: Simon Delcourt
7
+ Author-email: simon.delcourt@imio.be
8
+ License: GPL
9
+ Keywords: plone document generation generator odt word pdf libreoffice template
10
+ Classifier: Environment :: Web Environment
11
+ Classifier: Framework :: Plone
12
+ Classifier: Framework :: Plone :: Addon
13
+ Classifier: Framework :: Plone :: 4.3
14
+ Classifier: Framework :: Plone :: 5.0
15
+ Classifier: Framework :: Plone :: 5.1
16
+ Classifier: Framework :: Plone :: Addon
17
+ Classifier: License :: OSI Approved :: GNU General Public License (GPL)
18
+ Classifier: Programming Language :: Python
19
+ Classifier: Programming Language :: Python :: 2.7
20
+ Requires-Dist: appy>=1.0.4
21
+ Requires-Dist: beautifulsoup4<4.10
22
+ Requires-Dist: collective.behavior.talcondition
23
+ Requires-Dist: collective.excelexport
24
+ Requires-Dist: collective.z3cform.datagridfield
25
+ Requires-Dist: future>=0.14.0
26
+ Requires-Dist: imio.migrator
27
+ Requires-Dist: phonenumbers
28
+ Requires-Dist: plone.api>=1.3.3
29
+ Requires-Dist: plone.app.dexterity
30
+ Requires-Dist: plone.app.lockingbehavior
31
+ Requires-Dist: setuptools
32
+ Requires-Dist: z3c.table
33
+ Requires-Dist: z3c.form>=3.2.4
34
+ Requires-Dist: imio.helpers>=0.57
35
+ Requires-Dist: imio.migrator>=1.11
36
+ Provides-Extra: test
37
+ Requires-Dist: plone.app.robotframework; extra == "test"
38
+ Requires-Dist: plone.app.testing; extra == "test"
39
+ Requires-Dist: imio.pyutils; extra == "test"
40
+ Dynamic: author
41
+ Dynamic: author-email
42
+ Dynamic: classifier
43
+ Dynamic: description
44
+ Dynamic: home-page
45
+ Dynamic: keywords
46
+ Dynamic: license
47
+ Dynamic: provides-extra
48
+ Dynamic: requires-dist
49
+ Dynamic: summary
50
+
51
+ .. image:: https://github.com/collective/collective.documentgenerator/actions/workflows/python-package.yml/badge.svg?branch=master
52
+ :target: https://github.com/collective/collective.documentgenerator/actions/workflows/python-package.yml
53
+
54
+ .. image:: https://coveralls.io/repos/collective/collective.documentgenerator/badge.svg?branch=master
55
+ :alt: Coveralls badge
56
+ :target: https://coveralls.io/r/collective/collective.documentgenerator?branch=master
57
+
58
+ .. image:: https://img.shields.io/pypi/v/collective.documentgenerator.svg
59
+ :alt: PyPI badge
60
+ :target: https://pypi.org/project/collective.documentgenerator
61
+
62
+
63
+ ============================
64
+ collective.documentgenerator
65
+ ============================
66
+
67
+ ``collective.documentgenerator`` is an elegant product allowing to easily **produce office documents** based on dynamic templates.
68
+
69
+ New content types are used to store the different templates:
70
+
71
+ * **style templates**, that can be common for other templates
72
+ * **sub templates**, that can be used in other templates
73
+ * **mailing loop templates**, that can be used by other templates to do a loop for mailing
74
+ * **basic templates**
75
+ * **advanced templates**, regarding configuration
76
+
77
+ Templates are created within `LibreOffice <https://www.libreoffice.org>`_ software.
78
+
79
+ Output formats are those that can be produced by LibreOffice:
80
+
81
+ * odt and ods formats
82
+ * doc, docx, xls, xlsx formats
83
+ * pdf, csv, rtf
84
+
85
+ You can use a demo profile to easily test the product.
86
+
87
+
88
+ Translations
89
+ ------------
90
+
91
+ This product has been translated into
92
+
93
+ - French.
94
+
95
+ - Spanish.
96
+
97
+ You can contribute for any message missing or other new languages, join us at
98
+ `Plone Collective Team <https://www.transifex.com/plone/plone-collective/>`_
99
+ into *Transifex.net* service with all world Plone translators community.
100
+
101
+
102
+ Installation
103
+ ============
104
+
105
+ Install ``collective.documentgenerator`` by adding it to your buildout:
106
+
107
+ [buildout]
108
+
109
+ ...
110
+
111
+ eggs =
112
+ collective.documentgenerator
113
+
114
+
115
+ and then running "bin/buildout"
116
+
117
+
118
+ Usage
119
+ =====
120
+
121
+
122
+ **How to add a new POD template?**
123
+ ----------------------------------
124
+
125
+ In your Plone site, you can add two sorts of main templates :
126
+
127
+ - PODTemplate : composed of title, description and odt file to be uploaded
128
+ - ConfigurablePODTemplate : adding configurable fields to basic template
129
+
130
+ * output formats selection
131
+ * portal types selection
132
+ * style template selection
133
+ * subtemplate selection
134
+ * TAL expression as condition (`behavior <https://github.com/collective/collective.behavior.talcondition>`_).
135
+ * enabling flag
136
+ * context variables list
137
+ * mailing loop template
138
+
139
+ If you want, you can organize your templates in one or more folder.
140
+
141
+
142
+ **How to write the template ?**
143
+ -------------------------------
144
+
145
+ The `appy framework <https://appyframe.work/tool/public>`_ is used to interpret the template and render it using the context.
146
+
147
+ You can find a `documentation <https://appyframe.work/13>`_ explaining the syntax that can be used.
148
+
149
+ You can do the following things:
150
+
151
+ - use basic python expression to access context fields or methods
152
+ - do an if... then... else...
153
+ - do a loop for a paragraph, a section, a table, a row, a cell
154
+ - transform xhtml to text
155
+
156
+ Base helper methods can be used in templates and custom methods can be added.
157
+
158
+
159
+ **How to generate a document?**
160
+ -------------------------------
161
+
162
+ A viewlet displays all the available PODTemplate and ConfigurablePODTemplate following the current context.
163
+ Clicking the template link will call the 'document-generation' view.
164
+
165
+ - Calling 'document-generation' view
166
+
167
+ * render template and propose to download the generated document
168
+ * parameters: template UID and document type
169
+ * this is the default view used in the viewlet
170
+
171
+ - Calling 'persistent-document-generation' view
172
+
173
+ * render template and create a file with the generated document
174
+ * parameters: template UID and document type
175
+
176
+ - Calling 'mailing-loop-persistent-document-generation' view
177
+
178
+ * loop on persisted rendered document and create a file containing all documents
179
+ * parameters: document UID
180
+
181
+ **Search and replace**
182
+ ----------------------
183
+
184
+ Documentation about the search and replace feature is here :
185
+ `docs/search_replace.rst <https://github.com/collective/collective.documentgenerator/tree/master/docs/search_replace.rst>`_
186
+
187
+
188
+ **Logging & Debugging**
189
+ -----------------------
190
+
191
+ You can specify form request that will be logged using collective.fingerpointing by defining environment variable
192
+ `DOCUMENTGENERATOR_LOG_PARAMETERS)` each parameter must be separated by a comma e.g. `param1,param2`
193
+
194
+
195
+ Plone versions
196
+ --------------
197
+
198
+ It is working and tested on Plone 4.3, Plone 5.0, 5.1 and 5.2 (Python2.7).
199
+
200
+
201
+ Contribute
202
+ ==========
203
+
204
+ * `Source code @ GitHub <https://github.com/collective/collective.documentgenerator.git>`_
205
+ * `Issues @ GitHub <https://github.com/collective/collective.documentgenerator/issues>`_
206
+ * `Continuous Integration @ Travis CI <https://travis-ci.org/collective/collective.documentgenerator>`_
207
+ * `Code Coverage @ Coveralls.io <https://coveralls.io/r/collective/collective.documentgenerator?branch=master>`_
208
+
209
+
210
+ License
211
+ =======
212
+
213
+ The project is licensed under the GPLv2.
214
+
215
+
216
+ Changelog
217
+ =========
218
+
219
+ 3.46 (2026-01-15)
220
+ -----------------
221
+
222
+ - Added views and utils methods to convert a file to PDF.
223
+ [chris-adam, sgeulette]
224
+ - Added `utils.need_mailing_value`
225
+ [sgeulette]
226
+ - Removed `.` at the end of field title `Templates to merge`.
227
+ [gbastien]
228
+ - Made subtemplate icon grey.
229
+ [chris-adam]
230
+ - Added odfsplit utils.
231
+ [chris-adam]
232
+
233
+ 3.45 (2025-06-25)
234
+ -----------------
235
+
236
+ - Fixed import of `HAS_PLONE_5_AND_MORE` moved from
237
+ `imio.helpers.content` to `imio.helpers`.
238
+ [gbastien]
239
+
240
+ 3.44 (2024-10-15)
241
+ -----------------
242
+
243
+ - Fixed an issue when odt_file.filename could be None when searching and replacing - backport from 4.x.
244
+ [aduchene]
245
+
246
+ 3.43 (2024-04-10)
247
+ -----------------
248
+
249
+ - Import `safe_encode` from `imio.pyutils` instead `imio.helpers`.
250
+ [gbastien]
251
+ - Use has Plone versions constants (`HAS_PLONE_4`, `HAS_PLONE_5`, ...)
252
+ from `imio.helpers`.
253
+ [gbastien]
254
+
255
+ 3.42 (2024-02-12)
256
+ -----------------
257
+
258
+ - Translated again type icon title.
259
+ [gbastien]
260
+
261
+ 3.41 (2024-02-12)
262
+ -----------------
263
+
264
+ - Corrected typo.
265
+ [sgeulette]
266
+ - In `TitleColumn`, use `typeInfo.Title()` instead translating `typeInfo.title`,
267
+ `Title()` do the same but manages special characters in the `title`.
268
+ [gbastien]
269
+
270
+ 3.40 (2023-08-01)
271
+ -----------------
272
+
273
+ - Add `DOCUMENTGENERATOR_LOG_PARAMETERS` environment variable that can be used to log request form parameters with
274
+ collective.fingerpointing.
275
+ [mpeeters]
276
+
277
+ 3.39 (2023-06-26)
278
+ -----------------
279
+
280
+ - Removed `utils.safe_encode`, imported it from `imio.helpers.content`.
281
+ [gbastien]
282
+
283
+ 3.38 (2022-12-12)
284
+ -----------------
285
+
286
+ - Added missing upgrade step after registry modification (`force_default_page_style_for_mailing`) in 3.36.
287
+ [sgeulette]
288
+
289
+ 3.37 (2022-10-27)
290
+ -----------------
291
+
292
+ - Bugfix: page style check now handle case of POD template without mailing template
293
+ attribute.
294
+ [sdelcourt]
295
+
296
+ 3.36 (2022-10-21)
297
+ -----------------
298
+
299
+ - Add a new parameter `force_default_page_style_for_mailing` to the registry.
300
+ If set to True, apply automatically a default page style to mailing templates.
301
+ [sdelcourt]
302
+ - Order templates directories by title in `dg-templates-listing` view.
303
+ [sgeulette]
304
+ - Improved `DXDocumentGenerationHelperView.get_value` by adding optional obj parameter.
305
+ [sgeulette]
306
+
307
+ 3.35 (2022-08-26)
308
+ -----------------
309
+
310
+ - Group link by template title.
311
+ [odelaere]
312
+ - Added 'title' attribute to generation link.
313
+ [odelaere]
314
+ - Aliased import to avoid confusion.
315
+ [sgeulette]
316
+ - CSS for generationlinks so it may be adapted more easily.
317
+ [gbastien]
318
+
319
+ 3.34 (2022-06-21)
320
+ -----------------
321
+
322
+ - Stored `template_uid` on a persistent generated document to know which template has been used.
323
+ [sgeulette]
324
+
325
+ 3.33 (2022-06-14)
326
+ -----------------
327
+
328
+ - Added character escaping to avoid xss in `TemplatesTable`
329
+ [sgeulette]
330
+ - In `utils.update_oo_config_after_bigbang` don't fail instance start up if
331
+ `update_oo_config` raises an exception.
332
+ [odelaere]
333
+
334
+ 3.32 (2022-06-02)
335
+ -----------------
336
+
337
+ - Added upgrade step to `14` that will add the `oo_port_list` parameter to the registry.
338
+ [gbastien]
339
+
340
+ 3.31 (2022-06-01)
341
+ -----------------
342
+
343
+ - Use appy to load balance on multiple LO server.
344
+ [odelaere]
345
+
346
+ 3.30 (2022-05-06)
347
+ -----------------
348
+
349
+ - Added `iterable_in_columns` (for labels document).
350
+ [sgeulette]
351
+ - Added `get_relations` in dexterity
352
+ [sgeulette]
353
+ - Use Appy to search and replace in POD templates pod expressions.
354
+ [aduchene]
355
+ - .ods POD Templates are now usable with search and replace.
356
+ [aduchene]
357
+ - Make sure tmp directory is unique when searching and replacing.
358
+ [aduchene]
359
+ - Updated readme
360
+ [Arhell]
361
+
362
+ 3.29 (2022-04-15)
363
+ -----------------
364
+
365
+ - Method update_oo_config updates all the registry entries for libreoffice server.
366
+ [odelaere]
367
+ - Added subscriber to update oo config on process start.
368
+ [odelaere]
369
+
370
+ 3.28 (2022-01-14)
371
+ -----------------
372
+
373
+ - Added helper `ConfigurablePODTemplate.get_filename` to easily get file filename.
374
+ [gbastien]
375
+
376
+ 3.27 (2021-12-06)
377
+ -----------------
378
+
379
+ - Updated metadata version.
380
+ [sgeulette]
381
+
382
+ 3.26 (2021-11-08)
383
+ -----------------
384
+
385
+ - Clean notes when creating/editing a `PODTemplate` this way the `search&replace`
386
+ functionnality works as expected:
387
+
388
+ - Added `utils.clean_notes`;
389
+ - Clean notes is only done if `odt_file` changed and file is updated only if
390
+ something was cleaned;
391
+ - Moved function `create_temporary_file` from `events.styles_events` to `utils`.
392
+
393
+ [gbastien]
394
+
395
+ 3.25 (2021-09-23)
396
+ -----------------
397
+
398
+ - Use wrapped context of ProxyObject for __unicode__ method.
399
+ Revert __repr__ to default implementation.
400
+ [sdelcourt]
401
+
402
+ 3.24 (2021-09-23)
403
+ -----------------
404
+
405
+ - Require `beautifulsoup4<4.10` in `setup.py` as starting from 4.10.0,
406
+ `beautifulsoup4` is no more compatible with `Python2`.
407
+ [gbastien]
408
+ - Pass parameter `html=True` when calling `Renderer` so content is considered
409
+ as html when using `xhtml` function in POD template, some pre-processing is
410
+ applied to ensure that given content is valid xhtml.
411
+ [gbastien]
412
+ - Use wrapped context of ProxyObject for __repr__ and __str__ methods.
413
+ [sdelcourt]
414
+
415
+ 3.23 (2021-08-09)
416
+ -----------------
417
+
418
+ - Allow templates selection on the search result before applying the replace.
419
+ [sdelcourt]
420
+
421
+ 3.22 (2021-07-16)
422
+ -----------------
423
+
424
+ - Added a view to search and replace in POD templates pod expressions `@@collective.documentgenerator-controlpanel`.
425
+ [aduchene]
426
+ - Added an helper class `SearchAndReplacePODTemplates` that can search and replace in POD templates pod expressions.
427
+ [aduchene]
428
+ - Added tests on search and replace feature.
429
+ [aduchene]
430
+ - Added utility classes to search and replace pod expressions in ODT files.
431
+ [sdelcourt]
432
+ - Added a script `bin/search_replace` to search and replace in ODT files via CLI.
433
+ [sdelcourt]
434
+ - Added some documentation about search and replace feature.
435
+ [aduchene]
436
+ - Added `portal` to the default generation context.
437
+ [gbastien]
438
+ - Fix style update temporary file directory didn't use CUSTOM_TMP.
439
+ [odelaere]
440
+ - Ensure CUSTOM_TMP directory exists before rendering a document.
441
+ [odelaere]
442
+
443
+ 3.21 (2021-04-20)
444
+ -----------------
445
+
446
+ - Added a view to check up every POD templates `@@check-pod-templates`.
447
+ [odelaere]
448
+ - Adapted the `@@check-pod-templates` way to `find_pod_templates` to take into
449
+ account current context. This way, we may check pod templates on a
450
+ particular folder.
451
+ [gbastien]
452
+ - Corrected domain
453
+ [sgeulette]
454
+ - Don't check by default selection column in dg-templates-listing to avoid
455
+ user error with batch buttons
456
+ [sgeulette]
457
+
458
+ 3.20 (2021-03-09)
459
+ -----------------
460
+
461
+ - Added CSV file support.
462
+ [odelaere]
463
+ - Reworked icons to use svg instead of png and have a more consistent set.
464
+ [odelaere]
465
+ - Add generated title parameter for PersistentDocumentGenerationView.
466
+ [jjaumotte]
467
+
468
+ 3.19 (2020-10-07)
469
+ -----------------
470
+
471
+ - Prevent "AttributeError" by not render actionpanel's external edit when there is another pod template to use
472
+ [fngaha]
473
+ - Use the same default values between controlpanel schema and registry records.
474
+ [odelaere]
475
+
476
+ 3.18 (2020-08-18)
477
+ -----------------
478
+
479
+ - Updated file_representation to be compliant with zopeedit < 1.0 (current windows exe) and zopeedit >= 1.0.
480
+ [sgeulette]
481
+ - Fixed bug when rendering an empty RichTextATFieldRenderer.
482
+ [odelaere]
483
+ - Pass `kwargs` given to `DocumentGenerationView.__call__`,
484
+ to submethods `generate_and_download_doc`, `_generate_doc`,
485
+ `_recursive_generate_doc` then `_render_document` so it is possible to pass
486
+ `raiseOnError=False` parameter to `_render_document`.
487
+ [gbastien]
488
+
489
+ 3.17 (2020-06-24)
490
+ -----------------
491
+
492
+ - In `AT` renderer and helper, use field accessor instead `get()` method
493
+ to get the stored value.
494
+ [gbastien]
495
+
496
+ 3.16 (2020-05-25)
497
+ -----------------
498
+
499
+ - Fix `RuntimeError: set changed size during iteration` error in get_children_pod_template() method.
500
+ [sdelcourt]
501
+
502
+ 3.15 (2020-05-19)
503
+ -----------------
504
+
505
+ - Improve integration of stream parameter for Appy, this allow to explicitly set the value to `False`.
506
+ The default value remain `auto`.
507
+ [mpeeters]
508
+ - Added Transifex.net service integration to manage the translation process.
509
+ [macagua]
510
+ - Added Spanish translation.
511
+ [macagua]
512
+ - Updated the i18n support.
513
+ [macagua]
514
+
515
+ 3.14 (2020-04-23)
516
+ -----------------
517
+
518
+ - Updated get_value to test if attribute exist on object.
519
+ [sgeulette]
520
+ - Added possibility to pass `kwargs` to `DocumentGenerationView.__call__`,
521
+ then submethods `generate_and_download_doc` and `_generate_doc`.
522
+ [gbastien]
523
+
524
+ 3.13 (2020-03-04)
525
+ -----------------
526
+
527
+ - Improved dg-templates-listing.
528
+ [sgeulette]
529
+
530
+ 3.12 (2020-02-06)
531
+ -----------------
532
+
533
+ - Added parameter `bypass_check_permission=False` to method
534
+ `DocumentGenerationHelperView.display`, when True it bypasses read permission
535
+ check, this is useful when context is an object that was get unrestrictively.
536
+ [gbastien]
537
+
538
+ 3.11 (2019-12-03)
539
+ -----------------
540
+
541
+ - Casted dynamically variable.
542
+ [sgeulette]
543
+ - Added Plone 5.2 support
544
+ [odelaere]
545
+ - Fixed RichTextATFieldRenderer default render of empty value.
546
+ [sdelcourt]
547
+
548
+ 3.10 (2019-11-26)
549
+ -----------------
550
+
551
+ - Fix test `test_get_file_is_unrestricted` by removing permission `View`
552
+ to every roles.
553
+ [gbastien]
554
+ - Moved the `get_all_pod_templates/get_generable_templates` logic outside the
555
+ `DocumentGeneratorLinksViewlet` so it is easier to override.
556
+ It is now an `IGenerablePODTemplates` adapter.
557
+ [gbastien]
558
+
559
+ 3.9 (2019-10-14)
560
+ ----------------
561
+
562
+ - context_var returns default when value is None.
563
+ [sgeulette]
564
+ - While reusing another POD template odt_file, make sure get_file will have
565
+ access to the POD template holding the odt_file by getting it unrestricted.
566
+ [gbastien]
567
+ - Fixed test `TestDexterityHelperViewMethods.test_display_date_method` as
568
+ translation format changed starting with `Plone 5.1.x`.
569
+ [gbastien]
570
+
571
+ 3.8 (2019-08-13)
572
+ ----------------
573
+
574
+ - Added custom temporary directory 'CUSTOM_TMP' environment variable
575
+ for appy's workspace.
576
+ [odelaere]
577
+ - Added ability to use an external server process for LibreOffice.
578
+ [odelaere]
579
+ - Make `DocumentGeneratorLinksViewlet.get_links_info` return also the
580
+ `pod_template object` in addition to `pod_template UID`.
581
+ [gbastien]
582
+
583
+ 3.7 (2019-05-16)
584
+ ----------------
585
+
586
+ - Pass parameters `helper_view` and `pod_template` to
587
+ `DocumentGenerationView.get_base_generation_context` so it is available
588
+ if necessary.
589
+ [gbastien]
590
+ - Display every POD templates that implement IConfigurablePODTemplate in the
591
+ `collective.documentgenerator.ExistingPODTemplate` vocabulary.
592
+ [gbastien]
593
+ - Moved files CHANGES.rst, README.rst and CONTRIBUTORS.rst from docs/ to root.
594
+ [gbastien]
595
+
596
+ 3.6 (2019-03-27)
597
+ ----------------
598
+
599
+ - Ordered generation links by position in parent.
600
+ [sgeulette]
601
+
602
+ 3.5 (2019-03-08)
603
+ ----------------
604
+
605
+ - Made style not mandatory.
606
+ [sgeulette]
607
+ - Added collective.fingerpointing support to know who generated which document in which format
608
+ [odelaere]
609
+
610
+ 3.4 (2018-12-18)
611
+ ----------------
612
+
613
+ - On a Pod template, when displaying Pod templates that are using my odt_file,
614
+ display the absolute_url next to the title.
615
+ [gbastien]
616
+
617
+ 3.3 (2018-10-02)
618
+ ----------------
619
+
620
+ - Do not break if not allowed to remove tmp file, this is the case for example
621
+ when LibreOffice user is not same as Zope instance user.
622
+ [gbastien]
623
+ - Allow to override portal types and the displayed title in the list of templates to merge.
624
+ [odelaere]
625
+ - Added generation context as parameter to mailing_list
626
+ [sgeulette]
627
+ - Avoid calling mailing_list 2 times in MailingLoopPersistentDocumentGenerationView
628
+ [sgeulette]
629
+ - Added update_oo_config function to update oo option following environment variable
630
+ [sgeulette]
631
+
632
+ 3.2 (2018-07-24)
633
+ ----------------
634
+
635
+ - Mailing: include context variables from original template in mailing generation context.
636
+ [sgeulette]
637
+ - pep8: sort import
638
+ [sgeulette]
639
+
640
+ 3.1 (2018-05-03)
641
+ ----------------
642
+
643
+ - On a POD template, added possibility to reuse the `odt_file` of another
644
+ POD template.
645
+ [anuyens, odelaere, gbastien]
646
+ - Do not register the `batchactions` viewlet displayed in the
647
+ `IBelowContentBody` viewlet using the `IBatchActionsMarker` but register it
648
+ for a more specific interface `IBelowContentBodyBatchActionsMarker`.
649
+ [gbastien]
650
+ - Override batch actions viewlet available method.
651
+ [sgeulette]
652
+ - Added Column modifier management (new in appy > 0.9.11)
653
+ [odelaere]
654
+
655
+ 3.0.12 (2018-02-21)
656
+ -------------------
657
+
658
+ - Update renderer parameters: managePageStyles and resolveFields.
659
+ [sgeulette]
660
+ - Removed rename_page_styles field from pod template schema.
661
+ [sgeulette]
662
+
663
+ 3.0.11 (2018-01-17)
664
+ -------------------
665
+
666
+ - Add hook to provides all helper view to be updated with
667
+ appy renderer
668
+ [sdelcourt]
669
+
670
+ 3.0.10 (2018-01-06)
671
+ -------------------
672
+
673
+ - Use `edit_action_target` in view action column.
674
+ [sgeulette]
675
+ - Do not use CSS to manage contenttype icon,
676
+ we have an icon_epxr on the portal_types.
677
+ [gbastien]
678
+ - Use collective.eeafaceted.batchactions, if present.
679
+ Add a selection column and a batch transition button
680
+ [sgeulette]
681
+ - Use portal type icon to display in table view.
682
+ [sgeulette]
683
+
684
+ 3.0.9 (2017-12-18)
685
+ ------------------
686
+
687
+ - Added rename_page_styles field and used it as renderer parameter.
688
+ [sgeulette]
689
+ - Added plone translations.
690
+ [sgeulette]
691
+
692
+ 3.0.8 (2017-12-11)
693
+ ------------------
694
+
695
+ - Added style template on basic Template type.
696
+ [sgeulette]
697
+
698
+ 3.0.7 (2017-12-04)
699
+ ------------------
700
+
701
+ - Include batch in templates listing.
702
+ [sgeulette]
703
+ - Corrected encoding error in date display
704
+ [sgeulette]
705
+
706
+ 3.0.6 (2017-11-28)
707
+ ------------------
708
+
709
+ - Corrected collection template
710
+ [sgeulette]
711
+ - Fix bug in styles update
712
+ [sgeulette]
713
+
714
+ 3.0.5 (2017-11-16)
715
+ ------------------
716
+
717
+ - Corrected actions_panel call.
718
+ [sgeulette]
719
+ - Added method `get_file_binary` to helper view, it returns the binary data of
720
+ a file object, managing fact that object is a Dexterity or Archetypes file.
721
+ [gbastien]
722
+ - Require `future>=0.14.0` to be able to use the `html` package.
723
+ [gbastien]
724
+ - Fixed tests to work in french (this validates translations, especially of
725
+ date methods). Fixed tests to work in both Plone 4.3.x and Plone 5.x
726
+ [gbastien]
727
+ - Upgraded pip on travis. Don't use bootstrap. Upgrade setuptools.
728
+ [sgeulette]
729
+
730
+ 3.0.4 (2017-11-10)
731
+ ------------------
732
+
733
+ - Manage translation of week and month in date display
734
+ [sgeulette]
735
+ - Add download column in list template
736
+ [sgeulette]
737
+
738
+ 3.0.3 (2017-10-30)
739
+ ------------------
740
+
741
+ - Added view to reset style_modification_md5 (so template is considered as not modified).
742
+ [sgeulette]
743
+ - Added view to list all templates
744
+ [sgeulette]
745
+ - Added field `pod_template.optimize_tables` that makes it possible to
746
+ `use global value/force enable/force disable` table optimization for a single
747
+ POD template
748
+ [gbastien]
749
+
750
+ 3.0.2 (2017-10-06)
751
+ ------------------
752
+
753
+ - Corrected soffice script for ubuntu 16.04.
754
+ [sgeulette]
755
+ - Tests now rely on imio.helpers to import testing_logger when necessary to
756
+ have logging on Travis CI for example.
757
+ [gbastien]
758
+ - Corrected tests following changes in 3.0.1
759
+ [sgeulette]
760
+ - Added display_phone method
761
+ [sgeulette]
762
+
763
+ 3.0.1 (2017-09-20)
764
+ ------------------
765
+
766
+ - Use pod template title as default title for persisted documents.
767
+ [sdelcourt]
768
+
769
+ 3.0.0 (2017-09-20)
770
+ ------------------
771
+
772
+ - Added locking behaviors on types.
773
+ [sgeulette]
774
+ - Added MailingLoopTemplate type and mailing_loop_template field on ConfigurablePODTemplate.
775
+ [sgeulette]
776
+ - Added 'mailing-loop-persistent-document-generation' view to manage mailing loop generation
777
+ [sgeulette]
778
+ - Added helper method to manage context
779
+ [sgeulette]
780
+ - Added helper method to check if mailed data have to be replaced during rendering
781
+ [sgeulette]
782
+ - Moved filename generation to `DocumentGenerationView._get_filename` method so
783
+ it is easy to override and to call for specific usecases.
784
+ [gbastien]
785
+ - Moved persistent doc title generation moved to `DocumentGenerationView._get_title` method
786
+ so it is easy to override and to call for specific usecases.
787
+ [sgeulette]
788
+ - Do not break if temporary file can not be deleted.
789
+ [gbastien]
790
+
791
+ 2.0.8 (2017-08-02)
792
+ ------------------
793
+
794
+ - Add default value for 'pod_template' and 'output_format' attributes of the generation view.
795
+ [sdelcourt]
796
+
797
+ 2.0.7 (2017-07-25)
798
+ ------------------
799
+
800
+ - Check field_name existence following parameter: do not by default and fail if not exist
801
+ [sgeulette]
802
+
803
+ 2.0.6 (2017-07-24)
804
+ ------------------
805
+
806
+ - Corrected migration step.
807
+ [sgeulette]
808
+ - Check z3c.form.interfaces.NO_VALUE in get_value
809
+ [sgeulette]
810
+
811
+ 2.0.5 (2017-07-19)
812
+ ------------------
813
+
814
+ - Added easy way to complete infos returned by
815
+ `DocumentGeneratorLinksViewlet.get_links_info`.
816
+ [gbastien]
817
+ - Do `pod_template` and `output_format` directly available on the
818
+ `@@generation-view` and on the `@@document_generation_helper_view` via
819
+ `self.pod_template` and `self.output_format`.
820
+ [gbastien]
821
+ - Added migration to change portal types icons
822
+ [sgeulette]
823
+
824
+ 2.0.4 (2017-07-12)
825
+ ------------------
826
+
827
+ - Start and end libreoffice during test.
828
+ [sgeulette]
829
+ - Check if field_name from a behavior is present
830
+ [sgeulette]
831
+
832
+ 2.0.3 (2017-06-22)
833
+ ------------------
834
+
835
+ - When generating filename, remove special characters from unicoded title to
836
+ avoid it being turned to ascii numbers (special character `\u2013` is turned
837
+ to `2013` in the produced filename).
838
+ [gbastien]
839
+
840
+ 2.0.2 (2017-06-22)
841
+ ------------------
842
+
843
+ - Make sure we do not have `-` character in the filename that is cropped because
844
+ it is handled weridly by `cropName` and cut name if `-` encountered.
845
+ [gbastien]
846
+
847
+ 2.0.1 (2017-06-21)
848
+ ------------------
849
+
850
+ - Use `plone.i18n.normalizer.interfaces.IFileNameNormalizer` to normalize
851
+ filename because `Products.CMFPlone.utils.normalizeString` uses
852
+ `IIDNormalizer` for which max_length is fixed to 50. Here max_length is fixed
853
+ to 1023 so we may manage very long element title to generate filename.
854
+ [gbastien]
855
+ - Manage style_modification_md5 field to detect if the template has been modified by a user.
856
+ Updated update_templates method to use it.
857
+ [sgeulette]
858
+
859
+ 2.0.0 (2017-06-21)
860
+ ------------------
861
+
862
+ - Make package compatible with both Plone4 and Plone5 at the same time :
863
+ - Created Plone version specific profiles (plone4 and plone5);
864
+ - Removed support for AT in the Plone5 version;
865
+ - Adapted demo profile to work with Dexterity (plone.app.contenttypes).
866
+ [gbastien]
867
+ - Run every tests in 'french' so we are sure that translations work everywhere.
868
+ [gbastien]
869
+ - Added parameter `raiseOnError_for_non_managers` to be able to raise a Plone
870
+ error instead generating the document where errors are included. This avoid
871
+ generating a document containing errors where some data may be lost like in
872
+ PDF where errors are not viewable or even in ODT when users do not understand
873
+ that errors in comments are important. This will enable the `raiseOnError`
874
+ parameter of appy.pod.renderer.Renderer.
875
+ [gbastien]
876
+ - Call styles update at pod template creation
877
+ [sgeulette]
878
+ - Raise exception when style update fails
879
+ [sgeulette]
880
+ - Corrected mimetype of demo templates. Update style only for odt.
881
+ [sgeulette]
882
+
883
+ 1.0.6 (2017-05-31)
884
+ ------------------
885
+
886
+ - Added do_rendering field in IMergeTemplatesRowSchema schema. If selected, the subtemplate is rendered first
887
+ and the path is the value in context dict. Else the subtemplate object is the value in context dict.
888
+ [sgeulette]
889
+ - Return generation context from rendering methods to use it in tests
890
+ [sgeulette]
891
+ - Added unit testing for do_rendering feature
892
+ [odelaere, sgeulette]
893
+ - Improved validation for ConfigurablePodTemplate
894
+ [odelaere]
895
+ - Added validation to avoid generation context corruption at generation time
896
+ [odelaere]
897
+ - Manage boolean values in context variables
898
+ [sgeulette]
899
+ - Removed meta_type attribute causing error when pasting
900
+ [sgeulette]
901
+ - Do not lose filename when updating a Pod template with it's styles template
902
+ [gbastien]
903
+ - Ease override of term title of the `collective.documentgenerator.StyleTemplates` vocabulary
904
+ [gbastien]
905
+ - Define a correct portal_type description for StyleTmplate so it is displayed in the folder_factories
906
+ [gbastien]
907
+ - Modified generated filename, before it was POD template title and format, now it it build using POD template title,
908
+ context title and format
909
+ [gbastien]
910
+
911
+ 1.0.5 (2017-03-10)
912
+ ------------------
913
+
914
+ - Added parameter 'html' in display_html_as_text witch is mutually exclusive with 'field_name' to add ability to use a date field or an html formatted string with display_html_as_text.
915
+ [odelaere]
916
+ - Added parameter 'text' in display_text_as_html witch is mutually exclusive with 'field_name' to add ability to use a date field or a string with display_text_as_html.
917
+ [odelaere]
918
+ - Added parameter 'date' in display_date witch is mutually exclusive with 'field_name' to add ability to use a date field or a date object with display_date.
919
+ [odelaere]
920
+ - Added parameter `optimize_tables` to be able to use the `optimalColumnWidths`
921
+ functionnality of appy.pod.
922
+ [gbastien]
923
+
924
+ 1.0.4 (2017-02-14)
925
+ ------------------
926
+
927
+ - Update styles templates only with force param.
928
+ [sgeulette]
929
+ - Make sure `current_md5` is stored as unicode or it fails to validate when
930
+ manually validating stored data.
931
+ [gbastien]
932
+
933
+ 1.0.3 (2017-02-10)
934
+ ------------------
935
+
936
+ - Added utils method to update templates.
937
+ [sgeulette]
938
+
939
+ 1.0.2 (2017-02-07)
940
+ ------------------
941
+
942
+ - Fix widget for fields `IConfigurablePODTemplate.pod_formats` and
943
+ `IConfigurablePODTemplate.pod_portal_types` to avoid override by another
944
+ package like it is the case when using `collective.z3cform.select2`.
945
+ Use CheckBoxWidget for `IConfigurablePODTemplate.pod_portal_types` to ease
946
+ selection when displaying several elements.
947
+ [gbastien]
948
+ - Set appy renderer on view element stored in generation context.
949
+ Useful when view has been overrided in generation context getter.
950
+ [sgeulette]
951
+
952
+ 1.0.1 (2017-01-13)
953
+ ------------------
954
+
955
+ - Removed useless parameter in getDGHV method.
956
+ [sgeulette]
957
+
958
+ 1.0.0 (2017-01-12)
959
+ ------------------
960
+
961
+ - Raise NotImplementedError in not implemented methods.
962
+ [sgeulette]
963
+ - Rename display_html by render_xhtml and display_text by display_text_as_html.
964
+ [sgeulette]
965
+ - Add display_html_as_text
966
+ [sgeulette]
967
+ - Add get_state
968
+ [sgeulette]
969
+ - Add context_var method to safely get an optional context variable
970
+ [sgeulette]
971
+
972
+ 0.14 (2016-12-19)
973
+ -----------------
974
+
975
+ - Use correct name for entry to documentgenerator configuration
976
+ in the control panel.
977
+ [gbastien]
978
+ - Added formats `.doc` and `.docx` to the demo template
979
+ `test_template_multiple`.
980
+ [gbastien]
981
+ - Set default value for oo_port and uno_path from environment variable
982
+ [sgeulette]
983
+
984
+ 0.13 (2016-12-09)
985
+ -----------------
986
+
987
+ - Validate path to python by importing `unohelper` instead importing
988
+ `uno` because `uno` could have been installed using `pip install uno`
989
+ but is not sufficient to generate the document.
990
+ [gbastien]
991
+ - Added `.docx` format in which it is possible to generate template.
992
+ [gbastien]
993
+ - Set oo_port from environment variable at install
994
+ [sgeulette]
995
+
996
+ 0.12 (2016-12-07)
997
+ -----------------
998
+
999
+ - Pass every parameters to DocumentGenerationHelperView.translate
1000
+ that zope.i18n.translate manages.
1001
+ [gbastien]
1002
+ - Made context variable value not required
1003
+ [sgeulette]
1004
+
1005
+ 0.11 (2016-11-22)
1006
+ -----------------
1007
+
1008
+ - Replaced unrestrictedTraverse by getMultiAdapter.
1009
+ [sgeulette]
1010
+ - Added context variables field on configurablepodtemplate, and validator.
1011
+ Added those variables in generation context.
1012
+ [sgeulette]
1013
+ - Moved fr setting from default profile to testing
1014
+ [sgeulette]
1015
+
1016
+ 0.10 (2016-10-05)
1017
+ -----------------
1018
+
1019
+ - Use forceOoCall in renderer to call libreoffice to render b.e. table of contents in odt
1020
+ [sgeulette]
1021
+ - Changed viewlet podtemplate search. Defined template in zcml.
1022
+ [sgeulette]
1023
+ - Add content icons
1024
+ [sgeulette]
1025
+ - Manage correctly datetime.date and datetime.datetime
1026
+ [sgeulette]
1027
+ - Add display_widget method
1028
+ [sgeulette]
1029
+ - Rename display_text to display_html (for rich text fields)
1030
+ [sgeulette]
1031
+ - Add display_text for text fields to render intelligent html
1032
+ [sgeulette]
1033
+ - Add method to get attribute value
1034
+ [sgeulette]
1035
+ - Add method to get helper view on another object
1036
+ [sgeulette]
1037
+ - Remove context parameter from helper methods to avoid changing context
1038
+ [sgeulette]
1039
+ - Get generation view name from a method.
1040
+ [sgeulette]
1041
+ - Use RadioFieldWidget for Bool field 'enabled' so it is displayed on the
1042
+ pod_template view when it is False.
1043
+ [gbastien]
1044
+
1045
+ 0.9 (2016-06-22)
1046
+ ----------------
1047
+
1048
+ - Handle case of rendering value of single selection widget.
1049
+ [sdelcourt]
1050
+
1051
+ 0.8 (2016-06-03)
1052
+ ----------------
1053
+
1054
+ - In `DocumentGenerationView._render_document`, pass `portal` as `imageResolver`
1055
+ to `appy.pod.renderer.Renderer` so private images can be accessed by
1056
+ LibreOffice in XHTML fields.
1057
+ [gbastien]
1058
+
1059
+ 0.7 (2016-03-22)
1060
+ ----------------
1061
+
1062
+ - Pass `**kwargs` to DocumentGenerationView._render_document so it is possible to pass
1063
+ arbitrary parameters to appy.pod.renderer.Renderer that is called in _render_document
1064
+ and to which we also pass the `**kwargs`.
1065
+ This way, it is possible for example to turn `Renderer.raiseOnError` to True.
1066
+ [gbastien]
1067
+ - Added meta_type for content_types `PODTemplate`, `ConfigurablePODTemplate`, `SubTemplate`
1068
+ and `StyleTemplate`, this way it can be used to filter out objectValues/objectIds.
1069
+ [gbastien]
1070
+ - Added a validator on the configurablePODTemplates which check if the chosen generations
1071
+ formats are corrects with the kind of file provided.
1072
+ [boulch, DieKatze]
1073
+
1074
+ 0.6 (2016-01-21)
1075
+ ----------------
1076
+
1077
+ - CSS fix, display POD templates in the viewlet using display: inline-block;
1078
+ instead of display: inline; so attached tags may be aligned on it.
1079
+ [gbastien]
1080
+ - Added 'description' to the list of available data to display in the generationlinks viewlet.
1081
+ The POD template description is now displayed when hovering the POD template title.
1082
+ [gbastien]
1083
+
1084
+ 0.5 (2015-12-02)
1085
+ ----------------
1086
+
1087
+ - Added `ConfigurablePODTemplateCondition._extra_expr_ctx` method so it is easy
1088
+ to extend the context of the ITALCondition expression without overriding
1089
+ the `evaluate` method.
1090
+ [gbastien]
1091
+
1092
+ 0.4 (2015-12-02)
1093
+ ----------------
1094
+
1095
+ - Make sure to not query a `None` to ensure compatibility with ZCatalog 3.
1096
+ [gbastien]
1097
+ - Take into account the `oo_port` paramater defined in the registry.
1098
+ [gbastien]
1099
+
1100
+ 0.3 (2015-09-30)
1101
+ ----------------
1102
+
1103
+ - Extend the base helper view to do @@plone, @@plone_portal_state view available
1104
+ and added a method 'translate' to be able to translate a msgid in a given domain.
1105
+ [gbastien]
1106
+ - Refactored the DocumentGenerationHelperView.display_date method to use
1107
+ toLocalizedDate and adapted AT and DX implementations.
1108
+ [gbastien]
1109
+ - Refactor the generation view to pass the arguments `pod_template` and `output_format`
1110
+ directly to the view call or its methods.
1111
+ [gbastien, sdelcourt]
1112
+
1113
+ 0.2 (2015-09-22)
1114
+ ----------------
1115
+ - Renamed field `pod_portal_type` to `pod_portal_types` as this field
1116
+ is a multiselection field.
1117
+ [gbastien]
1118
+ - Renamed `doc_uid` parameter used by the `document-generation` view to
1119
+ `template_uid`, more obvious, and makes it available in the viewlet
1120
+ link infos dict.
1121
+ [gbastien]
1122
+ - Added field IConfigurablePODTemplate.pod_formats to be able to select the
1123
+ format we want to generate the POD template in.
1124
+ [gbastien]
1125
+ - When evaluating the tal_condition on the template, pass extra_expr_ctx
1126
+ to the TAL expression so `context` and `here` become the element on which the TAL
1127
+ expression is actually evaluated instead of the pod_template and `template`
1128
+ is the pod_template
1129
+ [gbastien]
1130
+
1131
+ 0.1 (2015-07-17)
1132
+ ----------------
1133
+ - Initial release.
1134
+ [gbastien]
1135
+
1136
+ - ...
1137
+
1138
+ - Update bootstrap
1139
+ use https://raw.githubusercontent.com/buildout/buildout/master/bootstrap/bootstrap.py
1140
+ [fngaha]
1141
+
1142
+