[Mpuls-commits] r2540 - wasko/branches/2.0/mpulsweb/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Apr 28 12:53:56 CEST 2010


Author: torsten
Date: 2010-04-28 12:53:53 +0200 (Wed, 28 Apr 2010)
New Revision: 2540

Modified:
   wasko/branches/2.0/mpulsweb/model/agencysettings.py
Log:
* mpulsweb/model/agencysettings.py: Added generic method to get values
	from the agencysettings.


Modified: wasko/branches/2.0/mpulsweb/model/agencysettings.py
===================================================================
--- wasko/branches/2.0/mpulsweb/model/agencysettings.py	2010-04-28 10:52:55 UTC (rev 2539)
+++ wasko/branches/2.0/mpulsweb/model/agencysettings.py	2010-04-28 10:53:53 UTC (rev 2540)
@@ -107,4 +107,7 @@
             return form
         return render('/privacy/default/privacy_statement.html')
 
+    def get_value(self, name, default=None):
+        return self.conf.get(name, default)
+
 # vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8:



More information about the Mpuls-commits mailing list