Commit 066112c4 authored by Nicolas Delaby's avatar Nicolas Delaby

Use PrettyPrint From 4Suite, to avoid rendering error

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16855 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 870015f7
...@@ -31,7 +31,6 @@ from Products.ERP5SyncML.SyncCode import SyncCode ...@@ -31,7 +31,6 @@ from Products.ERP5SyncML.SyncCode import SyncCode
from Products.ERP5SyncML.Subscription import Signature from Products.ERP5SyncML.Subscription import Signature
from AccessControl.SecurityManagement import newSecurityManager from AccessControl.SecurityManagement import newSecurityManager
from StringIO import StringIO from StringIO import StringIO
from xml.dom.ext import PrettyPrint
from ERP5Diff import ERP5Diff from ERP5Diff import ERP5Diff
from zLOG import LOG, INFO from zLOG import LOG, INFO
...@@ -47,6 +46,10 @@ try: ...@@ -47,6 +46,10 @@ try:
from base64 import b16encode, b16decode from base64 import b16encode, b16decode
except ImportError: except ImportError:
from base64 import encodestring as b16encode, decodestring as b16decode from base64 import encodestring as b16encode, decodestring as b16decode
try:
from Ft.Xml.Domlette import PrettyPrint
except ImportError:
from xml.dom.ext import PrettyPrint
class XMLSyncUtilsMixin(SyncCode): class XMLSyncUtilsMixin(SyncCode):
......
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