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
daa85be1
Commit
daa85be1
authored
Nov 23, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rid of Persistence module reference
parent
81b7c072
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
+15
-9
lib/python/Shared/DC/ZRDB/Connection.py
lib/python/Shared/DC/ZRDB/Connection.py
+8
-5
lib/python/Shared/DC/ZRDB/DA.py
lib/python/Shared/DC/ZRDB/DA.py
+7
-4
No files found.
lib/python/Shared/DC/ZRDB/Connection.py
View file @
daa85be1
...
...
@@ -10,17 +10,17 @@
__doc__
=
'''Generic Database Connection Support
$Id: Connection.py,v 1.1
4 1998/05/11 15:00:24
jim Exp $'''
__version__
=
'$Revision: 1.1
4
$'
[
11
:
-
2
]
$Id: Connection.py,v 1.1
5 1998/11/23 16:12:08
jim Exp $'''
__version__
=
'$Revision: 1.1
5
$'
[
11
:
-
2
]
import
Globals
,
OFS
.
SimpleItem
,
AccessControl
.
Role
,
Persistence
,
Acquisition
,
sys
import
Globals
,
OFS
.
SimpleItem
,
AccessControl
.
Role
,
Acquisition
,
sys
from
DateTime
import
DateTime
from
App.Dialogs
import
MessageDialog
from
Globals
import
HTMLFile
from
string
import
find
,
join
,
split
class
Connection
(
Persistence
.
Persistent
,
Globals
.
Persistent
,
AccessControl
.
Role
.
RoleManager
,
OFS
.
SimpleItem
.
Item
,
Acquisition
.
Implicit
,
...
...
@@ -52,7 +52,7 @@ class Connection(
self
.
edit
(
title
,
connection_string
,
check
)
def
__setstate__
(
self
,
state
):
Persistence
.
Persistent
.
__setstate__
(
self
,
state
)
Globals
.
Persistent
.
__setstate__
(
self
,
state
)
if
self
.
connection_string
:
try
:
self
.
connect
(
self
.
connection_string
)
except
:
pass
...
...
@@ -142,6 +142,9 @@ class Connection(
##############################################################################
#
# $Log: Connection.py,v $
# Revision 1.15 1998/11/23 16:12:08 jim
# rid of Persistence module reference
#
# Revision 1.14 1998/05/11 15:00:24 jim
# Updated permissions.
#
...
...
lib/python/Shared/DC/ZRDB/DA.py
View file @
daa85be1
...
...
@@ -11,8 +11,8 @@
__doc__
=
'''Generic Database adapter
$Id: DA.py,v 1.5
1 1998/08/03 13:45:10
jim Exp $'''
__version__
=
'$Revision: 1.5
1
$'
[
11
:
-
2
]
$Id: DA.py,v 1.5
2 1998/11/23 16:12:08
jim Exp $'''
__version__
=
'$Revision: 1.5
2
$'
[
11
:
-
2
]
import
OFS.SimpleItem
,
Aqueduct
.
Aqueduct
,
Aqueduct
.
RDB
import
DocumentTemplate
,
marshal
,
md5
,
base64
,
DateTime
,
Acquisition
,
os
...
...
@@ -20,7 +20,7 @@ from Aqueduct.Aqueduct import decodestring, parse, Rotor
from
Aqueduct.Aqueduct
import
custom_default_report
,
default_input_form
from
Globals
import
HTMLFile
,
MessageDialog
from
cStringIO
import
StringIO
import
sys
,
Globals
,
OFS
.
SimpleItem
,
AccessControl
.
Role
,
Persistence
import
sys
,
Globals
,
OFS
.
SimpleItem
,
AccessControl
.
Role
from
string
import
atoi
,
find
,
join
,
split
import
IOBTree
,
DocumentTemplate
,
sqlvar
,
sqltest
,
sqlgroup
from
time
import
time
...
...
@@ -42,7 +42,7 @@ class SQL(DocumentTemplate.HTML):
class
DA
(
Aqueduct
.
Aqueduct
.
BaseQuery
,
Acquisition
.
Implicit
,
Persistence
.
Persistent
,
Globals
.
Persistent
,
AccessControl
.
Role
.
RoleManager
,
OFS
.
SimpleItem
.
Item
,
):
...
...
@@ -438,6 +438,9 @@ class Traverse(ExtensionClass.Base):
##############################################################################
#
# $Log: DA.py,v $
# Revision 1.52 1998/11/23 16:12:08 jim
# rid of Persistence module reference
#
# Revision 1.51 1998/08/03 13:45:10 jim
# Extensions management aspecs of brains have been moved to App/Extensions.
#
...
...
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