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
ca78f91a
Commit
ca78f91a
authored
Mar 07, 2011
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- removed ancient migration script
parent
9fcfd7c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
49 deletions
+0
-49
src/Products/TemporaryFolder/patchfs.py
src/Products/TemporaryFolder/patchfs.py
+0
-49
No files found.
src/Products/TemporaryFolder/patchfs.py
deleted
100644 → 0
View file @
9fcfd7c3
# Utility program to patch Data.fs.in to include a temporary folder, browser
# id manager, and session data manager
############################################################################
#
# Copyright (c) 2002 Zope Foundation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
#
############################################################################
import
os
import
sys
import
Globals
# for data
from
ZODB
import
DB
from
ZODB
import
FileStorage
import
transaction
from
Products.Sessions.BrowserIdManager
import
BrowserIdManager
from
Products.Sessions.SessionDataManager
import
SessionDataManager
from
Products.TemporaryFolder.TemporaryFolder
import
MountedTemporaryFolder
fs
=
FileStorage
.
FileStorage
(
os
.
path
.
join
(
Globals
.
data_dir
,
'Data.fs.in'
))
db
=
DB
(
fs
)
conn
=
db
.
open
()
root
=
conn
.
root
()
app
=
root
[
'Application'
]
print
"Patching Data.fs.in"
tf
=
MountedTemporaryFolder
(
'temp_folder'
,
'Temporary Folder'
)
app
.
_setObject
(
'temp_folder'
,
tf
)
bid
=
BrowserIdManager
(
'browser_id_manager'
,
'Browser Id Manager'
)
app
.
_setObject
(
'browser_id_manager'
,
bid
)
sdm
=
r
.
SessionDataManager
(
'session_data_manager'
,
title
=
'Session Data Manager'
,
path
=
'/temp_folder/transient_container'
,
automatic
=
0
)
app
.
_setObject
(
'session_data_manager'
,
sdm
)
app
.
_p_changed
=
1
transaction
.
commit
()
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