Commit 18abefe9 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added factory method.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16964 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8ea61b51
...@@ -41,6 +41,7 @@ document_classes = updateGlobals( this_module, globals(), permissions_module = P ...@@ -41,6 +41,7 @@ document_classes = updateGlobals( this_module, globals(), permissions_module = P
# Allow access to OOoParser from scripts # Allow access to OOoParser from scripts
from AccessControl import ModuleSecurityInfo from AccessControl import ModuleSecurityInfo
ModuleSecurityInfo('Products.ERP5OOo.OOoUtils').declarePublic('OOoParser',) ModuleSecurityInfo('Products.ERP5OOo.OOoUtils').declarePublic('OOoParser',)
ModuleSecurityInfo('Products.ERP5OOo.OOoUtils').declarePublic('newOOoParser',)
# Define object classes and tools # Define object classes and tools
from OOoTemplate import OOoTemplate from OOoTemplate import OOoTemplate
...@@ -59,7 +60,7 @@ def initialize( context ): ...@@ -59,7 +60,7 @@ def initialize( context ):
portal_tools = portal_tools, portal_tools = portal_tools,
content_constructors = content_constructors, content_constructors = content_constructors,
content_classes = content_classes) content_classes = content_classes)
# allow import of various exceptions in restricted environment # allow import of various exceptions in restricted environment
# so we can catch them in ZODB scripts and inform user nicely # so we can catch them in ZODB scripts and inform user nicely
allow_module('Products.ERP5.Document.Document.ConversionError') allow_module('Products.ERP5.Document.Document.ConversionError')
......
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