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
f8504649
Commit
f8504649
authored
Mar 17, 1998
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed __call__ to detect whether it is being called via the
web, or via dtml, and bind itself accordingly.
parent
ca51120c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
lib/python/Shared/DC/ZRDB/DA.py
lib/python/Shared/DC/ZRDB/DA.py
+11
-4
No files found.
lib/python/Shared/DC/ZRDB/DA.py
View file @
f8504649
...
...
@@ -11,8 +11,8 @@
__doc__
=
'''Generic Database adapter
$Id: DA.py,v 1.3
8 1998/03/17 19:29:05 jim
Exp $'''
__version__
=
'$Revision: 1.3
8
$'
[
11
:
-
2
]
$Id: DA.py,v 1.3
9 1998/03/17 21:16:08 brian
Exp $'''
__version__
=
'$Revision: 1.3
9
$'
[
11
:
-
2
]
import
OFS.SimpleItem
,
Aqueduct
.
Aqueduct
,
Aqueduct
.
RDB
import
DocumentTemplate
,
marshal
,
md5
,
base64
,
DateTime
,
Acquisition
,
os
...
...
@@ -202,8 +202,11 @@ class DA(
except
:
raise
'Database Error'
,
(
'%s is not connected to a database'
%
self
.
id
)
if
hasattr
(
REQUEST
,
'PARENTS'
):
p
=
REQUEST
[
'PARENTS'
][
1
]
elif
hasattr
(
self
,
'aq_parent'
):
p
=
self
.
aq_parent
if
hasattr
(
REQUEST
,
'PARENTS'
):
parents
=
REQUEST
[
'PARENTS'
]
p
=
parents
[(
parents
[
0
]
is
self
)]
elif
hasattr
(
self
,
'aq_parent'
):
p
=
self
.
aq_parent
else
:
p
=
None
argdata
=
self
.
_argdata
(
REQUEST
)
...
...
@@ -369,6 +372,10 @@ def getBrain(self,
##############################################################################
#
# $Log: DA.py,v $
# Revision 1.39 1998/03/17 21:16:08 brian
# Changed __call__ to detect whether it is being called via the
# web, or via dtml, and bind itself accordingly.
#
# Revision 1.38 1998/03/17 19:29:05 jim
# Added support for sqlvar, sqltest, and sqlgroup tags.
#
...
...
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