[Zope-DB] Relational Databases in Zope 2 and Zope 3

Chris Withers chris at simplistix.co.uk
Mon Jul 12 09:09:10 EDT 2004


Charlie Clark wrote:
> 
>     def positionalQuery(self, *args):
>         """Needed to work around the __call__ method keyword bindings
> 	"""
> 	return apply(self, (None, None, 0, 0)+args, {})
> 
> 	"""Keyword to parameter mapping"""
> 
> 	keys = self._arg.keys()
>         if REQUEST: kw=REQUEST
> 	if args:
> 	    for i in xrange(len(keys)):
> 	        kw[keys[i]] = args[i]
>         else:
>             args = list(args)
>             for i in xrange(len(keys)):
>                 key = keys[i]
>                 value = self._arg[key]
>                 converter = type_converters[value['type']]
>                 args.append(converter(kw[key]))       
>             args = tuple(args)
>         if kw: REQUEST=kw
> 
> Unfortunately this breaks current ZSQL methods completely and cannot be 
> distributed in this form.

How does this breakage manifest itself?

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk



More information about the Zope-DB mailing list