Commit 372a0377 authored by Jim Fulton's avatar Jim Fulton

Fixed bugs in check for working in a session.

parent c1077eef
__doc__="""Application management component""" __doc__="""Application management component"""
__version__='$Revision: 1.13 $'[11:-2] __version__='$Revision: 1.14 $'[11:-2]
import sys,os,time,Globals import sys,os,time,Globals
...@@ -8,8 +8,9 @@ from Acquisition import Acquirer ...@@ -8,8 +8,9 @@ from Acquisition import Acquirer
from Management import Management from Management import Management
from Globals import HTMLFile from Globals import HTMLFile
from CacheManager import CacheManager from CacheManager import CacheManager
from Persistence import Persistent
class ApplicationManager(Acquirer,Management,CacheManager): class ApplicationManager(Persistent, Acquirer,Management,CacheManager):
"""Application management component.""" """Application management component."""
__roles__=['manage',] __roles__=['manage',]
...@@ -64,7 +65,7 @@ class ApplicationManager(Acquirer,Management,CacheManager): ...@@ -64,7 +65,7 @@ class ApplicationManager(Acquirer,Management,CacheManager):
def manage_pack(self, days=0, REQUEST): def manage_pack(self, days=0, REQUEST):
"""Pack the database""" """Pack the database"""
if self._p_jar.db is not Globals.Bobobase: if self._p_jar.db is not Globals.Bobobase._jar.db:
raise 'Session Error', ( raise 'Session Error', (
'''You may not pack the application database while '''You may not pack the application database while
working in a <em>session</em>''') working in a <em>session</em>''')
......
...@@ -58,8 +58,8 @@ ...@@ -58,8 +58,8 @@
__doc__='''Cache management support __doc__='''Cache management support
$Id: CacheManager.py,v 1.2 1997/11/07 17:06:02 jim Exp $''' $Id: CacheManager.py,v 1.3 1997/11/19 20:11:48 jim Exp $'''
__version__='$Revision: 1.2 $'[11:-2] __version__='$Revision: 1.3 $'[11:-2]
import Globals import Globals
import time import time
...@@ -79,7 +79,7 @@ class CacheManager: ...@@ -79,7 +79,7 @@ class CacheManager:
def cache_age(self): return self._cache_age def cache_age(self): return self._cache_age
def manage_cache_age(self,value,REQUEST): def manage_cache_age(self,value,REQUEST):
"set cache age" "set cache age"
if self._p_jar.db is not Globals.Bobobase: if self._p_jar.db is not Globals.Bobobase._jar.db:
raise 'Session Error', ( raise 'Session Error', (
'''You may not change the database cache age '''You may not change the database cache age
while working in a <em>session</em>''') while working in a <em>session</em>''')
...@@ -89,7 +89,7 @@ class CacheManager: ...@@ -89,7 +89,7 @@ class CacheManager:
def cache_size(self): return self._cache_size def cache_size(self): return self._cache_size
def manage_cache_size(self,value,REQUEST): def manage_cache_size(self,value,REQUEST):
"set cache size" "set cache size"
if self._p_jar.db is not Globals.Bobobase: if self._p_jar.db is not Globals.Bobobase._jar.db:
raise 'Session Error', ( raise 'Session Error', (
'''You may not change the database cache size '''You may not change the database cache size
while working in a <em>session</em>''') while working in a <em>session</em>''')
...@@ -136,6 +136,9 @@ class CacheManager: ...@@ -136,6 +136,9 @@ class CacheManager:
############################################################################## ##############################################################################
# #
# $Log: CacheManager.py,v $ # $Log: CacheManager.py,v $
# Revision 1.3 1997/11/19 20:11:48 jim
# Fixed bugs in check for working in a session.
#
# Revision 1.2 1997/11/07 17:06:02 jim # Revision 1.2 1997/11/07 17:06:02 jim
# added session checks. # added session checks.
# #
......
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