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
ad3bca87
Commit
ad3bca87
authored
Jan 08, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed to show errors when run in testing mode.
parent
60a38ec3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
lib/python/Shared/DC/ZRDB/DA.py
lib/python/Shared/DC/ZRDB/DA.py
+16
-5
No files found.
lib/python/Shared/DC/ZRDB/DA.py
View file @
ad3bca87
...
@@ -11,8 +11,8 @@
...
@@ -11,8 +11,8 @@
__doc__
=
'''Generic Database adapter
__doc__
=
'''Generic Database adapter
$Id: DA.py,v 1.1
8 1998/01/07 16:27:16
jim Exp $'''
$Id: DA.py,v 1.1
9 1998/01/08 21:28:21
jim Exp $'''
__version__
=
'$Revision: 1.1
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
9
$'
[
11
:
-
2
]
import
OFS.SimpleItem
,
Aqueduct
.
Aqueduct
,
Aqueduct
.
RDB
import
OFS.SimpleItem
,
Aqueduct
.
Aqueduct
,
Aqueduct
.
RDB
import
DocumentTemplate
,
marshal
,
md5
,
base64
,
DateTime
,
Acquisition
,
os
import
DocumentTemplate
,
marshal
,
md5
,
base64
,
DateTime
,
Acquisition
,
os
...
@@ -49,7 +49,7 @@ class DA(
...
@@ -49,7 +49,7 @@ class DA(
manage_options
=
(
manage_options
=
(
{
'label'
:
'Edit'
,
'action'
:
'manage_main'
},
{
'label'
:
'Edit'
,
'action'
:
'manage_main'
},
{
'label'
:
'Test'
,
'action'
:
'
index_html
'
},
{
'label'
:
'Test'
,
'action'
:
'
manage_testForm
'
},
{
'label'
:
'Advanced'
,
'action'
:
'manage_advancedForm'
},
{
'label'
:
'Advanced'
,
'action'
:
'manage_advancedForm'
},
{
'label'
:
'Access Control'
,
'action'
:
'manage_access'
},
{
'label'
:
'Access Control'
,
'action'
:
'manage_access'
},
)
)
...
@@ -118,11 +118,19 @@ class DA(
...
@@ -118,11 +118,19 @@ class DA(
def
manage_test
(
self
,
REQUEST
):
def
manage_test
(
self
,
REQUEST
):
'Perform an actual query'
'Perform an actual query'
try
:
result
=
self
(
REQUEST
)
result
=
self
(
REQUEST
)
result
=
custom_default_report
(
self
.
id
,
result
)
except
:
result
=
(
'<hr><strong>Error, <em>%s</em>:</strong> %s'
%
(
sys
.
exc_type
,
sys
.
exc_value
))
report
=
HTML
(
report
=
HTML
(
'<html><BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
\
n
'
'<html><BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
\
n
'
'<!--#var manage_tabs-->
\
n
%s
\
n
</body></html>'
'<!--#var manage_tabs-->
\
n
%s
\
n
</body></html>'
%
custom_default_report
(
self
.
id
,
result
))
%
result
)
return
apply
(
report
,(
self
,
REQUEST
),{
self
.
id
:
result
})
return
apply
(
report
,(
self
,
REQUEST
),{
self
.
id
:
result
})
def
index_html
(
self
,
PARENT_URL
):
def
index_html
(
self
,
PARENT_URL
):
...
@@ -325,6 +333,9 @@ def getBrain(self,
...
@@ -325,6 +333,9 @@ def getBrain(self,
##############################################################################
##############################################################################
#
#
# $Log: DA.py,v $
# $Log: DA.py,v $
# Revision 1.19 1998/01/08 21:28:21 jim
# Fixed to show errors when run in testing mode.
#
# Revision 1.18 1998/01/07 16:27:16 jim
# Revision 1.18 1998/01/07 16:27:16 jim
# Brought up to date with latest Principia models.
# 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