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
628a16ca
Commit
628a16ca
authored
Apr 02, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated rendering code.
parent
62f52e45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
lib/python/DocumentTemplate/DT_Raise.py
lib/python/DocumentTemplate/DT_Raise.py
+8
-4
No files found.
lib/python/DocumentTemplate/DT_Raise.py
View file @
628a16ca
...
@@ -65,8 +65,8 @@
...
@@ -65,8 +65,8 @@
# (540) 371-6909
# (540) 371-6909
#
#
############################################################################
############################################################################
__rcs_id__
=
'$Id: DT_Raise.py,v 1.
2 1998/03/04 18:50:39
jim Exp $'
__rcs_id__
=
'$Id: DT_Raise.py,v 1.
3 1998/04/02 19:05:53
jim Exp $'
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
from
DT_Util
import
*
from
DT_Util
import
*
import
sys
import
sys
...
@@ -78,7 +78,8 @@ class Raise:
...
@@ -78,7 +78,8 @@ class Raise:
def
__init__
(
self
,
blocks
):
def
__init__
(
self
,
blocks
):
tname
,
args
,
self
.
section
=
blocks
[
0
]
tname
,
args
,
section
=
blocks
[
0
]
self
.
section
=
section
.
blocks
args
=
parse_params
(
args
,
type
=
''
,
expr
=
''
)
args
=
parse_params
(
args
,
type
=
''
,
expr
=
''
)
self
.
__name__
,
self
.
expr
=
name_param
(
args
,
'raise'
,
1
,
attr
=
'type'
)
self
.
__name__
,
self
.
expr
=
name_param
(
args
,
'raise'
,
1
,
attr
=
'type'
)
...
@@ -92,7 +93,7 @@ class Raise:
...
@@ -92,7 +93,7 @@ class Raise:
try
:
t
=
expr
.
eval
(
md
)
try
:
t
=
expr
.
eval
(
md
)
except
:
t
=
'Invalid Error Type Expression'
except
:
t
=
'Invalid Error Type Expression'
try
:
v
=
self
.
section
(
None
,
md
)
try
:
v
=
render_blocks
(
self
.
section
,
md
)
except
:
v
=
'Invalid Error Value'
except
:
v
=
'Invalid Error Value'
raise
t
,
v
raise
t
,
v
...
@@ -103,6 +104,9 @@ class Raise:
...
@@ -103,6 +104,9 @@ class Raise:
##########################################################################
##########################################################################
#
#
# $Log: DT_Raise.py,v $
# $Log: DT_Raise.py,v $
# Revision 1.3 1998/04/02 19:05:53 jim
# Updated rendering code.
#
# Revision 1.2 1998/03/04 18:50:39 jim
# Revision 1.2 1998/03/04 18:50:39 jim
# *** empty log message ***
# *** empty log message ***
#
#
...
...
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