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
aec8c519
Commit
aec8c519
authored
Apr 02, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added check for errors raised during error processing that
might cause infinite loops.
parent
6b44ca64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
lib/python/OFS/SimpleItem.py
lib/python/OFS/SimpleItem.py
+8
-2
No files found.
lib/python/OFS/SimpleItem.py
View file @
aec8c519
...
@@ -89,8 +89,8 @@ Aqueduct database adapters, etc.
...
@@ -89,8 +89,8 @@ Aqueduct database adapters, etc.
This module can also be used as a simple template for implementing new
This module can also be used as a simple template for implementing new
item types.
item types.
$Id: SimpleItem.py,v 1.4
3 1999/03/25 15:48:5
0 jim Exp $'''
$Id: SimpleItem.py,v 1.4
4 1999/04/02 00:11:4
0 jim Exp $'''
__version__
=
'$Revision: 1.4
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.4
4
$'
[
11
:
-
2
]
import
regex
,
sys
,
Globals
,
App
.
Management
,
Acquisition
import
regex
,
sys
,
Globals
,
App
.
Management
,
Acquisition
from
webdav.Resource
import
Resource
from
webdav.Resource
import
Resource
...
@@ -200,6 +200,7 @@ class Item(Base, Resource, CopySource, App.Management.Tabs):
...
@@ -200,6 +200,7 @@ class Item(Base, Resource, CopySource, App.Management.Tabs):
error_type
=
None
,
error_value
=
None
,
tb
=
None
,
error_type
=
None
,
error_value
=
None
,
tb
=
None
,
error_tb
=
None
,
error_message
=
''
,
error_tb
=
None
,
error_message
=
''
,
tagSearch
=
regex
.
compile
(
'[a-zA-Z]>'
).
search
):
tagSearch
=
regex
.
compile
(
'[a-zA-Z]>'
).
search
):
try
:
try
:
if
error_type
is
None
:
error_type
=
sys
.
exc_info
()[
0
]
if
error_type
is
None
:
error_type
=
sys
.
exc_info
()[
0
]
if
error_value
is
None
:
error_value
=
sys
.
exc_info
()[
1
]
if
error_value
is
None
:
error_value
=
sys
.
exc_info
()[
1
]
...
@@ -212,6 +213,10 @@ class Item(Base, Resource, CopySource, App.Management.Tabs):
...
@@ -212,6 +213,10 @@ class Item(Base, Resource, CopySource, App.Management.Tabs):
elif
type
(
tb
)
is
type
(
''
)
and
not
error_tb
:
elif
type
(
tb
)
is
type
(
''
)
and
not
error_tb
:
error_tb
=
tb
error_tb
=
tb
if
hasattr
(
self
,
'_v_eek'
):
raise
error_type
,
error_value
,
tb
self
.
_v_eek
=
1
if
lower
(
str
(
error_type
))
in
(
'redirect'
,):
if
lower
(
str
(
error_type
))
in
(
'redirect'
,):
raise
error_type
,
error_value
,
tb
raise
error_type
,
error_value
,
tb
...
@@ -236,6 +241,7 @@ class Item(Base, Resource, CopySource, App.Management.Tabs):
...
@@ -236,6 +241,7 @@ class Item(Base, Resource, CopySource, App.Management.Tabs):
except
:
v
=
'Sorry, an error occured'
except
:
v
=
'Sorry, an error occured'
raise
error_type
,
v
,
tb
raise
error_type
,
v
,
tb
finally
:
finally
:
if
hasattr
(
self
,
'_v_eek'
):
del
self
.
_v_eek
tb
=
None
tb
=
None
def
uniqueId
(
self
):
def
uniqueId
(
self
):
...
...
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