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
e52e68f4
Commit
e52e68f4
authored
Feb 23, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added code to remove module from cache on reload.
parent
23a86415
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
lib/python/Shared/DC/ZRDB/DA.py
lib/python/Shared/DC/ZRDB/DA.py
+8
-3
No files found.
lib/python/Shared/DC/ZRDB/DA.py
View file @
e52e68f4
...
...
@@ -11,8 +11,8 @@
__doc__
=
'''Generic Database adapter
$Id: DA.py,v 1.3
5 1998/02/20 22:25:35
jim Exp $'''
__version__
=
'$Revision: 1.3
5
$'
[
11
:
-
2
]
$Id: DA.py,v 1.3
6 1998/02/23 14:41:26
jim Exp $'''
__version__
=
'$Revision: 1.3
6
$'
[
11
:
-
2
]
import
OFS.SimpleItem
,
Aqueduct
.
Aqueduct
,
Aqueduct
.
RDB
import
DocumentTemplate
,
marshal
,
md5
,
base64
,
DateTime
,
Acquisition
,
os
...
...
@@ -109,6 +109,7 @@ class DA(
self
.
max_cache_
,
self
.
cache_time_
=
max_cache
,
cache_time
self
.
_v_cache
=
{},
IOBTree
.
Bucket
()
self
.
class_name_
,
self
.
class_file_
=
class_name
,
class_file
if
modules
.
has_key
(
class_file
):
del
modules
[
class_file
]
getBrain
(
self
)
if
REQUEST
:
return
self
.
manage_editedDialog
(
REQUEST
)
...
...
@@ -304,8 +305,9 @@ class Traverse(ExtensionClass.Base):
braindir
=
SOFTWARE_HOME
+
'/Extensions'
modules
=
{}
def
getBrain
(
self
,
modules
=
{},
):
'Check/load a class'
...
...
@@ -341,6 +343,9 @@ def getBrain(self,
##############################################################################
#
# $Log: DA.py,v $
# Revision 1.36 1998/02/23 14:41:26 jim
# Added code to remove module from cache on reload.
#
# Revision 1.35 1998/02/20 22:25:35 jim
# Fixed up traversal machinery to work correctly with acquisition,
# especially method acquisition.
...
...
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