[Mpuls-commits] r4326 - base/trunk/mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Dec 6 11:24:06 CET 2010


Author: torsten
Date: 2010-12-06 11:24:06 +0100 (Mon, 06 Dec 2010)
New Revision: 4326

Modified:
   base/trunk/mpulsweb/controllers/administration.py
Log:
Issue1533: Fixed traceback when trying to delete a user which does still hold cases.


Modified: base/trunk/mpulsweb/controllers/administration.py
===================================================================
--- base/trunk/mpulsweb/controllers/administration.py	2010-12-06 09:40:24 UTC (rev 4325)
+++ base/trunk/mpulsweb/controllers/administration.py	2010-12-06 10:24:06 UTC (rev 4326)
@@ -15,6 +15,7 @@
 from mpulsweb.model.user import UserListObject, UserObject, UserGroupList, \
     UserGroup, UserGroupFactory
 from mpulsweb.model.case import MpulsCaseOverview, MpulsCaseBundle
+from mpulsweb.model.phase import PhaseFactory 
 from mpulsweb.controllers.case_overview import default_phases
 
 
@@ -252,6 +253,8 @@
                 filter.append(uo.id) #the user we want to delete
                 c.user_list = list.getUserList(filter)
                 c.cases = overview
+                c.phases = PhaseFactory().build() 
+                print c.cases
                 c.delete_user_id = id
                 return render('/administration/delete_user_helper.mako')
             else:



More information about the Mpuls-commits mailing list