Commit 8ea61b51 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added support for acquisition.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16963 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4b42c8c2
......@@ -29,6 +29,8 @@
import sys
from Acquisition import Implicit
from Products.PythonScripts.Utility import allow_class
from ZPublisher.HTTPRequest import FileUpload
from xml.dom.ext.reader import PyExpat
......@@ -63,7 +65,7 @@ OOo_mimeType_dict = {
'sxm' : 'application/vnd.sun.xml.math',
}
class OOoBuilder:
class OOoBuilder(Implicit):
"""
Tool that allows to reinject new files in a ZODB OOo document.
"""
......@@ -218,7 +220,7 @@ class OOoBuilder:
InitializeClass(OOoBuilder)
allow_class(OOoBuilder)
class OOoParser:
class OOoParser(Implicit):
"""
General purpose tools to parse and handle OpenOffice v1.x documents.
"""
......@@ -553,3 +555,7 @@ class OOoParser:
InitializeClass(OOoParser)
allow_class(OOoParser)
allow_class(CorruptedOOoFile)
def newOOoParser(container):
return OOoParser().__of__(container)
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