diff --git a/product/ERP5Type/ZopePatch.py b/product/ERP5Type/ZopePatch.py
index 7e7e9e06a57c7b320fab6be624080450433b25b7..028cf0b3ae2bc149122fd1ff304aede5d1001aa5 100755
--- a/product/ERP5Type/ZopePatch.py
+++ b/product/ERP5Type/ZopePatch.py
@@ -900,6 +900,11 @@ DCWorkflowDefinition.notifySuccess = ERP5DCWorkflow.notifySuccess
 ##############################################################################
 # Make sure the xml export will be ordered
 
+from Shared.DC.xml import ppml
+from base64 import encodestring
+from cStringIO import StringIO
+from ZODB.referencesf import referencesf
+from ZODB.ExportImport import TemporaryFile
 from pickle import Pickler, EMPTY_DICT, MARK, DICT
 from cPickle import loads, dumps
 from types import *
@@ -1068,7 +1073,6 @@ class Global:
         return '%s<%s%s name="%s" module="%s"/>\n' % (
             ' '*indent, name, id, self.name, self.module)
 
-from Shared.DC.xml import ppml
 ppml.Global = Global
 
 class Scalar: