Commit 20897fe9 authored by wenjie.zheng's avatar wenjie.zheng

showAsXML: libraries cleanup.

parent c51ee891
...@@ -35,11 +35,6 @@ from Products.ERP5Type import Permissions ...@@ -35,11 +35,6 @@ from Products.ERP5Type import Permissions
# show as xml library # show as xml library
from lxml import etree from lxml import etree
from lxml.etree import Element, SubElement from lxml.etree import Element, SubElement
from xml.sax.saxutils import escape, unescape
from xml_marshaller.xml_marshaller import Marshaller
MARSHALLER_NAMESPACE_URI = 'http://www.erp5.org/namespaces/marshaller'
marshaller = Marshaller(namespace_uri=MARSHALLER_NAMESPACE_URI,
as_tree=True).dumps
_MARKER = [] _MARKER = []
......
...@@ -44,7 +44,6 @@ from zLOG import LOG, INFO, WARNING ...@@ -44,7 +44,6 @@ from zLOG import LOG, INFO, WARNING
# Libraries related to showAsXML # Libraries related to showAsXML
from lxml import etree from lxml import etree
from lxml.etree import Element, SubElement from lxml.etree import Element, SubElement
from xml.sax.saxutils import escape, unescape
ACTIVITY_GROUPING_COUNT = 100 ACTIVITY_GROUPING_COUNT = 100
......
...@@ -50,11 +50,6 @@ from zLOG import LOG, INFO, WARNING ...@@ -50,11 +50,6 @@ from zLOG import LOG, INFO, WARNING
# show as xml library # show as xml library
from lxml import etree from lxml import etree
from lxml.etree import Element, SubElement from lxml.etree import Element, SubElement
from xml.sax.saxutils import escape, unescape
from xml_marshaller.xml_marshaller import Marshaller
MARSHALLER_NAMESPACE_URI = 'http://www.erp5.org/namespaces/marshaller'
marshaller = Marshaller(namespace_uri=MARSHALLER_NAMESPACE_URI,
as_tree=True).dumps
_MARKER = [] _MARKER = []
......
...@@ -61,7 +61,6 @@ from Products.ERP5Workflow.Document.Transition import TRIGGER_AUTOMATIC,\ ...@@ -61,7 +61,6 @@ from Products.ERP5Workflow.Document.Transition import TRIGGER_AUTOMATIC,\
TRIGGER_USER_ACTION, TRIGGER_WORKFLOW_METHOD TRIGGER_USER_ACTION, TRIGGER_WORKFLOW_METHOD
from tempfile import mktemp from tempfile import mktemp
from types import StringTypes from types import StringTypes
from xml.sax.saxutils import escape, unescape
from zLOG import LOG, INFO, WARNING from zLOG import LOG, INFO, WARNING
class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject): class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
......
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