Commit 2e4e40bb authored by Stefan H. Holek's avatar Stefan H. Holek

Remove quota argument from DemoStorage calls in preparation for ZODB 3.9.

parent d1389fe5
......@@ -219,6 +219,9 @@ Zope Changes
Bugs Fixed
- Testing.ZopeTestCase: Remove quota argument from DemoStorage calls in
preparation for ZODB 3.9.
- Ported c69896 to Five. This fix makes it possible to provide a
template using Python, and not have it being set to `None` by
the viewlet manager directive.
......
......@@ -229,9 +229,7 @@ from ZODB.DemoStorage import DemoStorage
def sandbox(base=None):
'''Returns a sandbox copy of the base ZODB.'''
if base is None: base = Zope2.DB
base_storage = base._storage
quota = getattr(base_storage, '_quota', None)
storage = DemoStorage(base=base_storage, quota=quota)
storage = DemoStorage(base=base._storage)
return ZODB.DB(storage)
_write(' done (%.3fs)\n' % (time.time() - _start))
......
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