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
a502bd46
Commit
a502bd46
authored
Jan 16, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed so failure to connect to the database does not prevent
activation.
parent
c8972f4c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
lib/python/Shared/DC/ZRDB/Connection.py
lib/python/Shared/DC/ZRDB/Connection.py
+9
-3
No files found.
lib/python/Shared/DC/ZRDB/Connection.py
View file @
a502bd46
...
...
@@ -10,8 +10,8 @@
__doc__
=
'''Generic Database Connection Support
$Id: Connection.py,v 1.
4 1998/01/07 16:27:15
jim Exp $'''
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
$Id: Connection.py,v 1.
5 1998/01/16 19:12:54
jim Exp $'''
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
import
Globals
,
OFS
.
SimpleItem
,
AccessControl
.
Role
,
Persistence
,
Acquisition
from
DateTime
import
DateTime
...
...
@@ -55,7 +55,9 @@ class Connection(
def
__setstate__
(
self
,
state
):
Persistence
.
Persistent
.
__setstate__
(
self
,
state
)
if
self
.
connection_string
:
self
.
connect
(
self
.
connection_string
)
if
self
.
connection_string
:
try
:
self
.
connect
(
self
.
connection_string
)
except
:
pass
def
title_and_id
(
self
):
s
=
Connection
.
inheritedAttribute
(
'title_and_id'
)(
self
)
...
...
@@ -132,6 +134,10 @@ class Connection(
##############################################################################
#
# $Log: Connection.py,v $
# Revision 1.5 1998/01/16 19:12:54 jim
# Changed so failure to connect to the database does not prevent
# activation.
#
# Revision 1.4 1998/01/07 16:27:15 jim
# Brought up to date with latest Principia models.
#
...
...
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