Updated for PyAMS_utils API change
authorThierry Florac <tflorac@ulthar.net>
Wed, 17 Jun 2020 13:54:56 +0200
changeset 102 3378e6aeb211
parent 101 feefc1c792c4
child 103 c3ebb29f8575
Updated for PyAMS_utils API change
src/pyams_workflow/content.py
--- a/src/pyams_workflow/content.py	Fri May 24 09:02:27 2019 +0200
+++ b/src/pyams_workflow/content.py	Wed Jun 17 13:54:56 2020 +0200
@@ -58,7 +58,7 @@
                 if info is not None and info.publication_effective_date:
                     first_version_label = '{1} (= {0})'.format(first_version_label.lower(),
                                                                format_date(info.publication_effective_date,
-                                                                           format=SH_DATE_FORMAT))
+                                                                           format_string=SH_DATE_FORMAT))
             terms.append(SimpleTerm(DISPLAY_FIRST_VERSION, title=first_version_label))
         # check for current version
         current_version_label = request.localizer.translate(VERSION_DISPLAY[DISPLAY_CURRENT_VERSION])
@@ -66,7 +66,7 @@
         if info is not None and info.publication_effective_date:
             current_version_label = '{1} (= {0})'.format(current_version_label.lower(),
                                                          format_date(info.publication_effective_date,
-                                                                     format=SH_DATE_FORMAT))
+                                                                     format_string=SH_DATE_FORMAT))
         terms.append(SimpleTerm(DISPLAY_CURRENT_VERSION, title=current_version_label))
         super(WorkflowContentDisplayedDateVocabulary, self).__init__(terms)