[Mpuls-commits] r4518 - base/trunk/mpulsweb/lib
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Jan 24 22:47:37 CET 2011
Author: torsten
Date: 2011-01-24 22:47:37 +0100 (Mon, 24 Jan 2011)
New Revision: 4518
Modified:
base/trunk/mpulsweb/lib/config.py
Log:
* mpulsweb/lib/config.py: Set minimal configuration for case and
Phase, so that the base can be run on the base database without
any further config.
Modified: base/trunk/mpulsweb/lib/config.py
===================================================================
--- base/trunk/mpulsweb/lib/config.py 2011-01-24 21:43:23 UTC (rev 4517)
+++ base/trunk/mpulsweb/lib/config.py 2011-01-24 21:47:37 UTC (rev 4518)
@@ -199,7 +199,19 @@
# erstgespraech, datum_cm_ende which are dates, or
# bearbeiter_id which is an int.
#
- set('case', 'fields', [])
+ set('case', 'fields', [{"name":"id",
+ "alias":"id",
+ "preload":True,
+ "overview":True,
+ "search_retrieve":True,
+ "search_match":True,
+ "overview_style":"table_width_small",
+ "overview_label": "ID"},{
+ "name":"bearbeiter_id",
+ "search_retrieve":True,
+ "preload":True, "alias":"editor",
+ "alias_force_string":False}
+ ])
set('agency', 'fields', [{"name":"fkz",
"alias":"fkz",
"preload":True,
@@ -276,18 +288,22 @@
set('phases', 'casetype', [{}])
# Available Phases:
- set('phases', 'phases', [])
+ set('phases', 'phases', ['-1'])
# Description of phases
- description = []
+ description = [{'-1': 'Unbekannt'}]
set('phases', 'description', description)
- shortdescription = []
+ shortdescription = [{'-1': 'U'}]
set('phases', 'shortdescription', description)
# Phasepairs
- pairs =[]
+ pairs =[{"-1": ["-1", "-1"]}]
set('phases', 'pairs', pairs)
+ # Dates
+ dates =[]
+ set('phases', 'dates', dates)
+
# Not anonymizable phaseparts
set('phases', 'notanonymizable', [])
@@ -302,18 +318,18 @@
set('phases', 'minimal_fields_to_anonymize', [])
# Succenssors and Predesessors
- successors = []
+ successors = [{"-1": []}]
set('phases', 'successors', successors)
# The following lines configure in which phases a case is considered as
# active or finished. This is used in determining outaged cases (e.g
# max savetime)
# Which phases are considered as active
- active = []
+ active = ["-1"]
set('phases', 'active', active)
# Which phases are considered as finished
- finished = []
+ finished = ["-1"]
set('phases', 'finished', finished)
# SEARCH
@@ -347,6 +363,7 @@
}
]
set('search', 'cm_defaults', search_cm_default)
+
set('search', 'default-sorting', 'id')
set('search', 'default-order', 'asc')
set('search', 'default-start-date', "2009-09-01")
More information about the Mpuls-commits
mailing list