Commit df415931 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

Workflow.py: fix missing deepcopy import, add initializedocument equales to notifycreated.

parent df07e6de
......@@ -34,6 +34,7 @@ from AccessControl.unauthorized import Unauthorized
from AccessControl.SecurityManagement import getSecurityManager
from Acquisition import aq_base, aq_inner, aq_parent
from DateTime import DateTime
from copy import deepcopy
from DocumentTemplate.DT_Util import TemplateDict
from Products.CMFCore.Expression import Expression
from Products.CMFCore.utils import getToolByName
......@@ -118,6 +119,8 @@ class Workflow(IdAsReferenceMixin("workflow_", "prefix"), XMLObject):
self._updateWorkflowHistory(document, status_dict)
self.updateRoleMappingsFor(document)
initializeDocument = notifyCreated
def _generateHistoryKey(self):
"""
Generate a key used in the workflow history.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment