Move publication attributes to pyams_workflow package
authorThierry Florac <thierry.florac@onf.fr>
Mon, 18 Jan 2016 17:42:56 +0100
changeset 15 d498aa030d6b
parent 14 234db8f05928
child 16 8c652535a9a2
Move publication attributes to pyams_workflow package
src/pyams_content/shared/common/__init__.py
--- a/src/pyams_content/shared/common/__init__.py	Mon Jan 18 17:42:32 2016 +0100
+++ b/src/pyams_content/shared/common/__init__.py	Mon Jan 18 17:42:56 2016 +0100
@@ -83,7 +83,6 @@
     creator = FieldProperty(IWfSharedContent['creator'])
     modifiers = FieldProperty(IWfSharedContent['modifiers'])
     last_modifier = FieldProperty(IWfSharedContent['last_modifier'])
-    publisher = FieldProperty(IWfSharedContent['publisher'])
     description = FieldProperty(IWfSharedContent['description'])
     keywords = FieldProperty(IWfSharedContent['keywords'])
     notepad = FieldProperty(IWfSharedContent['notepad'])
@@ -93,14 +92,6 @@
         versions = IWorkflowVersions(self)
         return versions.get_version(1).creator
 
-    @property
-    def publication(self):
-        request = check_request()
-        auth = get_utility(ISecurityManager)
-        return request.localizer.translate(_('{date} by {principal}')).format(
-            date=format_datetime(tztime(IWorkflowPublicationInfo(self).publication_date), request=request),
-            principal=auth.get_principal(self.publisher).title)
-
 
 @subscriber(IObjectModifiedEvent, context_selector=IWfSharedContent)
 def handle_modified_shared_content(event):