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
4c2b3999
Commit
4c2b3999
authored
Sep 25, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
got rid of constructor
parent
2d1774d9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
lib/python/Shared/DC/ZRDB/DA.py
lib/python/Shared/DC/ZRDB/DA.py
+10
-11
No files found.
lib/python/Shared/DC/ZRDB/DA.py
View file @
4c2b3999
...
@@ -11,14 +11,13 @@
...
@@ -11,14 +11,13 @@
__doc__
=
'''Generic Database adapter
__doc__
=
'''Generic Database adapter
$Id: DA.py,v 1.1
0 1997/09/25 18:47:53
jim Exp $'''
$Id: DA.py,v 1.1
1 1997/09/25 21:11:52
jim Exp $'''
__version__
=
'$Revision: 1.1
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
1
$'
[
11
:
-
2
]
import
string
,
OFS
.
Folder
,
Aqueduct
.
Aqueduct
,
Aqueduct
.
RDB
import
string
,
OFS
.
Folder
,
Aqueduct
.
Aqueduct
,
Aqueduct
.
RDB
import
DocumentTemplate
,
marshal
,
md5
,
zlib
,
base64
,
DateTime
,
Acquisition
import
DocumentTemplate
,
marshal
,
md5
,
zlib
,
base64
,
DateTime
,
Acquisition
from
Aqueduct.Aqueduct
import
quotedHTML
,
decodestring
,
parse
,
Rotor
from
Aqueduct.Aqueduct
import
quotedHTML
,
decodestring
,
parse
,
Rotor
from
Aqueduct.Aqueduct
import
custom_default_report
,
default_input_form
from
Aqueduct.Aqueduct
import
custom_default_report
,
default_input_form
from
Aqueduct.Aqueduct
import
default_report_src
from
Globals
import
Persistent
,
HTMLFile
,
MessageDialog
from
Globals
import
Persistent
,
HTMLFile
,
MessageDialog
from
cStringIO
import
StringIO
from
cStringIO
import
StringIO
log_file
=
None
log_file
=
None
...
@@ -88,12 +87,14 @@ class Folder(OFS.Folder.Folder):
...
@@ -88,12 +87,14 @@ class Folder(OFS.Folder.Folder):
try
:
self
.
database_connect
()
try
:
self
.
database_connect
()
except
:
pass
except
:
pass
def
manage_addDA
(
self
,
id
,
key
,
arguments
,
template
,
REQUEST
):
def
manage_addDA
(
self
,
id
,
title
,
key
,
arguments
,
template
,
REQUEST
=
None
):
'Add a query'
'Add a query'
q
=
Query
(
id
,
key
,
arguments
,
template
)
q
=
Query
()
q
.
id
=
id
q
.
manage_edit
(
key
,
title
,
arguments
,
template
)
self
.
_setObject
(
id
,
q
)
self
.
_setObject
(
id
,
q
)
return
self
.
manage_main
(
self
,
REQUEST
)
if
REQUEST
:
return
self
.
manage_main
(
self
,
REQUEST
)
test_url___roles__
=
None
test_url___roles__
=
None
def
test_url_
(
self
):
def
test_url_
(
self
):
...
@@ -111,11 +112,6 @@ class Query(Aqueduct.Aqueduct.BaseQuery,Persistent,Acquisition.Implicit):
...
@@ -111,11 +112,6 @@ class Query(Aqueduct.Aqueduct.BaseQuery,Persistent,Acquisition.Implicit):
manage
=
HTMLFile
(
'AqueductDA/edit'
)
manage
=
HTMLFile
(
'AqueductDA/edit'
)
def
__init__
(
self
,
id
=
''
,
key
=
''
,
arguments
=
''
,
template
=
''
,
title
=
''
):
if
not
id
:
return
self
.
id
=
id
self
.
manage_edit
(
key
,
title
,
arguments
,
template
)
def
quoted_src
(
self
):
return
quotedHTML
(
self
.
src
)
def
quoted_src
(
self
):
return
quotedHTML
(
self
.
src
)
def
manage_edit
(
self
,
key
,
title
,
arguments
,
template
,
REQUEST
=
None
):
def
manage_edit
(
self
,
key
,
title
,
arguments
,
template
,
REQUEST
=
None
):
...
@@ -214,6 +210,9 @@ class Query(Aqueduct.Aqueduct.BaseQuery,Persistent,Acquisition.Implicit):
...
@@ -214,6 +210,9 @@ class Query(Aqueduct.Aqueduct.BaseQuery,Persistent,Acquisition.Implicit):
##############################################################################
##############################################################################
#
#
# $Log: DA.py,v $
# $Log: DA.py,v $
# Revision 1.11 1997/09/25 21:11:52 jim
# got rid of constructor
#
# Revision 1.10 1997/09/25 18:47:53 jim
# Revision 1.10 1997/09/25 18:47:53 jim
# made index_html public
# made index_html public
#
#
...
...
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