[Mpuls-commits] r1643 - in wasko/branches/2.0: . waskaweb/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Feb 16 18:15:22 CET 2010


Author: bh
Date: 2010-02-16 18:15:18 +0100 (Tue, 16 Feb 2010)
New Revision: 1643

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/waskaweb/model/case.py
Log:
* waskaweb/model/case.py (CaseOverview.search): Access the case
field descriptions through g.case_factory instead of the Case
class.


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-02-16 17:12:04 UTC (rev 1642)
+++ wasko/branches/2.0/ChangeLog	2010-02-16 17:15:18 UTC (rev 1643)
@@ -1,5 +1,11 @@
 2010-02-16  Bernhard Herzog  <bh at intevation.de>
 
+	* waskaweb/model/case.py (CaseOverview.search): Access the case
+	field descriptions through g.case_factory instead of the Case
+	class.
+
+2010-02-16  Bernhard Herzog  <bh at intevation.de>
+
 	* waskaweb/model/case.py (CaseFactory.get_search_retrieve_fields)
 	(CaseFactory.get_search_match_fields)
 	(CaseFactory.get_session_fields): New.  Frontend for the same

Modified: wasko/branches/2.0/waskaweb/model/case.py
===================================================================
--- wasko/branches/2.0/waskaweb/model/case.py	2010-02-16 17:12:04 UTC (rev 1642)
+++ wasko/branches/2.0/waskaweb/model/case.py	2010-02-16 17:15:18 UTC (rev 1643)
@@ -335,8 +335,8 @@
 
     def search(self, search_str=None):
         self.ds_list = []
-        search = CaseSearch(Case.get_search_retrieve_fields(),
-                            Case.get_search_match_fields())
+        search = CaseSearch(g.case_factory.get_search_retrieve_fields(),
+                            g.case_factory.get_search_match_fields())
         result = search.perform(search_str)
         factory = g.case_factory
         for row in result:



More information about the Mpuls-commits mailing list