[Mpuls-commits] r2428 - wasko/branches/2.0/mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Apr 20 11:26:18 CEST 2010


Author: torsten
Date: 2010-04-20 11:26:17 +0200 (Tue, 20 Apr 2010)
New Revision: 2428

Modified:
   wasko/branches/2.0/mpulsweb/lib/search.py
Log:
* mpulsweb/lib/search.py: Added sdate and edate to allowed search
params.


Modified: wasko/branches/2.0/mpulsweb/lib/search.py
===================================================================
--- wasko/branches/2.0/mpulsweb/lib/search.py	2010-04-20 09:25:05 UTC (rev 2427)
+++ wasko/branches/2.0/mpulsweb/lib/search.py	2010-04-20 09:26:17 UTC (rev 2428)
@@ -12,7 +12,8 @@
                  'sort_field', 'sort_order', 'interval_start_date',
                  'interval_end_date', 'interval_start_field',
                  'interval_end_field', 'gender', 'phase', 'branch', 'fkz',
-                 'inconsistency', 'only_cases_after', 'bad', 'field']
+                 'inconsistency', 'only_cases_after', 'bad', 'field', 
+                 'sdate', 'edate']
 SEARCH_QUERY = """
     SELECT %(fields)s
     FROM master_tbl_view m
@@ -122,9 +123,7 @@
                                              bad_types, phaseslist, fieldsdic)
         sql_fields['order'] = self.get_order(options)
 
-        log.debug(sql_fields)
         SQL = SEARCH_QUERY % sql_fields
-        log.debug(SQL)
         return SQL
 
 # vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:



More information about the Mpuls-commits mailing list