Updated summary
authorThierry Florac <thierry.florac@onf.fr>
Fri, 13 Oct 2017 08:38:32 +0200
changeset 226 51a05a1f4212
parent 225 e9b4aa6b9a79
child 227 7a55458f64a7
Updated summary
src/pyams_content/shared/common/zmi/summary.py
--- a/src/pyams_content/shared/common/zmi/summary.py	Fri Oct 13 08:38:14 2017 +0200
+++ b/src/pyams_content/shared/common/zmi/summary.py	Fri Oct 13 08:38:32 2017 +0200
@@ -181,7 +181,7 @@
         state = IWorkflowState(self.context)
         pub_date = tztime(state.get_first_state_date(workflow.published_states))
         if pub_date is None:
-            value = '--'
+            value = ''
         else:
             now = tztime(datetime.utcnow())
             pub_info = IWorkflowPublicationInfo(self.context)
@@ -189,7 +189,7 @@
                 value = format_datetime(tztime(pub_date))
             else:
                 if pub_info.publication_effective_date < now:
-                    value = '--'
+                    value = ''
                 else:
                     value = format_datetime(tztime(pub_info.publication_effective_date))
         self.widgets['first_publication_date'].value = value