[Mpuls-commits] r88 - in waska/trunk: . waskaweb/controllers waskaweb/templates/casemanagement

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Aug 26 15:07:52 CEST 2008


Author: teichmann
Date: 2008-08-26 15:07:51 +0200 (Tue, 26 Aug 2008)
New Revision: 88

Modified:
   waska/trunk/ChangeLog.txt
   waska/trunk/waskaweb/controllers/case.py
   waska/trunk/waskaweb/templates/casemanagement/main.mako
Log:
Controller for CM phase.


Modified: waska/trunk/ChangeLog.txt
===================================================================
--- waska/trunk/ChangeLog.txt	2008-08-25 16:23:56 UTC (rev 87)
+++ waska/trunk/ChangeLog.txt	2008-08-26 13:07:51 UTC (rev 88)
@@ -1,3 +1,9 @@
+2008-08-26  Sascha L. Teichmann <sascha.teichmann at intevation.de>
+
+	* waskaweb/controllers/case.py,
+	  waskaweb/templates/casemanagement/main.mako: Controller for
+	  phase of CM.
+
 2008-08-25  Sascha L. Teichmann <sascha.teichmann at intevation.de>
 
 	* waskaweb/model/case.py: Load phase from ka_status_tbl.

Modified: waska/trunk/waskaweb/controllers/case.py
===================================================================
--- waska/trunk/waskaweb/controllers/case.py	2008-08-25 16:23:56 UTC (rev 87)
+++ waska/trunk/waskaweb/controllers/case.py	2008-08-26 13:07:51 UTC (rev 88)
@@ -672,6 +672,13 @@
         c.eval_effort = logbook.getEvaluation()
         return render('/logbook/overview.mako')
 
+    @checkRole(('admin_ka', 'cm_ka'))
+    def phase(self, id):
+        id                 = self._checkInt(id)
+        case               = self._loadCase(id)
+
+        return render('/casemanagement/phase.mako')
+
     @checkRole('cm_ka')
     def newLogbookEntry(self, id):
         entry = LogbookEntry()

Modified: waska/trunk/waskaweb/templates/casemanagement/main.mako
===================================================================
--- waska/trunk/waskaweb/templates/casemanagement/main.mako	2008-08-25 16:23:56 UTC (rev 87)
+++ waska/trunk/waskaweb/templates/casemanagement/main.mako	2008-08-26 13:07:51 UTC (rev 88)
@@ -68,6 +68,7 @@
       <ul>
         <li><a href="/case/digest/${session.get('case').id}" onclick="return checkModification();"> ${_('cm_menu_link_digest')}</a></li>
         % if h.hasRole(['cm_ka', 'admin_ka']):
+        <li><a href="/case/phase/${session.get('case').id}" onclick="return checkModification();"> Phase im CM</a></li>
         <li><a href="/case/organisation/${session.get('case').id}" onclick="return checkModification();"> ${_('cm_menu_link_organisation')}</a></li>
         <li><a href="/case/appointments/${session.get('case').id}" onclick="return checkModification();"> ${_('cm_menu_link_appointment')}</a></li>
         <li><a href="/case/logbook/${session.get('case').id}" onclick="return checkModification();"> Tagebuch</a></li>



More information about the Mpuls-commits mailing list