[Mpuls-commits] r4150 - waska/trunk/waskaweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Nov 10 14:55:30 CET 2010


Author: torsten
Date: 2010-11-10 14:55:29 +0100 (Wed, 10 Nov 2010)
New Revision: 4150

Modified:
   waska/trunk/waskaweb/controllers/case.py
Log:
* waskaweb/controllers/case.py (CaseController.newAction): Issue1370: Set FKZ in new created cases.


Modified: waska/trunk/waskaweb/controllers/case.py
===================================================================
--- waska/trunk/waskaweb/controllers/case.py	2010-11-10 13:51:18 UTC (rev 4149)
+++ waska/trunk/waskaweb/controllers/case.py	2010-11-10 13:55:29 UTC (rev 4150)
@@ -57,11 +57,12 @@
 
         session['case'] = session_case
         session.save()
+        agency =  Agency()
 
         # Do we want to print the statement?
         if request.params.has_key('print'):
             c.print_version = 1
-            statement = PrivacyStatement(session_case, Agency())
+            statement = PrivacyStatement(session_case, agency)
             c.content = statement.fillout()
             return render('privacy/default_statement.mako')
 
@@ -70,6 +71,8 @@
             validator = NewCaseForm()
             try:
                 form_result = validator.to_python(request.params)
+                # Add fkz of the agency to the form_result
+                form_result['fkz'] = agency.getFKZ() 
                 # 1. Create a new case
                 case = g.case_factory.createNew(data=convert2dic({}))
                 case._load_formed_instance_tree()



More information about the Mpuls-commits mailing list