[Mpuls-commits] r6085 - base/trunk/mpulsweb/controllers

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Tue Oct 2 11:34:11 CEST 2012


Author: roland
Date: 2012-10-02 11:34:11 +0200 (Tue, 02 Oct 2012)
New Revision: 6085

Modified:
   base/trunk/mpulsweb/controllers/mpuls.py
Log:
Add job percentage reminder (2066-5)

Modified: base/trunk/mpulsweb/controllers/mpuls.py
===================================================================
--- base/trunk/mpulsweb/controllers/mpuls.py	2012-10-02 09:33:24 UTC (rev 6084)
+++ base/trunk/mpulsweb/controllers/mpuls.py	2012-10-02 09:34:11 UTC (rev 6085)
@@ -6,7 +6,7 @@
 from mpulsweb.model.news import NewsList
 from mpulsweb.model.appointment import GlobalAppointmentOverview, \
      CaseAppointmentOverview, MaxSaveTimeReminderOverview, CaseReminderOverview, \
-     TagsReminderOverview
+     TagsReminderOverview, JobPercentageReminderOverview
 from mpulsweb.lib.base import BaseController, render, session
 import mpulsweb.lib.helpers as h
 
@@ -75,6 +75,9 @@
         if h.hasRole(['cm']):
             remindlist.join(TagsReminderOverview())
 
+        if g.mpuls_config.is_enabled('job_percentage', 'enabled'):
+            remindlist.join(JobPercentageReminderOverview())
+            
         remindlist.sort()
 
         return remindlist



More information about the Mpuls-commits mailing list