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
6747fa4f
Commit
6747fa4f
authored
Apr 15, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed problem in handling optional tests.
parent
203d8804
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
lib/python/Shared/DC/ZRDB/sqltest.py
lib/python/Shared/DC/ZRDB/sqltest.py
+11
-3
No files found.
lib/python/Shared/DC/ZRDB/sqltest.py
View file @
6747fa4f
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
'and' or 'or' tag, otherwise, no text is inserted.
'and' or 'or' tag, otherwise, no text is inserted.
'''
'''
__rcs_id__
=
'$Id: sqltest.py,v 1.
2 1998/03/18 13:44:51
jim Exp $'
__rcs_id__
=
'$Id: sqltest.py,v 1.
3 1998/04/15 14:56:13
jim Exp $'
############################################################################
############################################################################
# Copyright
# Copyright
...
@@ -56,7 +56,7 @@ __rcs_id__='$Id: sqltest.py,v 1.2 1998/03/18 13:44:51 jim Exp $'
...
@@ -56,7 +56,7 @@ __rcs_id__='$Id: sqltest.py,v 1.2 1998/03/18 13:44:51 jim Exp $'
# rights reserved.
# rights reserved.
#
#
############################################################################
############################################################################
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
from
DocumentTemplate.DT_Util
import
*
from
DocumentTemplate.DT_Util
import
*
...
@@ -85,7 +85,12 @@ class SQLTest:
...
@@ -85,7 +85,12 @@ class SQLTest:
def
render
(
self
,
md
):
def
render
(
self
,
md
):
name
=
self
.
__name__
name
=
self
.
__name__
t
=
self
.
type
t
=
self
.
type
v
=
md
[
name
]
try
:
v
=
md
[
name
]
except
KeyError
,
key
:
if
key
==
name
and
self
.
optional
:
return
''
raise
KeyError
,
key
,
sys
.
exc_traceback
if
type
(
v
)
in
(
ListType
,
TupleType
):
if
type
(
v
)
in
(
ListType
,
TupleType
):
if
len
(
v
)
>
1
and
not
self
.
multiple
:
if
len
(
v
)
>
1
and
not
self
.
multiple
:
raise
'Multiple Values'
,
(
raise
'Multiple Values'
,
(
...
@@ -134,6 +139,9 @@ valid_type={'int':1, 'float':1, 'string':1, 'nb': 1}.has_key
...
@@ -134,6 +139,9 @@ valid_type={'int':1, 'float':1, 'string':1, 'nb': 1}.has_key
############################################################################
############################################################################
# $Log: sqltest.py,v $
# $Log: sqltest.py,v $
# Revision 1.3 1998/04/15 14:56:13 jim
# Fixed problem in handling optional tests.
#
# Revision 1.2 1998/03/18 13:44:51 jim
# Revision 1.2 1998/03/18 13:44:51 jim
# Fixed bug in rendering SQL in tests.
# Fixed bug in rendering SQL in tests.
#
#
...
...
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