[Mpuls-commits] r2387 - wasko/branches/2.0/jmdweb/model
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Apr 15 18:14:25 CEST 2010
Author: torsten
Date: 2010-04-15 18:14:23 +0200 (Thu, 15 Apr 2010)
New Revision: 2387
Modified:
wasko/branches/2.0/jmdweb/model/case.py
Log:
* jmdweb/model/case.py: Wald: #1383. Set Name of the Agency on
initialisation of a new case.
Modified: wasko/branches/2.0/jmdweb/model/case.py
===================================================================
--- wasko/branches/2.0/jmdweb/model/case.py 2010-04-15 16:07:11 UTC (rev 2386)
+++ wasko/branches/2.0/jmdweb/model/case.py 2010-04-15 16:14:23 UTC (rev 2387)
@@ -44,7 +44,8 @@
UPDATE master_tbl_view
SET
mitarbeiter_vorname = %(vorname)s,
- mitarbeiter_name = %(nachname)s
+ mitarbeiter_name = %(nachname)s,
+ jmd_name = %(jmd_name)s
WHERE id = %(id)s"""
SET_EDITOR_SQL = """SELECT set_case_editor(%(userid)s, %(caseid)s)"""
@@ -77,6 +78,7 @@
fields = {
'vorname': user.first_name,
'nachname': user.last_name,
+ 'jmd_name': agency.getName(),
'id': int(id)
}
conn = db.getConnection()
More information about the Mpuls-commits
mailing list