Skip to content

Commit

Permalink
Update MultiMapping, tempstorage, zExceptions, zLOG and ZopeUndo.
Browse files Browse the repository at this point in the history
  • Loading branch information
hannosch committed Apr 3, 2016
1 parent faa17bb commit 99a8384
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 30 deletions.
12 changes: 8 additions & 4 deletions CHANGES.rst
Expand Up @@ -70,20 +70,24 @@ Features Added

- Updated distributions:

- AccessControl = 3.0.11
- Acquisition = 4.0.3
- AccessControl = 3.0.12
- Acquisition = 4.2.2
- BTrees = 4.0.8
- DateTime = 4.0.1
- ExtensionClass = 4.1a1
- 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
+++++++++++++
Expand Down
2 changes: 0 additions & 2 deletions buildout.cfg
Expand Up @@ -28,8 +28,6 @@ auto-checkout =
Products.ExternalMethod
Products.ZCatalog
Products.ZCTextIndex
tempstorage
zLOG


[test]
Expand Down
38 changes: 19 additions & 19 deletions src/Zope2/App/tests/testExceptionHook.py
Expand Up @@ -117,21 +117,21 @@ 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):
from ZPublisher import Retry
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
Expand All @@ -146,7 +146,7 @@ def f():
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)
Expand All @@ -160,7 +160,7 @@ class CustomException(Exception):
pass
def f():
try:
raise CustomException, 'Zope'
raise CustomException('Zope')
except:
raise Retry(sys.exc_info()[0],
sys.exc_info()[1],
Expand All @@ -172,7 +172,7 @@ def testRetryRaisesConflictError(self):
from ZODB.POSException import ConflictError
def f():
try:
raise ConflictError
raise ConflictError()
except:
raise Retry(sys.exc_info()[0],
sys.exc_info()[1],
Expand All @@ -184,7 +184,7 @@ def testRetryUnresolvedConflictErrorCount(self):
from ZODB.POSException import ConflictError
def f():
try:
raise ConflictError
raise ConflictError()
except:
raise Retry(sys.exc_info()[0],
sys.exc_info()[1],
Expand Down Expand Up @@ -215,14 +215,14 @@ def raise_standardErrorMessage(self, c, r, t, v, tb, error_log_url):
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)
Expand All @@ -233,7 +233,7 @@ def f():
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)
Expand All @@ -244,7 +244,7 @@ def f():
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)
Expand All @@ -255,7 +255,7 @@ class CustomException(Exception):
pass
def f():
try:
raise CustomException, 'Zope'
raise CustomException('Zope')
except:
raise Retry(sys.exc_info()[0],
sys.exc_info()[1],
Expand All @@ -272,7 +272,7 @@ def testRenderRetryRaisesConflictError(self):
from ZODB.POSException import ConflictError
def f():
try:
raise ConflictError
raise ConflictError()
except:
raise Retry(sys.exc_info()[0],
sys.exc_info()[1],
Expand Down Expand Up @@ -313,7 +313,7 @@ def testCustomExceptionViewUnauthorized(self):
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)
Expand All @@ -326,7 +326,7 @@ def testCustomExceptionViewForbidden(self):
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)
Expand All @@ -339,7 +339,7 @@ def testCustomExceptionViewNotFound(self):
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)
Expand All @@ -352,7 +352,7 @@ def testCustomExceptionViewBadRequest(self):
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)
Expand All @@ -365,7 +365,7 @@ def testCustomExceptionViewInternalError(self):
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)
Expand All @@ -377,7 +377,7 @@ def testRedirectNoExceptionView(self):
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)
Expand Down
10 changes: 5 additions & 5 deletions versions.cfg
Expand Up @@ -12,17 +12,17 @@ DocumentTemplate = 2.13.2
ExtensionClass = 4.1.2
initgroups = 2.13.0
Missing = 3.0
MultiMapping = 2.13.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.13.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
Expand Down

0 comments on commit 99a8384

Please sign in to comment.