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
Boris Kocherov
erp5
Commits
66eddf10
Commit
66eddf10
authored
Aug 22, 2013
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix OOo use xml_marshaller.xml_marshaller instead of xml.marshal.generic
parent
be816eed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
product/ERP5Form/OOoChart.py
product/ERP5Form/OOoChart.py
+1
-3
product/ERP5OOo/OOoTemplate.py
product/ERP5OOo/OOoTemplate.py
+1
-1
No files found.
product/ERP5Form/OOoChart.py
View file @
66eddf10
...
...
@@ -430,10 +430,8 @@ class OOoChartWidget(Widget.Widget):
REQUEST
.
set
(
'render_prefix'
,
render_prefix
)
#needed to update REQUEST
argument_dict
=
self
.
getArgumentDict
(
field
,
REQUEST
)
from
xml
.marshal.generic
import
dumps
from
xml
_marshaller.xml_marshaller
import
dumps
dump_args
=
dumps
(
argument_dict
)
#remove xml declaration (first processing node)
dump_args
=
dump_args
[
dump_args
.
index
(
'?>'
)
+
2
:]
content
=
'''<office:include path="%s/ERP5Site_buildChart"
xlink:type="simple" xlink:actuate="onLoad"
xlink:show="embed">%s</office:include>
...
...
product/ERP5OOo/OOoTemplate.py
View file @
66eddf10
...
...
@@ -424,7 +424,7 @@ class OOoTemplate(ZopePageTemplate):
for office_include in xml_doc.xpath('//office:include', namespaces=xml_doc.nsmap):
marshal_list = office_include.xpath('./marshal')
if marshal_list:
from xml
.marshal.generic
import loads
from xml
_marshaller.xml_marshaller
import loads
arg_dict = loads(etree.tostring(marshal_list[0], encoding='utf-8',
xml_declaration=True, pretty_print=False))
extra_context.update(arg_dict)
...
...
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