[Zope-Checkins] CVS: Zope/lib/python/Shared/DC/ZRDB - Aqueduct.py:184.108.40.206
Mon, 13 Aug 2001 10:53:51 -0400
Update of /cvs-repository/Zope/lib/python/Shared/DC/ZRDB
In directory cvs.zope.org:/tmp/cvs-serv32146
Fixed strange behaviour of _argdata() where ZSQL method call with
optional parameters never worked as supposed to work.
=== Zope/lib/python/Shared/DC/ZRDB/Aqueduct.py 220.127.116.11 => 18.104.22.168 ===
- 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)