Commit 99a8384b authored by Hanno Schlichting's avatar Hanno Schlichting

Update MultiMapping, tempstorage, zExceptions, zLOG and ZopeUndo.

parent faa17bb3
...@@ -70,20 +70,24 @@ Features Added ...@@ -70,20 +70,24 @@ Features Added
- Updated distributions: - Updated distributions:
- AccessControl = 3.0.11 - AccessControl = 3.0.12
- Acquisition = 4.0.3 - Acquisition = 4.2.2
- BTrees = 4.0.8 - BTrees = 4.0.8
- DateTime = 4.0.1 - DateTime = 4.0.1
- ExtensionClass = 4.1a1 - ExtensionClass = 4.1.2
- docutils = 0.9.1 - docutils = 0.9.1
- manuel = 1.6.0 - manuel = 1.6.0
- Missing = 3.0 - Missing = 3.0
- MultiMapping = 3.0
- Persistence = 3.0a1 - Persistence = 3.0a1
- Products.ExternalMethod = 2.13.1 - Products.ExternalMethod = 2.13.1
- Products.MailHost = 2.13.2 - Products.MailHost = 2.13.2
- Products.ZCatalog = 3.1 - Products.ZCatalog = 3.1
- Record = 3.0 - Record = 3.0
- ZopeUndo = 4.0 - tempstorage = 3.0
- zExceptions = 3.0
- zLOG = 3.0
- ZopeUndo = 4.1
Restructuring Restructuring
+++++++++++++ +++++++++++++
......
...@@ -28,8 +28,6 @@ auto-checkout = ...@@ -28,8 +28,6 @@ auto-checkout =
Products.ExternalMethod Products.ExternalMethod
Products.ZCatalog Products.ZCatalog
Products.ZCTextIndex Products.ZCTextIndex
tempstorage
zLOG
[test] [test]
......
...@@ -117,13 +117,13 @@ class ExceptionHookTest(ExceptionHookTestCase): ...@@ -117,13 +117,13 @@ class ExceptionHookTest(ExceptionHookTestCase):
def testSystemExit(self): def testSystemExit(self):
def f(): def f():
raise SystemExit, 1 raise SystemExit(1)
self.assertRaises(SystemExit, self.call, None, None, f) self.assertRaises(SystemExit, self.call, None, None, f)
def testUnauthorized(self): def testUnauthorized(self):
from AccessControl import Unauthorized from AccessControl import Unauthorized
def f(): def f():
raise Unauthorized, 1 raise Unauthorized('1')
self.assertRaises(Unauthorized, self.call, None, {}, f) self.assertRaises(Unauthorized, self.call, None, {}, f)
def testConflictErrorRaisesRetry(self): def testConflictErrorRaisesRetry(self):
...@@ -131,7 +131,7 @@ class ExceptionHookTest(ExceptionHookTestCase): ...@@ -131,7 +131,7 @@ class ExceptionHookTest(ExceptionHookTestCase):
from ZODB.POSException import ConflictError from ZODB.POSException import ConflictError
from App.config import getConfiguration from App.config import getConfiguration
def f(): def f():
raise ConflictError raise ConflictError()
request = self._makeRequest() request = self._makeRequest()
old_value = getattr(getConfiguration(), 'conflict_error_log_level', 0) old_value = getattr(getConfiguration(), 'conflict_error_log_level', 0)
self.assertEquals(old_value, 0) # default value self.assertEquals(old_value, 0) # default value
...@@ -146,7 +146,7 @@ class ExceptionHookTest(ExceptionHookTestCase): ...@@ -146,7 +146,7 @@ class ExceptionHookTest(ExceptionHookTestCase):
def testConflictErrorCount(self): def testConflictErrorCount(self):
from ZODB.POSException import ConflictError from ZODB.POSException import ConflictError
def f(): def f():
raise ConflictError raise ConflictError()
hook = self._makeOne() hook = self._makeOne()
self.assertEquals(hook.conflict_errors, 0) self.assertEquals(hook.conflict_errors, 0)
self.call_no_exc(hook, None, None, f) self.call_no_exc(hook, None, None, f)
...@@ -160,7 +160,7 @@ class ExceptionHookTest(ExceptionHookTestCase): ...@@ -160,7 +160,7 @@ class ExceptionHookTest(ExceptionHookTestCase):
pass pass
def f(): def f():
try: try:
raise CustomException, 'Zope' raise CustomException('Zope')
except: except:
raise Retry(sys.exc_info()[0], raise Retry(sys.exc_info()[0],
sys.exc_info()[1], sys.exc_info()[1],
...@@ -172,7 +172,7 @@ class ExceptionHookTest(ExceptionHookTestCase): ...@@ -172,7 +172,7 @@ class ExceptionHookTest(ExceptionHookTestCase):
from ZODB.POSException import ConflictError from ZODB.POSException import ConflictError
def f(): def f():
try: try:
raise ConflictError raise ConflictError()
except: except:
raise Retry(sys.exc_info()[0], raise Retry(sys.exc_info()[0],
sys.exc_info()[1], sys.exc_info()[1],
...@@ -184,7 +184,7 @@ class ExceptionHookTest(ExceptionHookTestCase): ...@@ -184,7 +184,7 @@ class ExceptionHookTest(ExceptionHookTestCase):
from ZODB.POSException import ConflictError from ZODB.POSException import ConflictError
def f(): def f():
try: try:
raise ConflictError raise ConflictError()
except: except:
raise Retry(sys.exc_info()[0], raise Retry(sys.exc_info()[0],
sys.exc_info()[1], sys.exc_info()[1],
...@@ -215,14 +215,14 @@ class StandardClient(Client): ...@@ -215,14 +215,14 @@ class StandardClient(Client):
class BrokenClient(Client): class BrokenClient(Client):
def raise_standardErrorMessage(self, c, r, t, v, tb, error_log_url): def raise_standardErrorMessage(self, c, r, t, v, tb, error_log_url):
raise AttributeError, 'ouch' raise AttributeError('ouch')
class ExceptionMessageRenderTest(ExceptionHookTestCase): class ExceptionMessageRenderTest(ExceptionHookTestCase):
def testRenderUnauthorizedStandardClient(self): def testRenderUnauthorizedStandardClient(self):
from AccessControl import Unauthorized from AccessControl import Unauthorized
def f(): def f():
raise Unauthorized, 1 raise Unauthorized('1')
request = self._makeRequest() request = self._makeRequest()
client = StandardClient() client = StandardClient()
self.call(client, request, f) self.call(client, request, f)
...@@ -233,7 +233,7 @@ class ExceptionMessageRenderTest(ExceptionHookTestCase): ...@@ -233,7 +233,7 @@ class ExceptionMessageRenderTest(ExceptionHookTestCase):
def testRenderUnauthorizedStandardClientMethod(self): def testRenderUnauthorizedStandardClientMethod(self):
from AccessControl import Unauthorized from AccessControl import Unauthorized
def f(): def f():
raise Unauthorized, 1 raise Unauthorized('1')
request = self._makeRequest() request = self._makeRequest()
client = StandardClient() client = StandardClient()
self.call(client.dummyMethod, request, f) self.call(client.dummyMethod, request, f)
...@@ -244,7 +244,7 @@ class ExceptionMessageRenderTest(ExceptionHookTestCase): ...@@ -244,7 +244,7 @@ class ExceptionMessageRenderTest(ExceptionHookTestCase):
def testRenderUnauthorizedBrokenClient(self): def testRenderUnauthorizedBrokenClient(self):
from AccessControl import Unauthorized from AccessControl import Unauthorized
def f(): def f():
raise Unauthorized, 1 raise Unauthorized('1')
request = self._makeRequest() request = self._makeRequest()
client = BrokenClient() client = BrokenClient()
self.assertRaises(AttributeError, self.call, client, request, f) self.assertRaises(AttributeError, self.call, client, request, f)
...@@ -255,7 +255,7 @@ class ExceptionMessageRenderTest(ExceptionHookTestCase): ...@@ -255,7 +255,7 @@ class ExceptionMessageRenderTest(ExceptionHookTestCase):
pass pass
def f(): def f():
try: try:
raise CustomException, 'Zope' raise CustomException('Zope')
except: except:
raise Retry(sys.exc_info()[0], raise Retry(sys.exc_info()[0],
sys.exc_info()[1], sys.exc_info()[1],
...@@ -272,7 +272,7 @@ class ExceptionMessageRenderTest(ExceptionHookTestCase): ...@@ -272,7 +272,7 @@ class ExceptionMessageRenderTest(ExceptionHookTestCase):
from ZODB.POSException import ConflictError from ZODB.POSException import ConflictError
def f(): def f():
try: try:
raise ConflictError raise ConflictError()
except: except:
raise Retry(sys.exc_info()[0], raise Retry(sys.exc_info()[0],
sys.exc_info()[1], sys.exc_info()[1],
...@@ -313,7 +313,7 @@ class ExceptionViewsTest(PlacelessSetup, ExceptionHookTestCase): ...@@ -313,7 +313,7 @@ class ExceptionViewsTest(PlacelessSetup, ExceptionHookTestCase):
from AccessControl import Unauthorized from AccessControl import Unauthorized
registerExceptionView(IUnauthorized) registerExceptionView(IUnauthorized)
def f(): def f():
raise Unauthorized, 1 raise Unauthorized('1')
request = self._makeRequest() request = self._makeRequest()
client = StandardClient() client = StandardClient()
v = self.call_exc_value(client, request, f) v = self.call_exc_value(client, request, f)
...@@ -326,7 +326,7 @@ class ExceptionViewsTest(PlacelessSetup, ExceptionHookTestCase): ...@@ -326,7 +326,7 @@ class ExceptionViewsTest(PlacelessSetup, ExceptionHookTestCase):
from zExceptions import Forbidden from zExceptions import Forbidden
registerExceptionView(IForbidden) registerExceptionView(IForbidden)
def f(): def f():
raise Forbidden, "argh" raise Forbidden("argh")
request = self._makeRequest() request = self._makeRequest()
client = StandardClient() client = StandardClient()
v = self.call_exc_value(client, request, f) v = self.call_exc_value(client, request, f)
...@@ -339,7 +339,7 @@ class ExceptionViewsTest(PlacelessSetup, ExceptionHookTestCase): ...@@ -339,7 +339,7 @@ class ExceptionViewsTest(PlacelessSetup, ExceptionHookTestCase):
from zExceptions import NotFound from zExceptions import NotFound
registerExceptionView(INotFound) registerExceptionView(INotFound)
def f(): def f():
raise NotFound, "argh" raise NotFound("argh")
request = self._makeRequest() request = self._makeRequest()
client = StandardClient() client = StandardClient()
v = self.call_exc_value(client, request, f) v = self.call_exc_value(client, request, f)
...@@ -352,7 +352,7 @@ class ExceptionViewsTest(PlacelessSetup, ExceptionHookTestCase): ...@@ -352,7 +352,7 @@ class ExceptionViewsTest(PlacelessSetup, ExceptionHookTestCase):
from zExceptions import BadRequest from zExceptions import BadRequest
registerExceptionView(IException) registerExceptionView(IException)
def f(): def f():
raise BadRequest, "argh" raise BadRequest("argh")
request = self._makeRequest() request = self._makeRequest()
client = StandardClient() client = StandardClient()
v = self.call_exc_value(client, request, f) v = self.call_exc_value(client, request, f)
...@@ -365,7 +365,7 @@ class ExceptionViewsTest(PlacelessSetup, ExceptionHookTestCase): ...@@ -365,7 +365,7 @@ class ExceptionViewsTest(PlacelessSetup, ExceptionHookTestCase):
from zExceptions import InternalError from zExceptions import InternalError
registerExceptionView(IException) registerExceptionView(IException)
def f(): def f():
raise InternalError, "argh" raise InternalError("argh")
request = self._makeRequest() request = self._makeRequest()
client = StandardClient() client = StandardClient()
v = self.call_exc_value(client, request, f) v = self.call_exc_value(client, request, f)
...@@ -377,7 +377,7 @@ class ExceptionViewsTest(PlacelessSetup, ExceptionHookTestCase): ...@@ -377,7 +377,7 @@ class ExceptionViewsTest(PlacelessSetup, ExceptionHookTestCase):
from zExceptions import Redirect from zExceptions import Redirect
registerExceptionView(IException) registerExceptionView(IException)
def f(): def f():
raise Redirect, "http://zope.org/" raise Redirect("http://zope.org/")
request = self._makeRequest() request = self._makeRequest()
client = StandardClient() client = StandardClient()
v = self.call_exc_value(client, request, f) v = self.call_exc_value(client, request, f)
......
...@@ -12,17 +12,17 @@ DocumentTemplate = 2.13.2 ...@@ -12,17 +12,17 @@ DocumentTemplate = 2.13.2
ExtensionClass = 4.1.2 ExtensionClass = 4.1.2
initgroups = 2.13.0 initgroups = 2.13.0
Missing = 3.0 Missing = 3.0
MultiMapping = 2.13.0 MultiMapping = 3.0
nt-svcutils = 2.13.0 nt-svcutils = 2.13.0
Persistence = 3.0a1 Persistence = 3.0a1
Products.OFSP = 2.13.2 Products.OFSP = 2.13.2
Products.ZCatalog = 3.1 Products.ZCatalog = 3.1
Products.ZCTextIndex = 2.13.5 Products.ZCTextIndex = 2.13.5
Record = 3.0 Record = 3.0
tempstorage = 2.12.2 tempstorage = 3.0
zExceptions = 2.13.0 zExceptions = 3.0
zLOG = 2.12.0 zLOG = 3.0
ZopeUndo = 4.0 ZopeUndo = 4.1
# Deprecated / CMF dependencies # Deprecated / CMF dependencies
Products.BTreeFolder2 = 2.14.0 Products.BTreeFolder2 = 2.14.0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment