# Thierry Parmentelat - INRIA
#
from types import StringTypes
-try:
- set
-except NameError:
- from sets import Set
- set = Set
-
import time
from PLC.Faults import *
from PLC.Parameter import Parameter, Mixed, python_type
+from PLC.Logger import logger
class Filter(Parameter, dict):
"""
clip_part += " ORDER BY " + ",".join(sorts)
if clips:
clip_part += " " + " ".join(clips)
- if Filter.debug: print 'Filter.sql: where_part=',where_part,'clip_part',clip_part
- return (where_part,clip_part)
+ if Filter.debug:
+ logger.debug('Filter.sql: where_part={} - clip_part={}'
+ .format(where_part, clip_part))
+ return where_part, clip_part