[Mpuls-commits] r2660 - in wasko/branches/2.0: . mpulsweb/lib
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed May 5 16:04:49 CEST 2010
Author: bh
Date: 2010-05-05 16:04:48 +0200 (Wed, 05 May 2010)
New Revision: 2660
Modified:
wasko/branches/2.0/ChangeLog
wasko/branches/2.0/mpulsweb/lib/config.py
Log:
* mpulsweb/lib/config.py (MpulsConfig.build_defaults): Simplify
the default implementation.
Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog 2010-05-05 13:08:53 UTC (rev 2659)
+++ wasko/branches/2.0/ChangeLog 2010-05-05 14:04:48 UTC (rev 2660)
@@ -1,3 +1,8 @@
+2010-05-05 Bernhard Herzog <bh at intevation.de>
+
+ * mpulsweb/lib/config.py (MpulsConfig.build_defaults): Simplify
+ the default implementation.
+
2010-05-05 Torsten Irländer <torsten.irlaender at intevation.de>
Added config based db-mapping:
Modified: wasko/branches/2.0/mpulsweb/lib/config.py
===================================================================
--- wasko/branches/2.0/mpulsweb/lib/config.py 2010-05-05 13:08:53 UTC (rev 2659)
+++ wasko/branches/2.0/mpulsweb/lib/config.py 2010-05-05 14:04:48 UTC (rev 2660)
@@ -89,18 +89,8 @@
def build_defaults(self):
'''Set default configuration. This is function should be calles if
there is no config file'''
+ return {}
- sections = {}
-
- def set(section_key, item_key, item):
- try:
- section = sections[section_key]
- except KeyError:
- section = {}
- sections[section_key] = section
- section[item_key] = item
- return sections
-
def get(self, section, name):
try:
return self.config[section][name]
More information about the Mpuls-commits
mailing list