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
4d387766
Commit
4d387766
authored
Aug 01, 2016
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove temp_folder mount point from default configuration.
Most code related to temp_folder was already removed in 4.0a1.
parent
8e40ab33
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
35 deletions
+4
-35
CHANGES.rst
CHANGES.rst
+2
-0
src/OFS/tests/testAppInitializer.py
src/OFS/tests/testAppInitializer.py
+1
-12
src/Products/ZODBMountPoint/MountedObject.py
src/Products/ZODBMountPoint/MountedObject.py
+0
-3
src/Zope2/Startup/tests/test_schema.py
src/Zope2/Startup/tests/test_schema.py
+1
-3
src/Zope2/utilities/skel/etc/base.conf.in
src/Zope2/utilities/skel/etc/base.conf.in
+0
-8
src/Zope2/utilities/skel/etc/example.conf.in
src/Zope2/utilities/skel/etc/example.conf.in
+0
-9
No files found.
CHANGES.rst
View file @
4d387766
...
...
@@ -25,6 +25,8 @@ Features Added
Restructuring
+++++++++++++
- Remove temp_folder mount point from default configuration.
- Split a WSGI part out of `Zope2.Startup.ZopeStarter`.
- Add new `Zope2.Startup.config` module to hold configuration.
...
...
src/OFS/tests/testAppInitializer.py
View file @
4d387766
...
...
@@ -25,7 +25,7 @@ import Zope2.Startup
TEMPNAME
=
tempfile
.
mktemp
()
TEMPPRODUCTS
=
os
.
path
.
join
(
TEMPNAME
,
"Products"
)
ba
d_cfg
=
"""
goo
d_cfg
=
"""
instancehome <<INSTANCE_HOME>>
<zodb_db main>
...
...
@@ -36,17 +36,6 @@ instancehome <<INSTANCE_HOME>>
</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
():
startup
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
Zope2
.
Startup
.
__file__
))
...
...
src/Products/ZODBMountPoint/MountedObject.py
View file @
4d387766
...
...
@@ -350,9 +350,6 @@ def manage_getMountStatus(dispatcher):
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
,
REQUEST
=
None
):
"""Adds MountedObjects at the requested paths.
...
...
src/Zope2/Startup/tests/test_schema.py
View file @
4d387766
...
...
@@ -176,14 +176,12 @@ class StartupTestCase(unittest.TestCase):
<filestorage>
path <<INSTANCE_HOME>>/var/Data.fs
</filestorage>
connection-class Products.TemporaryFolder.LowConflictConnection.LowConflictConnection
mount-point /
cache-size 5000
pool-size 7
</zodb_db>
"""
)
self
.
assertEqual
(
conf
.
databases
[
0
].
config
.
connection_class
.
__name__
,
'LowConflictConnection'
)
self
.
assertEqual
(
conf
.
databases
[
0
].
config
.
cache_size
,
5000
)
def
test_max_conflict_retries_default
(
self
):
conf
,
handler
=
self
.
load_config_text
(
"""
\
...
...
src/Zope2/utilities/skel/etc/base.conf.in
View file @
4d387766
...
...
@@ -24,11 +24,3 @@ instancehome $INSTANCE
</filestorage>
mount-point /
</zodb_db>
<zodb_db temporary>
<temporarystorage>
name temporary storage for sessioning
</temporarystorage>
mount-point /temp_folder
container-class Products.TemporaryFolder.TemporaryContainer
</zodb_db>
src/Zope2/utilities/skel/etc/example.conf.in
View file @
4d387766
...
...
@@ -590,15 +590,6 @@ instancehome $INSTANCE
mount-point /
</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
#
# ZEO client storage:
...
...
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