Added helper method to check if mailed data have to be replaced during rendering
[sgeulette]

Moved filename generation to DocumentGenerationView._get_filename method so
it is easy to override and to call for specific usecases.
[gbastien]

Moved persistent doc title generation moved to DocumentGenerationView._get_title method
so it is easy to override and to call for specific usecases.
[sgeulette]

Do not break if temporary file can not be deleted.
[gbastien]

2.0.8 (2017-08-02)

Add default value for ‘pod_template’ and ‘output_format’ attributes of the generation view.
[sdelcourt]

2.0.7 (2017-07-25)

Check field_name existence following parameter: do not by default and fail if not exist
[sgeulette]

2.0.6 (2017-07-24)

Corrected migration step.
[sgeulette]

Check z3c.form.interfaces.NO_VALUE in get_value
[sgeulette]

2.0.5 (2017-07-19)

Added easy way to complete infos returned by
DocumentGeneratorLinksViewlet.get_links_info.
[gbastien]

Do pod_template and output_format directly available on the
@@generation-view and on the @@document_generation_helper_view via
self.pod_template and self.output_format.
[gbastien]

Added migration to change portal types icons
[sgeulette]

2.0.4 (2017-07-12)

Start and end libreoffice during test.
[sgeulette]

Check if field_name from a behavior is present
[sgeulette]

2.0.3 (2017-06-22)

When generating filename, remove special characters from unicoded title to
avoid it being turned to ascii numbers (special character u2013 is turned
to 2013 in the produced filename).
[gbastien]

2.0.2 (2017-06-22)

Make sure we do not have - character in the filename that is cropped because
it is handled weridly by cropName and cut name if - encountered.
[gbastien]

2.0.1 (2017-06-21)

Use plone.i18n.normalizer.interfaces.IFileNameNormalizer to normalize
filename because Products.CMFPlone.utils.normalizeString uses
IIDNormalizer for which max_length is fixed to 50. Here max_length is fixed
to 1023 so we may manage very long element title to generate filename.
[gbastien]

Manage style_modification_md5 field to detect if the template has been modified by a user.
Updated update_templates method to use it.
[sgeulette]

2.0.0 (2017-06-21)

Make package compatible with both Plone4 and Plone5 at the same time :
- Created Plone version specific profiles (plone4 and plone5);
- Removed support for AT in the Plone5 version;
- Adapted demo profile to work with Dexterity (plone.app.contenttypes).
[gbastien]

Run every tests in ‘french’ so we are sure that translations work everywhere.
[gbastien]

Added parameter raiseOnError_for_non_managers to be able to raise a Plone
error instead generating the document where errors are included. This avoid
generating a document containing errors where some data may be lost like in
PDF where errors are not viewable or even in ODT when users do not understand
that errors in comments are important. This will enable the raiseOnError
parameter of appy.pod.renderer.Renderer.
[gbastien]

1.0.6 (2017-05-31)

Added do_rendering field in IMergeTemplatesRowSchema schema. If selected, the subtemplate is rendered first
and the path is the value in context dict. Else the subtemplate object is the value in context dict.
[sgeulette]

Return generation context from rendering methods to use it in tests
[sgeulette]

Do not lose filename when updating a Pod template with it’s styles template
[gbastien]

Ease override of term title of the collective.documentgenerator.StyleTemplates vocabulary
[gbastien]

Define a correct portal_type description for StyleTmplate so it is displayed in the folder_factories
[gbastien]

Modified generated filename, before it was POD template title and format, now it it build using POD template title,
context title and format
[gbastien]

1.0.5 (2017-03-10)

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.
[odelaere]

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.
[odelaere]

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.
[odelaere]

Added parameter optimize_tables to be able to use the optimalColumnWidths
functionnality of appy.pod.
[gbastien]

1.0.4 (2017-02-14)

Update styles templates only with force param.
[sgeulette]

Make sure current_md5 is stored as unicode or it fails to validate when
manually validating stored data.
[gbastien]

1.0.3 (2017-02-10)

Added utils method to update templates.
[sgeulette]

1.0.2 (2017-02-07)

Fix widget for fields IConfigurablePODTemplate.pod_formats and
IConfigurablePODTemplate.pod_portal_types to avoid override by another
package like it is the case when using collective.z3cform.select2.
Use CheckBoxWidget for IConfigurablePODTemplate.pod_portal_types to ease
selection when displaying several elements.
[gbastien]

Set appy renderer on view element stored in generation context.
Useful when view has been overrided in generation context getter.
[sgeulette]

1.0.1 (2017-01-13)

Removed useless parameter in getDGHV method.
[sgeulette]

1.0.0 (2017-01-12)

Raise NotImplementedError in not implemented methods.
[sgeulette]

Rename display_html by render_xhtml and display_text by display_text_as_html.
[sgeulette]

Use RadioFieldWidget for Bool field ‘enabled’ so it is displayed on the
pod_template view when it is False.
[gbastien]

0.9 (2016-06-22)

Handle case of rendering value of single selection widget.
[sdelcourt]

0.8 (2016-06-03)

In DocumentGenerationView._render_document, pass portal as imageResolver
to appy.pod.renderer.Renderer so private images can be accessed by
LibreOffice in XHTML fields.
[gbastien]

0.7 (2016-03-22)

Pass **kwargs to DocumentGenerationView._render_document so it is possible to pass
arbitrary parameters to appy.pod.renderer.Renderer that is called in _render_document
and to which we also pass the **kwargs.
This way, it is possible for example to turn Renderer.raiseOnError to True.
[gbastien]

Added meta_type for content_types PODTemplate, ConfigurablePODTemplate, SubTemplate
and StyleTemplate, this way it can be used to filter out objectValues/objectIds.
[gbastien]

Added a validator on the configurablePODTemplates which check if the chosen generations
formats are corrects with the kind of file provided.
[boulch, DieKatze]

0.6 (2016-01-21)

CSS fix, display POD templates in the viewlet using display: inline-block;
instead of display: inline; so attached tags may be aligned on it.
[gbastien]

Added ‘description’ to the list of available data to display in the generationlinks viewlet.
The POD template description is now displayed when hovering the POD template title.
[gbastien]

0.5 (2015-12-02)

Added ConfigurablePODTemplateCondition._extra_expr_ctx method so it is easy
to extend the context of the ITALCondition expression without overriding
the evaluate method.
[gbastien]

0.4 (2015-12-02)

Make sure to not query a None to ensure compatibility with ZCatalog 3.
[gbastien]

Take into account the oo_port paramater defined in the registry.
[gbastien]

0.3 (2015-09-30)

Extend the base helper view to do @@plone, @@plone_portal_state view available
and added a method ‘translate’ to be able to translate a msgid in a given domain.
[gbastien]

Refactored the DocumentGenerationHelperView.display_date method to use
toLocalizedDate and adapted AT and DX implementations.
[gbastien]

Refactor the generation view to pass the arguments pod_template and output_format
directly to the view call or its methods.
[gbastien, sdelcourt]

0.2 (2015-09-22)

Renamed field pod_portal_type to pod_portal_types as this field
is a multiselection field.
[gbastien]

Renamed doc_uid parameter used by the document-generation view to
template_uid, more obvious, and makes it available in the viewlet
link infos dict.
[gbastien]

Added field IConfigurablePODTemplate.pod_formats to be able to select the
format we want to generate the POD template in.
[gbastien]

When evaluating the tal_condition on the template, pass extra_expr_ctx
to the TAL expression so context and here become the element on which the TAL
expression is actually evaluated instead of the pod_template and template
is the pod_template
[gbastien]