Commit 4d387766 authored by Hanno Schlichting's avatar Hanno Schlichting

Remove temp_folder mount point from default configuration.

Most code related to temp_folder was already removed in 4.0a1.
parent 8e40ab33
...@@ -25,6 +25,8 @@ Features Added ...@@ -25,6 +25,8 @@ Features Added
Restructuring Restructuring
+++++++++++++ +++++++++++++
- Remove temp_folder mount point from default configuration.
- Split a WSGI part out of `Zope2.Startup.ZopeStarter`. - Split a WSGI part out of `Zope2.Startup.ZopeStarter`.
- Add new `Zope2.Startup.config` module to hold configuration. - Add new `Zope2.Startup.config` module to hold configuration.
......
...@@ -25,7 +25,7 @@ import Zope2.Startup ...@@ -25,7 +25,7 @@ import Zope2.Startup
TEMPNAME = tempfile.mktemp() TEMPNAME = tempfile.mktemp()
TEMPPRODUCTS = os.path.join(TEMPNAME, "Products") TEMPPRODUCTS = os.path.join(TEMPNAME, "Products")
bad_cfg = """ good_cfg = """
instancehome <<INSTANCE_HOME>> instancehome <<INSTANCE_HOME>>
<zodb_db main> <zodb_db main>
...@@ -36,17 +36,6 @@ instancehome <<INSTANCE_HOME>> ...@@ -36,17 +36,6 @@ instancehome <<INSTANCE_HOME>>
</zodb_db> </zodb_db>
""" """
good_cfg = bad_cfg + """
<zodb_db temporary>
# Temporary storage database (for sessions)
<temporarystorage>
name temporary storage for sessioning
</temporarystorage>
mount-point /temp_folder
container-class Products.TemporaryFolder.TemporaryContainer
</zodb_db>
"""
def getSchema(): def getSchema():
startup = os.path.dirname(os.path.realpath(Zope2.Startup.__file__)) startup = os.path.dirname(os.path.realpath(Zope2.Startup.__file__))
......
...@@ -350,9 +350,6 @@ def manage_getMountStatus(dispatcher): ...@@ -350,9 +350,6 @@ def manage_getMountStatus(dispatcher):
return res return res
# DM 2005-05-17: change default for 'create_mount_points' as
# otherwise (after our fix) 'temp_folder' can no longer be mounted
#def manage_addMounts(dispatcher, paths=(), create_mount_points=0,
def manage_addMounts(dispatcher, paths=(), create_mount_points=True, def manage_addMounts(dispatcher, paths=(), create_mount_points=True,
REQUEST=None): REQUEST=None):
"""Adds MountedObjects at the requested paths. """Adds MountedObjects at the requested paths.
......
...@@ -176,14 +176,12 @@ class StartupTestCase(unittest.TestCase): ...@@ -176,14 +176,12 @@ class StartupTestCase(unittest.TestCase):
<filestorage> <filestorage>
path <<INSTANCE_HOME>>/var/Data.fs path <<INSTANCE_HOME>>/var/Data.fs
</filestorage> </filestorage>
connection-class Products.TemporaryFolder.LowConflictConnection.LowConflictConnection
mount-point / mount-point /
cache-size 5000 cache-size 5000
pool-size 7 pool-size 7
</zodb_db> </zodb_db>
""") """)
self.assertEqual(conf.databases[0].config.connection_class.__name__, self.assertEqual(conf.databases[0].config.cache_size, 5000)
'LowConflictConnection')
def test_max_conflict_retries_default(self): def test_max_conflict_retries_default(self):
conf, handler = self.load_config_text("""\ conf, handler = self.load_config_text("""\
......
...@@ -24,11 +24,3 @@ instancehome $INSTANCE ...@@ -24,11 +24,3 @@ instancehome $INSTANCE
</filestorage> </filestorage>
mount-point / mount-point /
</zodb_db> </zodb_db>
<zodb_db temporary>
<temporarystorage>
name temporary storage for sessioning
</temporarystorage>
mount-point /temp_folder
container-class Products.TemporaryFolder.TemporaryContainer
</zodb_db>
...@@ -590,15 +590,6 @@ instancehome $INSTANCE ...@@ -590,15 +590,6 @@ instancehome $INSTANCE
mount-point / mount-point /
</zodb_db> </zodb_db>
<zodb_db temporary>
# Temporary storage database (for sessions)
<temporarystorage>
name temporary storage for sessioning
</temporarystorage>
mount-point /temp_folder
container-class Products.TemporaryFolder.TemporaryContainer
</zodb_db>
# Other storage examples # Other storage examples
# #
# ZEO client storage: # ZEO client storage:
......
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