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
cf4279c7
Commit
cf4279c7
authored
Oct 09, 2005
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disabled the reST .. include directive
parent
59a2fae2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
lib/python/Products/ZReST/ZReST.py
lib/python/Products/ZReST/ZReST.py
+3
-0
lib/python/reStructuredText/__init__.py
lib/python/reStructuredText/__init__.py
+1
-0
No files found.
lib/python/Products/ZReST/ZReST.py
View file @
cf4279c7
...
@@ -192,6 +192,9 @@ class ZReST(Item, PropertyManager, Historical, Implicit, Persistent):
...
@@ -192,6 +192,9 @@ class ZReST(Item, PropertyManager, Historical, Implicit, Persistent):
# set the reporting level to something sane
# set the reporting level to something sane
pub
.
settings
.
report_level
=
int
(
self
.
report_level
)
pub
.
settings
.
report_level
=
int
(
self
.
report_level
)
# disallow use of the .. include directive for security reasons
pub
.
settings
.
file_insertion_enabled
=
0
# don't break if we get errors
# don't break if we get errors
pub
.
settings
.
halt_level
=
6
pub
.
settings
.
halt_level
=
6
...
...
lib/python/reStructuredText/__init__.py
View file @
cf4279c7
...
@@ -74,6 +74,7 @@ def render(src,
...
@@ -74,6 +74,7 @@ def render(src,
if
language_code
:
if
language_code
:
settings
[
'language_code'
]
=
language_code
settings
[
'language_code'
]
=
language_code
settings
[
'language_code'
]
=
language_code
settings
[
'language_code'
]
=
language_code
settings
[
'file_insertion_enabled '
]
=
0
# starting level for <H> elements:
# starting level for <H> elements:
settings
[
'initial_header_level'
]
=
initial_header_level
+
1
settings
[
'initial_header_level'
]
=
initial_header_level
+
1
# set the reporting level to something sane:
# set the reporting level to something sane:
...
...
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