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
542f7951
Commit
542f7951
authored
Jan 16, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Now pass self to RDB.File so record constructors can acquire.
parent
20ffea9f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
lib/python/Shared/DC/ZRDB/DA.py
lib/python/Shared/DC/ZRDB/DA.py
+6
-3
No files found.
lib/python/Shared/DC/ZRDB/DA.py
View file @
542f7951
...
@@ -11,8 +11,8 @@
...
@@ -11,8 +11,8 @@
__doc__
=
'''Generic Database adapter
__doc__
=
'''Generic Database adapter
$Id: DA.py,v 1.2
2 1998/01/12 20:02:23
jim Exp $'''
$Id: DA.py,v 1.2
3 1998/01/16 21:33:48
jim Exp $'''
__version__
=
'$Revision: 1.2
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
3
$'
[
11
:
-
2
]
import
OFS.SimpleItem
,
Aqueduct
.
Aqueduct
,
Aqueduct
.
RDB
import
OFS.SimpleItem
,
Aqueduct
.
Aqueduct
,
Aqueduct
.
RDB
import
DocumentTemplate
,
marshal
,
md5
,
base64
,
DateTime
,
Acquisition
,
os
import
DocumentTemplate
,
marshal
,
md5
,
base64
,
DateTime
,
Acquisition
,
os
...
@@ -196,7 +196,7 @@ class DA(
...
@@ -196,7 +196,7 @@ class DA(
if
hasattr
(
self
,
'_v_brain'
):
brain
=
self
.
_v_brain
if
hasattr
(
self
,
'_v_brain'
):
brain
=
self
.
_v_brain
else
:
brain
=
getBrain
(
self
)
else
:
brain
=
getBrain
(
self
)
result
=
Aqueduct
.
RDB
.
File
(
StringIO
(
result
),
brain
)
result
=
Aqueduct
.
RDB
.
File
(
StringIO
(
result
),
brain
,
self
)
columns
=
result
.
_searchable_result_columns
()
columns
=
result
.
_searchable_result_columns
()
if
columns
!=
self
.
_col
:
self
.
_col
=
columns
if
columns
!=
self
.
_col
:
self
.
_col
=
columns
return
result
return
result
...
@@ -339,6 +339,9 @@ def getBrain(self,
...
@@ -339,6 +339,9 @@ def getBrain(self,
##############################################################################
##############################################################################
#
#
# $Log: DA.py,v $
# $Log: DA.py,v $
# Revision 1.23 1998/01/16 21:33:48 jim
# Now pass self to RDB.File so record constructors can acquire.
#
# Revision 1.22 1998/01/12 20:02:23 jim
# Revision 1.22 1998/01/12 20:02:23 jim
# Added support for keyword arguments to methods.
# Added support for keyword arguments to methods.
#
#
...
...
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