[Mpuls-commits] r2726 - in jmd/trunk: . jmdweb/templates

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri May 21 18:36:53 CEST 2010


Author: bh
Date: 2010-05-21 18:36:52 +0200 (Fri, 21 May 2010)
New Revision: 2726

Modified:
   jmd/trunk/ChangeLog
   jmd/trunk/jmdweb/templates/main.mako
Log:
* jmdweb/templates/main.mako: Fix default value of the
jmdstrukur_permission_userid agency setting.  The code expects the
value to be a string, not a list.


Modified: jmd/trunk/ChangeLog
===================================================================
--- jmd/trunk/ChangeLog	2010-05-21 16:34:55 UTC (rev 2725)
+++ jmd/trunk/ChangeLog	2010-05-21 16:36:52 UTC (rev 2726)
@@ -1,3 +1,9 @@
+2010-05-21  Bernhard Herzog  <bh at intevation.de>
+
+	* jmdweb/templates/main.mako: Fix default value of the
+	jmdstrukur_permission_userid agency setting.  The code expects the
+	value to be a string, not a list.
+
 2010-05-19  Bernhard Herzog  <bh at intevation.de>
 
 	* jmdstruktur.json: Add shortdescription for phases.  Required by

Modified: jmd/trunk/jmdweb/templates/main.mako
===================================================================
--- jmd/trunk/jmdweb/templates/main.mako	2010-05-21 16:34:55 UTC (rev 2725)
+++ jmd/trunk/jmdweb/templates/main.mako	2010-05-21 16:36:52 UTC (rev 2726)
@@ -134,7 +134,7 @@
     </div>
     <%
     from mpulsweb.model.agencysettings import Agency
-    permission = [int(id) for id in Agency().get_value('jmdstrukur_permission_userid', []).split(',') if id != '']
+    permission = [int(id) for id in Agency().get_value('jmdstrukur_permission_userid', "").split(',') if id != '']
     %>
     % if session['USER_AUTHORIZED'].id in permission or h.hasRole(['admin']):
       <div class="menu">



More information about the Mpuls-commits mailing list