--- a/src/pyams_content/shared/common/zmi/workflow.py Tue Jan 16 15:24:29 2018 +0100
+++ b/src/pyams_content/shared/common/zmi/workflow.py Tue Jan 16 15:24:57 2018 +0100
@@ -150,12 +150,16 @@
if ('publication_expiration_date' in self.widgets) and pub_info.publication_expiration_date:
self.widgets['publication_expiration_date'].value = \
tztime(pub_info.publication_expiration_date).strftime('%d/%m/%y %H:%M')
+ if 'displayed_publication_date' in self.widgets:
+ self.widgets['displayed_publication_date'].value = pub_info.displayed_publication_date
def createAndAdd(self, data):
pub_info = IWorkflowPublicationInfo(self.context)
pub_info.publication_effective_date = data.get('publication_effective_date')
pub_info.push_end_date = data.get('push_end_date')
pub_info.publication_expiration_date = data.get('publication_expiration_date')
+ if 'displayed_publication_date' in data:
+ pub_info.displayed_publication_date = data.get('displayed_publication_date')
return super(PublicationRequestForm, self).createAndAdd(data)
@@ -342,12 +346,16 @@
if ('publication_expiration_date' in self.widgets) and pub_info.publication_expiration_date:
self.widgets['publication_expiration_date'].value = \
tztime(pub_info.publication_expiration_date).strftime('%d/%m/%y %H:%M')
+ if 'displayed_publication_date' in self.widgets:
+ self.widgets['displayed_publication_date'].value = pub_info.displayed_publication_date
def createAndAdd(self, data):
pub_info = IWorkflowPublicationInfo(self.context)
pub_info.publication_effective_date = data.get('publication_effective_date')
pub_info.push_end_date = data.get('push_end_date')
pub_info.publication_expiration_date = data.get('publication_expiration_date')
+ if 'displayed_publication_date' in data:
+ pub_info.displayed_publication_date = data.get('displayed_publication_date')
return super(PublicationForm, self).createAndAdd(data)