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
696c9d39
Commit
696c9d39
authored
Nov 07, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added session checks.
parent
178e6a6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
lib/python/App/CacheManager.py
lib/python/App/CacheManager.py
+13
-2
No files found.
lib/python/App/CacheManager.py
View file @
696c9d39
...
...
@@ -58,8 +58,8 @@
__doc__
=
'''Cache management support
$Id: CacheManager.py,v 1.
1 1997/09/19 15:55:5
2 jim Exp $'''
__version__
=
'$Revision: 1.
1
$'
[
11
:
-
2
]
$Id: CacheManager.py,v 1.
2 1997/11/07 17:06:0
2 jim Exp $'''
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
import
Globals
import
time
...
...
@@ -79,12 +79,20 @@ class CacheManager:
def
cache_age
(
self
):
return
self
.
_cache_age
def
manage_cache_age
(
self
,
value
,
REQUEST
):
"set cache age"
if
self
.
_p_jar
.
db
is
not
Globals
.
Bobobase
:
raise
'Session Error'
,
(
'''You may not change the database cache age
while working in a <em>session</em>'''
)
self
.
_cache_age
=
Globals
.
Bobobase
.
_jar
.
cache
.
cache_age
=
value
return
self
.
manage_cacheForm
(
self
,
REQUEST
)
def
cache_size
(
self
):
return
self
.
_cache_size
def
manage_cache_size
(
self
,
value
,
REQUEST
):
"set cache size"
if
self
.
_p_jar
.
db
is
not
Globals
.
Bobobase
:
raise
'Session Error'
,
(
'''You may not change the database cache size
while working in a <em>session</em>'''
)
self
.
_cache_size
=
Globals
.
Bobobase
.
_jar
.
cache
.
cache_size
=
value
return
self
.
manage_cacheForm
(
self
,
REQUEST
)
...
...
@@ -128,6 +136,9 @@ class CacheManager:
##############################################################################
#
# $Log: CacheManager.py,v $
# Revision 1.2 1997/11/07 17:06:02 jim
# added session checks.
#
# Revision 1.1 1997/09/19 15:55:52 jim
# *** empty log message ***
#
...
...
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