X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=sfa%2Futil%2Ffilter.py;h=ada44ba5d4f5263a74a73ae214673f32c0895c44;hb=bfcea75fd4f7d91b186f4f0e479db0e6f0a231ae;hp=bc22f1b5d54bd42d3b130253046e131ff4312364;hpb=3d7237fa0b5f2b4a60cb97c7fb3b6aecfd94558a;p=sfa.git diff --git a/sfa/util/filter.py b/sfa/util/filter.py index bc22f1b5..ada44ba5 100644 --- a/sfa/util/filter.py +++ b/sfa/util/filter.py @@ -1,5 +1,3 @@ -# $Id$ -# $URL$ from types import StringTypes try: set @@ -8,7 +6,8 @@ except NameError: set = Set import time -import pgdb +try: import pgdb +except: pass from sfa.util.faults import * from sfa.util.parameter import Parameter, Mixed, python_type @@ -214,5 +213,4 @@ class Filter(Parameter, dict): clip_part += " ORDER BY " + ",".join(sorts) if clips: clip_part += " " + " ".join(clips) -# print 'where_part=',where_part,'clip_part',clip_part return (where_part,clip_part)