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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
erp5
Commits
89df3005
Commit
89df3005
authored
May 29, 2018
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity: use delegate class to do conversion
parent
ecd594e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
bt5/erp5_corporate_identity/ExtensionTemplateItem/portal_components/extension.erp5.TemplateDocumentConversion.py
...l_components/extension.erp5.TemplateDocumentConversion.py
+2
-5
No files found.
bt5/erp5_corporate_identity/ExtensionTemplateItem/portal_components/extension.erp5.TemplateDocumentConversion.py
View file @
89df3005
...
...
@@ -28,7 +28,7 @@
# Cloudooo uses zip= argument, which is also a python builtin
# pylint: disable=redefined-builtin
from
xmlrpclib
import
ServerProxy
from
Products.ERP5OOo.Document.OOoDocument
import
OOo
ServerProxy
from
base64
import
b64encode
,
b64decode
from
zExceptions
import
Unauthorized
...
...
@@ -45,10 +45,7 @@ def convertDocumentByConversionServer(
if
REQUEST
is
not
None
:
raise
Unauthorized
proxy
=
ServerProxy
(
self
.
getPortalObject
().
portal_preferences
.
getPreferredDocumentConversionServerUrl
(),
allow_none
=
True
)
proxy
=
OOoServerProxy
(
self
)
return
b64decode
(
proxy
.
convertFile
(
b64encode
(
data
),
...
...
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