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