[Mpuls-commits] r1120 - wasko/branches/2.0/waskaweb/templates/documents

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Feb 2 11:57:42 CET 2010


Author: torsten
Date: 2010-02-02 11:57:42 +0100 (Tue, 02 Feb 2010)
New Revision: 1120

Modified:
   wasko/branches/2.0/waskaweb/templates/documents/case_overview.mako
Log:
* waskaweb/templates/documents/case_overview.mako: Adopted method call
  of delete in casedocument controller.


Modified: wasko/branches/2.0/waskaweb/templates/documents/case_overview.mako
===================================================================
--- wasko/branches/2.0/waskaweb/templates/documents/case_overview.mako	2010-02-02 10:56:45 UTC (rev 1119)
+++ wasko/branches/2.0/waskaweb/templates/documents/case_overview.mako	2010-02-02 10:57:42 UTC (rev 1120)
@@ -45,7 +45,6 @@
   % if len(c.files) > 0:
     <% 
       kb = lambda x: h.format_number(x * 1.0/1024.0) 
-      myid = session.get('case').id
     %>
     % for num, f in enumerate(c.files):
       <tr class="${num%2 and 'hl' or ''}">
@@ -57,7 +56,7 @@
             <img src="/images/icons/view_red.gif" border="0" 
             alt="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}"></a>
           % if h.hasRole(['cm_ka']):
-            <a href="/casedocument/delete/${f.id}/${myid}/0">
+            <a href="/casedocument/delete/${f.id}/0">
               <img src="/images/icons/delete_red.gif" border="0" 
               alt="${_('cm_overview_a_delete')}" 
               title="${_('cm_overview_a_delete')}">



More information about the Mpuls-commits mailing list