[Mpuls-commits] r4485 - in wasko/trunk: . waskoweb/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Jan 11 11:15:39 CET 2011


Author: roland
Date: 2011-01-11 11:15:38 +0100 (Tue, 11 Jan 2011)
New Revision: 4485

Modified:
   wasko/trunk/ChangeLog
   wasko/trunk/waskoweb/model/case.py
Log:
issue1570: save the agency's name and number when creating new cases

Modified: wasko/trunk/ChangeLog
===================================================================
--- wasko/trunk/ChangeLog	2011-01-11 08:37:10 UTC (rev 4484)
+++ wasko/trunk/ChangeLog	2011-01-11 10:15:38 UTC (rev 4485)
@@ -1,5 +1,10 @@
 2011-01-11  Roland Geider <roland.geider at intevation.de>
 
+	* waskoweb/model/case.py: issue1570: save the agency's name and number
+	  when creating new cases
+
+2011-01-11  Roland Geider <roland.geider at intevation.de>
+
 	* waskoweb/public/formed/formedtree.xml: issue1570: Don't make "Name
 	  of Agency" and "Application Nr."  mandatory fields
 

Modified: wasko/trunk/waskoweb/model/case.py
===================================================================
--- wasko/trunk/waskoweb/model/case.py	2011-01-11 08:37:10 UTC (rev 4484)
+++ wasko/trunk/waskoweb/model/case.py	2011-01-11 10:15:38 UTC (rev 4485)
@@ -47,7 +47,9 @@
 UPDATE master_tbl_view
 SET
     mitarb_zv = %(vorname)s,
-    mitarb_zn = %(nachname)s
+    mitarb_zn = %(nachname)s,
+    fkz = %(fkz)s,
+    ks = %(agencyname)s
 WHERE id = %(id)s"""
 
 SET_EDITOR_SQL = """SELECT set_case_editor(%(userid)s, %(caseid)s)"""
@@ -81,6 +83,8 @@
             fields = {
                 'vorname': user.first_name,
                 'nachname': user.last_name,
+                'fkz': agency.getFKZ(),
+                'agencyname': agency.getName(),
                 'id': int(id)
                 }
             conn = db.getConnection()



More information about the Mpuls-commits mailing list