Commit 820a5d41 authored by Jérome Perrin's avatar Jérome Perrin

Revert "ZSQLCatalog: fail loudly searching for dict iterators ( TODO: make this the default ? )"

This reverts commit cd3833b2.
parent 7bb5923a
Pipeline #33319 failed with stage
in 0 seconds
......@@ -33,7 +33,6 @@ from zLOG import LOG
from DateTime import DateTime
from Products.ZSQLCatalog.interfaces.operator import IOperator
from Products.ZSQLCatalog.Utils import sqlquote as escapeString
from AccessControl.ZopeGuards import SafeIter
from zope.interface.verify import verifyClass
from zope.interface import implementer
......@@ -52,9 +51,6 @@ def valueDefaultRenderer(value):
def valueNoneRenderer(value):
return 'NULL'
def valueUnsupportedRenderer(value):
raise TypeError("ZSQCatalog does not support %s (%s)" % (type(value), value))
value_renderer = {
int: str,
float: valueFloatRenderer,
......@@ -62,10 +58,6 @@ value_renderer = {
None.__class__: valueNoneRenderer,
bool: int,
str: escapeString,
SafeIter: valueUnsupportedRenderer,
type(six.iterkeys({})): valueUnsupportedRenderer,
type(six.iteritems({})): valueUnsupportedRenderer,
type(six.itervalues({})): valueUnsupportedRenderer,
}
if six.PY2:
value_renderer[long] = str
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment