[Mpuls-commits] r4447 - waska/trunk/waskaweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Dec 28 15:54:30 CET 2010


Author: torsten
Date: 2010-12-28 15:54:30 +0100 (Tue, 28 Dec 2010)
New Revision: 4447

Modified:
   waska/trunk/waskaweb/lib/search.py
Log:
* waskaweb/lib/search.py: Moved WASKA speciific search into AppMixin class.


Modified: waska/trunk/waskaweb/lib/search.py
===================================================================
--- waska/trunk/waskaweb/lib/search.py	2010-12-28 14:51:19 UTC (rev 4446)
+++ waska/trunk/waskaweb/lib/search.py	2010-12-28 14:54:30 UTC (rev 4447)
@@ -33,13 +33,14 @@
 from formencode.validators import Int
 
 from mpulsweb.lib.search import CaseSearch as CaseBaseSearch
+from mpulsweb.lib.search import EvaluationSearch as EvaluationBaseSearch
+from mpulsweb.lib.search import AppMixin as AppBaseMixin
 
 
 log = logging.getLogger(__name__)
 
+class AppMixin(AppBaseMixin):
 
-class CaseSearch(CaseBaseSearch):
-
     VALID_OPTIONS = (CaseBaseSearch.VALID_OPTIONS
                      + ("gender", "type_ending"))
     MULTI_OPTIONS = (CaseBaseSearch.MULTI_OPTIONS
@@ -89,4 +90,13 @@
             self.get_ending_clause(options),
             ]
 
+class CaseSearch(CaseBaseSearch, AppMixin):
+
+    pass
+
+class EvaluationSearch(EvaluationBaseSearch, AppMixin):
+
+    pass
+
+
 # vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:



More information about the Mpuls-commits mailing list