[Mpuls-commits] r2917 - in base/trunk: . mpulsweb/lib mpulsweb/templates/casemanagement

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Jun 8 12:30:44 CEST 2010


Author: roland
Date: 2010-06-08 12:30:42 +0200 (Tue, 08 Jun 2010)
New Revision: 2917

Modified:
   base/trunk/ChangeLog
   base/trunk/mpulsweb/lib/config.py
   base/trunk/mpulsweb/templates/casemanagement/main.mako
Log:
make the case copy configurable

Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog	2010-06-08 08:03:52 UTC (rev 2916)
+++ base/trunk/ChangeLog	2010-06-08 10:30:42 UTC (rev 2917)
@@ -1,3 +1,10 @@
+2010-06-08  Roland Geider <roland.geider at intevation.de>
+
+        * mpulsweb/lib/config.py,
+        mpulsweb/templates/casemanagement/main.mako: make the case copy
+        function configurable
+
+
 2010-06-07  Torsten Irländer <torsten.irlaender at intevation.de>
 
 	* mpulsweb/model/case.py (MpulsCase.copy): Added new dummy function to

Modified: base/trunk/mpulsweb/lib/config.py
===================================================================
--- base/trunk/mpulsweb/lib/config.py	2010-06-08 08:03:52 UTC (rev 2916)
+++ base/trunk/mpulsweb/lib/config.py	2010-06-08 10:30:42 UTC (rev 2917)
@@ -147,6 +147,7 @@
         set('case-module', 'logbook', '1')
         set('case-module', 'tags', '0')
         set('case-module', 'checktags', '0')
+        set('case-module', 'copy', '0')
 
         # CASE FIELDS
         #

Modified: base/trunk/mpulsweb/templates/casemanagement/main.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/main.mako	2010-06-08 08:03:52 UTC (rev 2916)
+++ base/trunk/mpulsweb/templates/casemanagement/main.mako	2010-06-08 10:30:42 UTC (rev 2917)
@@ -167,6 +167,7 @@
                     onclick="return checkModification();"
                     target="_blank">${_('cm_menu_link_print')}</a>
                 </li>
+                % if g.mpuls_config.is_enabled('case-module', 'copy'):
                 <li>
                     <a href="${h.url_for(controller='case', action='copy', 
                                          id=session.get('case').id,
@@ -174,6 +175,7 @@
                     onclick="return checkModification();"
                     target="_blank">${_('Copy case')}</a>
                 </li>
+                % endif
             % endif
             </ul>
         </li>



More information about the Mpuls-commits mailing list