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
99a8384b
Commit
99a8384b
authored
Apr 03, 2016
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update MultiMapping, tempstorage, zExceptions, zLOG and ZopeUndo.
parent
faa17bb3
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
30 deletions
+32
-30
CHANGES.rst
CHANGES.rst
+8
-4
buildout.cfg
buildout.cfg
+0
-2
src/Zope2/App/tests/testExceptionHook.py
src/Zope2/App/tests/testExceptionHook.py
+19
-19
versions.cfg
versions.cfg
+5
-5
No files found.
CHANGES.rst
View file @
99a8384b
...
...
@@ -70,20 +70,24 @@ Features Added
- Updated distributions:
- AccessControl = 3.0.1
1
- Acquisition = 4.
0.3
- AccessControl = 3.0.1
2
- Acquisition = 4.
2.2
- BTrees = 4.0.8
- DateTime = 4.0.1
- ExtensionClass = 4.1
a1
- ExtensionClass = 4.1
.2
- docutils = 0.9.1
- manuel = 1.6.0
- Missing = 3.0
- MultiMapping = 3.0
- Persistence = 3.0a1
- Products.ExternalMethod = 2.13.1
- Products.MailHost = 2.13.2
- Products.ZCatalog = 3.1
- Record = 3.0
- ZopeUndo = 4.0
- tempstorage = 3.0
- zExceptions = 3.0
- zLOG = 3.0
- ZopeUndo = 4.1
Restructuring
+++++++++++++
...
...
buildout.cfg
View file @
99a8384b
...
...
@@ -28,8 +28,6 @@ auto-checkout =
Products.ExternalMethod
Products.ZCatalog
Products.ZCTextIndex
tempstorage
zLOG
[test]
...
...
src/Zope2/App/tests/testExceptionHook.py
View file @
99a8384b
...
...
@@ -117,13 +117,13 @@ class ExceptionHookTest(ExceptionHookTestCase):
def
testSystemExit
(
self
):
def
f
():
raise
SystemExit
,
1
raise
SystemExit
(
1
)
self
.
assertRaises
(
SystemExit
,
self
.
call
,
None
,
None
,
f
)
def
testUnauthorized
(
self
):
from
AccessControl
import
Unauthorized
def
f
():
raise
Unauthorized
,
1
raise
Unauthorized
(
'1'
)
self
.
assertRaises
(
Unauthorized
,
self
.
call
,
None
,
{},
f
)
def
testConflictErrorRaisesRetry
(
self
):
...
...
@@ -131,7 +131,7 @@ class ExceptionHookTest(ExceptionHookTestCase):
from
ZODB.POSException
import
ConflictError
from
App.config
import
getConfiguration
def
f
():
raise
ConflictError
raise
ConflictError
()
request
=
self
.
_makeRequest
()
old_value
=
getattr
(
getConfiguration
(),
'conflict_error_log_level'
,
0
)
self
.
assertEquals
(
old_value
,
0
)
# default value
...
...
@@ -146,7 +146,7 @@ class ExceptionHookTest(ExceptionHookTestCase):
def
testConflictErrorCount
(
self
):
from
ZODB.POSException
import
ConflictError
def
f
():
raise
ConflictError
raise
ConflictError
()
hook
=
self
.
_makeOne
()
self
.
assertEquals
(
hook
.
conflict_errors
,
0
)
self
.
call_no_exc
(
hook
,
None
,
None
,
f
)
...
...
@@ -160,7 +160,7 @@ class ExceptionHookTest(ExceptionHookTestCase):
pass
def
f
():
try
:
raise
CustomException
,
'Zope'
raise
CustomException
(
'Zope'
)
except
:
raise
Retry
(
sys
.
exc_info
()[
0
],
sys
.
exc_info
()[
1
],
...
...
@@ -172,7 +172,7 @@ class ExceptionHookTest(ExceptionHookTestCase):
from
ZODB.POSException
import
ConflictError
def
f
():
try
:
raise
ConflictError
raise
ConflictError
()
except
:
raise
Retry
(
sys
.
exc_info
()[
0
],
sys
.
exc_info
()[
1
],
...
...
@@ -184,7 +184,7 @@ class ExceptionHookTest(ExceptionHookTestCase):
from
ZODB.POSException
import
ConflictError
def
f
():
try
:
raise
ConflictError
raise
ConflictError
()
except
:
raise
Retry
(
sys
.
exc_info
()[
0
],
sys
.
exc_info
()[
1
],
...
...
@@ -215,14 +215,14 @@ class StandardClient(Client):
class
BrokenClient
(
Client
):
def
raise_standardErrorMessage
(
self
,
c
,
r
,
t
,
v
,
tb
,
error_log_url
):
raise
AttributeError
,
'ouch'
raise
AttributeError
(
'ouch'
)
class
ExceptionMessageRenderTest
(
ExceptionHookTestCase
):
def
testRenderUnauthorizedStandardClient
(
self
):
from
AccessControl
import
Unauthorized
def
f
():
raise
Unauthorized
,
1
raise
Unauthorized
(
'1'
)
request
=
self
.
_makeRequest
()
client
=
StandardClient
()
self
.
call
(
client
,
request
,
f
)
...
...
@@ -233,7 +233,7 @@ class ExceptionMessageRenderTest(ExceptionHookTestCase):
def
testRenderUnauthorizedStandardClientMethod
(
self
):
from
AccessControl
import
Unauthorized
def
f
():
raise
Unauthorized
,
1
raise
Unauthorized
(
'1'
)
request
=
self
.
_makeRequest
()
client
=
StandardClient
()
self
.
call
(
client
.
dummyMethod
,
request
,
f
)
...
...
@@ -244,7 +244,7 @@ class ExceptionMessageRenderTest(ExceptionHookTestCase):
def
testRenderUnauthorizedBrokenClient
(
self
):
from
AccessControl
import
Unauthorized
def
f
():
raise
Unauthorized
,
1
raise
Unauthorized
(
'1'
)
request
=
self
.
_makeRequest
()
client
=
BrokenClient
()
self
.
assertRaises
(
AttributeError
,
self
.
call
,
client
,
request
,
f
)
...
...
@@ -255,7 +255,7 @@ class ExceptionMessageRenderTest(ExceptionHookTestCase):
pass
def
f
():
try
:
raise
CustomException
,
'Zope'
raise
CustomException
(
'Zope'
)
except
:
raise
Retry
(
sys
.
exc_info
()[
0
],
sys
.
exc_info
()[
1
],
...
...
@@ -272,7 +272,7 @@ class ExceptionMessageRenderTest(ExceptionHookTestCase):
from
ZODB.POSException
import
ConflictError
def
f
():
try
:
raise
ConflictError
raise
ConflictError
()
except
:
raise
Retry
(
sys
.
exc_info
()[
0
],
sys
.
exc_info
()[
1
],
...
...
@@ -313,7 +313,7 @@ class ExceptionViewsTest(PlacelessSetup, ExceptionHookTestCase):
from
AccessControl
import
Unauthorized
registerExceptionView
(
IUnauthorized
)
def
f
():
raise
Unauthorized
,
1
raise
Unauthorized
(
'1'
)
request
=
self
.
_makeRequest
()
client
=
StandardClient
()
v
=
self
.
call_exc_value
(
client
,
request
,
f
)
...
...
@@ -326,7 +326,7 @@ class ExceptionViewsTest(PlacelessSetup, ExceptionHookTestCase):
from
zExceptions
import
Forbidden
registerExceptionView
(
IForbidden
)
def
f
():
raise
Forbidden
,
"argh"
raise
Forbidden
(
"argh"
)
request
=
self
.
_makeRequest
()
client
=
StandardClient
()
v
=
self
.
call_exc_value
(
client
,
request
,
f
)
...
...
@@ -339,7 +339,7 @@ class ExceptionViewsTest(PlacelessSetup, ExceptionHookTestCase):
from
zExceptions
import
NotFound
registerExceptionView
(
INotFound
)
def
f
():
raise
NotFound
,
"argh"
raise
NotFound
(
"argh"
)
request
=
self
.
_makeRequest
()
client
=
StandardClient
()
v
=
self
.
call_exc_value
(
client
,
request
,
f
)
...
...
@@ -352,7 +352,7 @@ class ExceptionViewsTest(PlacelessSetup, ExceptionHookTestCase):
from
zExceptions
import
BadRequest
registerExceptionView
(
IException
)
def
f
():
raise
BadRequest
,
"argh"
raise
BadRequest
(
"argh"
)
request
=
self
.
_makeRequest
()
client
=
StandardClient
()
v
=
self
.
call_exc_value
(
client
,
request
,
f
)
...
...
@@ -365,7 +365,7 @@ class ExceptionViewsTest(PlacelessSetup, ExceptionHookTestCase):
from
zExceptions
import
InternalError
registerExceptionView
(
IException
)
def
f
():
raise
InternalError
,
"argh"
raise
InternalError
(
"argh"
)
request
=
self
.
_makeRequest
()
client
=
StandardClient
()
v
=
self
.
call_exc_value
(
client
,
request
,
f
)
...
...
@@ -377,7 +377,7 @@ class ExceptionViewsTest(PlacelessSetup, ExceptionHookTestCase):
from
zExceptions
import
Redirect
registerExceptionView
(
IException
)
def
f
():
raise
Redirect
,
"http://zope.org/"
raise
Redirect
(
"http://zope.org/"
)
request
=
self
.
_makeRequest
()
client
=
StandardClient
()
v
=
self
.
call_exc_value
(
client
,
request
,
f
)
...
...
versions.cfg
View file @
99a8384b
...
...
@@ -12,17 +12,17 @@ DocumentTemplate = 2.13.2
ExtensionClass = 4.1.2
initgroups = 2.13.0
Missing = 3.0
MultiMapping =
2.1
3.0
MultiMapping = 3.0
nt-svcutils = 2.13.0
Persistence = 3.0a1
Products.OFSP = 2.13.2
Products.ZCatalog = 3.1
Products.ZCTextIndex = 2.13.5
Record = 3.0
tempstorage =
2.12.2
zExceptions =
2.1
3.0
zLOG =
2.12
.0
ZopeUndo = 4.
0
tempstorage =
3.0
zExceptions = 3.0
zLOG =
3
.0
ZopeUndo = 4.
1
# Deprecated / CMF dependencies
Products.BTreeFolder2 = 2.14.0
...
...
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