[Mpuls-commits] r2555 - wasko/branches/2.0/jmdweb/templates
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Apr 29 10:08:48 CEST 2010
Author: roland
Date: 2010-04-29 10:08:47 +0200 (Thu, 29 Apr 2010)
New Revision: 2555
Modified:
wasko/branches/2.0/jmdweb/templates/main.mako
Log:
additional filter in list comprehension
Modified: wasko/branches/2.0/jmdweb/templates/main.mako
===================================================================
--- wasko/branches/2.0/jmdweb/templates/main.mako 2010-04-28 13:58:11 UTC (rev 2554)
+++ wasko/branches/2.0/jmdweb/templates/main.mako 2010-04-29 08:08:47 UTC (rev 2555)
@@ -145,7 +145,7 @@
</div>
<%
from mpulsweb.model.agencysettings import Agency
- permission = [int(id) for id in Agency().get_value('jmdstrukur_permission_userid', []).split(',')]
+ 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