[Mpuls-commits] r4997 - in base/trunk: . mpulsweb/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue May 24 13:24:34 CEST 2011


Author: ludwig
Date: 2011-05-24 13:24:33 +0200 (Tue, 24 May 2011)
New Revision: 4997

Modified:
   base/trunk/ChangeLog
   base/trunk/mpulsweb/model/user.py
Log:
Removed a dysfunctional control statement.

Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog	2011-05-24 11:19:06 UTC (rev 4996)
+++ base/trunk/ChangeLog	2011-05-24 11:24:33 UTC (rev 4997)
@@ -1,3 +1,8 @@
+2011-05-24  Ludwig Reiter <ludwig.reiter at intevation.de>
+
+	* mpulsweb/model/user.py(setUser):
+	Removed a dysfunctional control statement. 
+
 2011-05-24  Bernhard Herzog  <bh at intevation.de>
 
 	* mpulsweb/templates/evaluation/evaluate.mako: Use disable instead

Modified: base/trunk/mpulsweb/model/user.py
===================================================================
--- base/trunk/mpulsweb/model/user.py	2011-05-24 11:19:06 UTC (rev 4996)
+++ base/trunk/mpulsweb/model/user.py	2011-05-24 11:24:33 UTC (rev 4997)
@@ -181,8 +181,6 @@
         self.name = data.get('name', '')
 
     def setUser(self, list):
-        if not list:
-            return
         old_user = set(self._getCurrentUserIds())
         new_user = set([int(id) for id in list])
 



More information about the Mpuls-commits mailing list