[Mpuls-commits] r5735 - base/trunk/mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Dec 22 15:38:22 CET 2011


Author: torsten
Date: 2011-12-22 15:38:22 +0100 (Thu, 22 Dec 2011)
New Revision: 5735

Modified:
   base/trunk/mpulsweb/lib/config.py
Log:
Add new config vars to set the default values on autocompleting fields. This
is needed as the behavior needs to be changed depending on the installation.
So date might be set to a different dates than "unknown"


Modified: base/trunk/mpulsweb/lib/config.py
===================================================================
--- base/trunk/mpulsweb/lib/config.py	2011-12-22 12:39:19 UTC (rev 5734)
+++ base/trunk/mpulsweb/lib/config.py	2011-12-22 14:38:22 UTC (rev 5735)
@@ -263,6 +263,15 @@
         set('case', 'remindermindays', '0')
         set('case', 'remindermaxdays', '9999')
 
+        # Set default values for an item  on autocomplete a case
+        # Date can be set to "NOW" which is then replaced with the current date
+        # or an dd.mm.jjjj formated datestring 
+        set('case', 'default-autocomplete-date', 'unbekannt')
+        set('case', 'default-autocomplete-integer', '-9999999')
+        set('case', 'default-autocomplete-text', 'unbekannt')
+        set('case', 'default-autocomplete-choice', '-3')
+
+
         # FORMLETTER 
         # ----------
         # Defines a list of different formletters. Each letter has a id and a



More information about the Mpuls-commits mailing list