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
adf78e5e
Commit
adf78e5e
authored
Oct 06, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged fix for bug 1659 (__call__ return type inconsistent)
parent
c12e5349
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
lib/python/Shared/DC/ZRDB/Connection.py
lib/python/Shared/DC/ZRDB/Connection.py
+5
-3
No files found.
lib/python/Shared/DC/ZRDB/Connection.py
View file @
adf78e5e
...
...
@@ -84,8 +84,8 @@
##############################################################################
__doc__
=
'''Generic Database Connection Support
$Id: Connection.py,v 1.2
8 2000/08/31 21:07:17
brian Exp $'''
__version__
=
'$Revision: 1.2
8
$'
[
11
:
-
2
]
$Id: Connection.py,v 1.2
9 2000/10/06 15:36:19
brian Exp $'''
__version__
=
'$Revision: 1.2
9
$'
[
11
:
-
2
]
import
Globals
,
OFS
.
SimpleItem
,
AccessControl
.
Role
,
Acquisition
,
sys
from
DateTime
import
DateTime
...
...
@@ -226,7 +226,9 @@ class Connection(
try
:
return
self
.
_v_database_connection
except
AttributeError
:
s
=
self
.
connection_string
if
s
:
return
self
.
connect
(
s
)
if
s
:
self
.
connect
(
s
)
return
self
.
_v_database_connection
raise
'Database Not Connected'
,(
'''The database connection is not connected'''
)
...
...
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