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
23a86415
Commit
23a86415
authored
Feb 20, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed up traversal machinery to work correctly with acquisition,
especially method acquisition.
parent
547a9eda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
lib/python/Shared/DC/ZRDB/DA.py
lib/python/Shared/DC/ZRDB/DA.py
+11
-6
No files found.
lib/python/Shared/DC/ZRDB/DA.py
View file @
23a86415
...
...
@@ -11,8 +11,8 @@
__doc__
=
'''Generic Database adapter
$Id: DA.py,v 1.3
4 1998/02/18 23:46:53
jim Exp $'''
__version__
=
'$Revision: 1.3
4
$'
[
11
:
-
2
]
$Id: DA.py,v 1.3
5 1998/02/20 22:25:35
jim Exp $'''
__version__
=
'$Revision: 1.3
5
$'
[
11
:
-
2
]
import
OFS.SimpleItem
,
Aqueduct
.
Aqueduct
,
Aqueduct
.
RDB
import
DocumentTemplate
,
marshal
,
md5
,
base64
,
DateTime
,
Acquisition
,
os
...
...
@@ -28,6 +28,7 @@ import IOBTree
from
time
import
time
from
zlib
import
compress
,
decompress
md5new
=
md5
.
new
import
ExtensionClass
class
DA
(
Aqueduct
.
Aqueduct
.
BaseQuery
,
Acquisition
.
Implicit
,
...
...
@@ -257,7 +258,7 @@ class DA(
def
connected
(
self
):
return
getattr
(
getattr
(
self
,
self
.
connection_id
),
'connected'
)()
class
Traverse
:
class
Traverse
(
ExtensionClass
.
Base
)
:
"""Helper class for 'traversing' searches during URL traversal
"""
_r
=
None
...
...
@@ -270,7 +271,7 @@ class Traverse:
def
__bobo_traverse__
(
self
,
REQUEST
,
key
):
name
=
self
.
_name
da
=
self
.
_
da
da
=
self
.
_
_dict__
[
'_da'
]
args
=
self
.
_args
if
name
:
args
[
name
]
=
key
...
...
@@ -296,9 +297,9 @@ class Traverse:
return
r
[
key
]
def
__getattr__
(
self
,
name
):
r
=
self
.
_
r
r
=
self
.
_
_dict__
[
'_r'
]
if
hasattr
(
r
,
name
):
return
getattr
(
r
,
name
)
return
getattr
(
self
.
_
da
,
name
)
return
getattr
(
self
.
_
_dict__
[
'_da'
]
,
name
)
braindir
=
SOFTWARE_HOME
+
'/Extensions'
...
...
@@ -340,6 +341,10 @@ def getBrain(self,
##############################################################################
#
# $Log: DA.py,v $
# Revision 1.35 1998/02/20 22:25:35 jim
# Fixed up traversal machinery to work correctly with acquisition,
# especially method acquisition.
#
# Revision 1.34 1998/02/18 23:46:53 jim
# Added reparenting magic for NE interface.
#
...
...
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