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
cd7d2a45
Commit
cd7d2a45
authored
Aug 13, 2001
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed strange behaviour where ZSQL methods with omitted parameters
never worked as supposed to work.
parent
182cbbe7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
lib/python/Shared/DC/ZRDB/Aqueduct.py
lib/python/Shared/DC/ZRDB/Aqueduct.py
+16
-6
No files found.
lib/python/Shared/DC/ZRDB/Aqueduct.py
View file @
cd7d2a45
...
...
@@ -84,8 +84,8 @@
##############################################################################
__doc__
=
'''Shared classes and functions
__version__='$Revision: 1.51 $'[11:-2]
$Id: Aqueduct.py,v 1.51 2001/08/10 15:39:26 andreasjung Exp $'''
$Id: Aqueduct.py,v 1.52 2001/08/13 14:57:55 andreasjung Exp $'''
__version__
=
'$Revision: 1.52 $'
[
11
:
-
2
]
import
Globals
,
os
from
Globals
import
Persistent
...
...
@@ -146,10 +146,20 @@ class BaseQuery(Persistent, SimpleItem.Item,
if
not
arg
[
'optional'
]:
missing
.
append
(
name
)
except
:
missing
.
append
(
name
)
if
missing
:
raise
self
.
MissingArgumentError
,
\
"The following arguments were omitted "
\
" from the ZSQL method call: %s"
%
str
(
missing
)
# Note: the code above tries to check if an argument of the
# ZSQL method above has the "optional" flag set (in case the
# argument is omitted from the ZSQL function call). But there
# is neither corresponding code inside the parse() function to
# check for the "optional" parameter nor any documentation.
# So we omit the check for the optional parameter. There will
# be probably no code break but there will be hopefully more code
# to work as supposed to work.
# if missing:
# raise self.MissingArgumentError, \
# "The following arguments were omitted " \
# " from the ZSQL method call: %s" % str(missing)
#
return
r
...
...
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