Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Łukasz Nowak
erp5
Commits
6f99d9d1
Commit
6f99d9d1
authored
Oct 06, 2014
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless ooo xml validation in OOoTemplate
Reverts
037a7ed3
More details, see
574d45a6
parent
bbe0bfb7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
product/ERP5OOo/OOoTemplate.py
product/ERP5OOo/OOoTemplate.py
+0
-11
No files found.
product/ERP5OOo/OOoTemplate.py
View file @
6f99d9d1
...
@@ -29,8 +29,6 @@
...
@@ -29,8 +29,6 @@
from
types
import
StringType
from
types
import
StringType
from
mimetypes
import
guess_extension
from
mimetypes
import
guess_extension
from
zLOG
import
LOG
,
INFO
from
zLOG
import
PROBLEM
from
OFS.Image
import
File
from
OFS.Image
import
File
from
Products.CMFCore.FSPageTemplate
import
FSPageTemplate
from
Products.CMFCore.FSPageTemplate
import
FSPageTemplate
from
Products.CMFCore.DirectoryView
import
registerFileExtension
,
registerMetaType
from
Products.CMFCore.DirectoryView
import
registerFileExtension
,
registerMetaType
...
@@ -40,7 +38,6 @@ from zope.tal.talinterpreter import FasterStringIO
...
@@ -40,7 +38,6 @@ from zope.tal.talinterpreter import FasterStringIO
from
Products.ERP5Type
import
PropertySheet
from
Products.ERP5Type
import
PropertySheet
from
urllib
import
quote
from
urllib
import
quote
from
Products.ERP5Type.Globals
import
InitializeClass
,
DTMLFile
,
get_request
from
Products.ERP5Type.Globals
import
InitializeClass
,
DTMLFile
,
get_request
from
Products.ERP5Type.Globals
import
DevelopmentMode
from
Acquisition
import
aq_base
from
Acquisition
import
aq_base
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
from
OOoUtils
import
OOoBuilder
from
OOoUtils
import
OOoBuilder
...
@@ -541,14 +538,6 @@ class OOoTemplate(ZopePageTemplate):
...
@@ -541,14 +538,6 @@ class OOoTemplate(ZopePageTemplate):
else:
else:
ooo = ooo_builder.render(name=self.title or self.id, source=source)
ooo = ooo_builder.render(name=self.title or self.id, source=source)
if DevelopmentMode:
# Validate XML in development mode
from Products.ERP5OOo.tests.utils import Validator
err_list = Validator().validate(ooo)
if err_list:
LOG('ERP5OOo', PROBLEM,
'Validation of %s failed:
\
n
%s' % (self.getId(), ''.join(err_list)))
extension = None
extension = None
mimetype = ooo_builder.getMimeType()
mimetype = ooo_builder.getMimeType()
mimetypes_registry = self.getPortalObject().mimetypes_registry
mimetypes_registry = self.getPortalObject().mimetypes_registry
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment