Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Kirill Smelkov
Zope
Commits
57ef63ef
Commit
57ef63ef
authored
Mar 23, 2004
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reST ignored the encoding settings in zope.conf
parent
f01ca899
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
doc/CHANGES.txt
doc/CHANGES.txt
+2
-0
lib/python/reStructuredText/__init__.py
lib/python/reStructuredText/__init__.py
+6
-9
No files found.
doc/CHANGES.txt
View file @
57ef63ef
...
...
@@ -103,6 +103,8 @@ Zope Changes
Bugs fixed
- reStructuredText ignored the encoding settings in zope.conf
- ObjectManager no longer raises string exceptions
- Collector #1260: Testing/__init__.py no longer changes the
...
...
lib/python/reStructuredText/__init__.py
View file @
57ef63ef
...
...
@@ -15,14 +15,14 @@
__all__
=
(
"HTML"
,
)
import
sys
,
os
import
docutils.core
from
docutils.io
import
StringOutput
,
StringInput
import
sys
,
os
from
App.config
import
getConfiguration
default_input_encoding
=
os
.
environ
.
get
(
"REST_INPUT_ENCODING"
,
sys
.
getdefaultencoding
())
default_output_encoding
=
os
.
environ
.
get
(
"REST_OUTPUT_ENCODING"
,
sys
.
getdefaultencoding
())
default_enc
=
sys
.
getdefaultencoding
()
default_output_encoding
=
getConfiguration
().
rest_output_encoding
or
default_enc
default_input_encoding
=
getConfiguration
().
rest_input_encoding
or
default_enc
class
Warnings
:
...
...
@@ -32,7 +32,6 @@ class Warnings:
def
write
(
self
,
message
):
self
.
messages
.
append
(
message
)
def
HTML
(
src
,
writer
=
'html4zope'
,
report_level
=
1
,
...
...
@@ -93,8 +92,6 @@ def HTML(src,
# do the format
return
pub
.
writer
.
write
(
document
,
pub
.
destination
)
from
docutils
import
writers
import
html4zope
...
...
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