[Mpuls-commits] r6088 - base/trunk/mpulsweb/model

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


Author: roland
Date: 2012-10-02 11:37:26 +0200 (Tue, 02 Oct 2012)
New Revision: 6088

Modified:
   base/trunk/mpulsweb/model/agency.py
   base/trunk/mpulsweb/model/agencysettings.py
Log:
Add getter for the agency's job percentage (2066-5)

Modified: base/trunk/mpulsweb/model/agency.py
===================================================================
--- base/trunk/mpulsweb/model/agency.py	2012-10-02 09:36:36 UTC (rev 6087)
+++ base/trunk/mpulsweb/model/agency.py	2012-10-02 09:37:26 UTC (rev 6088)
@@ -110,7 +110,7 @@
         if name in self.preset:
             return self.preset[name]
         return None 
-
+    
 class MpulsAgencyFactory:
 
     """Factory for case object. This factory provides methods to either load

Modified: base/trunk/mpulsweb/model/agencysettings.py
===================================================================
--- base/trunk/mpulsweb/model/agencysettings.py	2012-10-02 09:36:36 UTC (rev 6087)
+++ base/trunk/mpulsweb/model/agencysettings.py	2012-10-02 09:37:26 UTC (rev 6088)
@@ -146,7 +146,7 @@
 
     def getMetaUserName(self):
         return self.get_value('meta_user_name', u'')
-
+    
     def getMetaUserPassword(self):
         return self.get_value('meta_user_password', u'')
 
@@ -156,6 +156,9 @@
         """
         return self.getMetaUserPassword() and self.getMetaUserName()
 
+    def getJobPercentage(self):
+        return self.get_value('job_percentage', u'')
+
     def get_value(self, name, default=None):
         return self.conf.get(name, default)
 



More information about the Mpuls-commits mailing list