[Mpuls-commits] r1648 - in wasko/branches/2.0: . mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Feb 17 16:09:55 CET 2010


Author: bh
Date: 2010-02-17 16:09:53 +0100 (Wed, 17 Feb 2010)
New Revision: 1648

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/mpulsweb/lib/config.py
Log:
* mpulsweb/lib/config.py (MpulsConfig.build_defaults): Add a
default field configuration


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-02-17 11:46:15 UTC (rev 1647)
+++ wasko/branches/2.0/ChangeLog	2010-02-17 15:09:53 UTC (rev 1648)
@@ -1,3 +1,8 @@
+2010-02-17  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/lib/config.py (MpulsConfig.build_defaults): Add a
+	default field configuration
+
 2010-02-16  Bernhard Herzog  <bh at intevation.de>
 
 	* waskaweb/lib/app_globals.py (Globals._init_case): Instantiate

Modified: wasko/branches/2.0/mpulsweb/lib/config.py
===================================================================
--- wasko/branches/2.0/mpulsweb/lib/config.py	2010-02-17 11:46:15 UTC (rev 1647)
+++ wasko/branches/2.0/mpulsweb/lib/config.py	2010-02-17 15:09:53 UTC (rev 1648)
@@ -95,6 +95,28 @@
         set('case-module', 'import', '1')
         set('case-module', 'reminders', '1')
 
+        # CASE FIELDS
+        set('case', 'fields', [
+            {"name":"name", "digest":True,
+             "search_retrieve":True, "search_match":True,
+             "preload":True, "session":True, "alias":"last_name"},
+            {"name":"vorname", "digest":True,
+             "search_retrieve":True, "search_match":True,
+             "preload":True, "session":True, "alias":"first_name"},
+            {"name":"fn", "digest":True,
+             "search_retrieve":True, "search_match":True,
+             "preload":True, "session":True, "alias":"knr"},
+            {"name":"erstgespraech",
+             "preload":True, "session":True,
+             "alias":"first_meeting", "alias_force_string":False},
+            {"name":"datum_cm_ende",
+             "preload":True, "session":True,
+             "alias":"cm_end", "alias_force_string":False},
+            {"name":"bearbeiter_id",
+             "search_retrieve":True, "preload":True,
+             "alias":"editor", "alias_force_string":False}
+            ])
+
         # PHASES
         # --------
         # Available Phases:



More information about the Mpuls-commits mailing list