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
Labels
Merge Requests
138
Merge Requests
138
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
a283c9ed
Commit
a283c9ed
authored
Aug 05, 2011
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better fix of ReST transform"
This reverts commit
1b1859b9
and monkey-patch docutils instead.
parent
b9ceb45e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
13 deletions
+8
-13
product/ERP5Type/patches/python.py
product/ERP5Type/patches/python.py
+7
-1
product/PortalTransforms/transforms/rest.py
product/PortalTransforms/transforms/rest.py
+1
-4
product/PortalTransforms/transforms/rest.template
product/PortalTransforms/transforms/rest.template
+0
-8
No files found.
product/ERP5Type/patches/python.py
View file @
a283c9ed
...
...
@@ -26,7 +26,7 @@
#
##############################################################################
import
sys
,
types
import
os
,
sys
,
types
if
sys
.
version_info
<
(
2
,
5
):
import
__builtin__
,
imp
...
...
@@ -108,3 +108,9 @@ if sys.version_info < (2, 7):
raise
missing_ordereddict
import
collections
collections
.
OrderedDict
=
OrderedDict
# Workaround bad use of getcwd() in docutils.
# Required by PortalTransforms.transforms.rest
from
docutils
import
utils
utils
.
relative_path
=
lambda
source
,
target
:
os
.
path
.
abspath
(
target
)
product/PortalTransforms/transforms/rest.py
View file @
a283c9ed
...
...
@@ -2,7 +2,6 @@ from Products.PortalTransforms.interfaces import ITransform
from
zope.interface
import
implements
from
reStructuredText
import
HTML
import
sys
import
os
class
rest
:
r"""Converts from reST to HTML.
...
...
@@ -57,11 +56,9 @@ class rest:
input_encoding
=
kwargs
.
get
(
'input_encoding'
,
encoding
)
output_encoding
=
kwargs
.
get
(
'output_encoding'
,
encoding
)
language
=
kwargs
.
get
(
'language'
,
'en'
)
warnings
=
kwargs
.
get
(
'warnings'
,
None
)
rest_template
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'rest.template'
)
warnings
=
kwargs
.
get
(
'warnings'
,
None
)
settings
=
{
'documentclass'
:
''
,
'traceback'
:
1
,
'template'
:
rest_template
}
html
=
HTML
(
orig
,
report_level
=
2
,
...
...
product/PortalTransforms/transforms/rest.template
deleted
100644 → 0
View file @
b9ceb45e
%(head_prefix)s
%(head)s
%(stylesheet)s
%(body_prefix)s
%(body_pre_docinfo)s
%(docinfo)s
%(body)s
%(body_suffix)s
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