[Mpuls-commits] r110 - in waska/trunk: . waskaweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Sep 2 11:04:00 CEST 2008


Author: teichmann
Date: 2008-09-02 11:03:59 +0200 (Tue, 02 Sep 2008)
New Revision: 110

Modified:
   waska/trunk/ChangeLog.txt
   waska/trunk/waskaweb/lib/xmlexport.py
Log:
XML export: always export einverstaendniserklaerung and phase.


Modified: waska/trunk/ChangeLog.txt
===================================================================
--- waska/trunk/ChangeLog.txt	2008-09-02 05:21:22 UTC (rev 109)
+++ waska/trunk/ChangeLog.txt	2008-09-02 09:03:59 UTC (rev 110)
@@ -1,5 +1,9 @@
 2008-09-02  Sascha L. Teichmann <sascha.teichmann at intevation.de>
 
+	* waskaweb/lib/xmlexport.py: Always export phase and einverstaendniserklaerung
+
+2008-09-02  Sascha L. Teichmann <sascha.teichmann at intevation.de>
+
 	* formed/formedtree_web.xml: FormEd tree from setup.
 
 2008-09-01  Sascha L. Teichmann <sascha.teichmann at intevation.de>

Modified: waska/trunk/waskaweb/lib/xmlexport.py
===================================================================
--- waska/trunk/waskaweb/lib/xmlexport.py	2008-09-02 05:21:22 UTC (rev 109)
+++ waska/trunk/waskaweb/lib/xmlexport.py	2008-09-02 09:03:59 UTC (rev 110)
@@ -41,6 +41,7 @@
 import waskaweb.lib.helpers as h
 
 SECTION_MAP = {
+    'form_section_e' : 'page_einverstaendnis', # Einverständniserklärung, Phase
     'form_section_0' : 'page_0',  # Zuständigkeiten, Eingangsdaten
     'form_section_1' : 'page_25', # Externe Ansprechpartner
     'form_section_2' : 'page_1',  # Persönliche Angaben
@@ -190,6 +191,8 @@
     def createSelector(self):
         selector = Selector(self.anonymize)
         selected_sections = self.case_parts.allSelectedSections()
+        # always export einverstaendiserklaerung and phase
+        selected_sections.insert(0, 'form_section_e')
 
         master_tbl_items = ['id']
 



More information about the Mpuls-commits mailing list