[Mpuls-commits] r994 - in wasko/branches/2.0: . waskaweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Jan 28 19:16:01 CET 2010


Author: bh
Date: 2010-01-28 19:16:00 +0100 (Thu, 28 Jan 2010)
New Revision: 994

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/waskaweb/lib/config.py
Log:
* waskaweb/lib/config.py: Fix formatting.


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-01-28 18:12:15 UTC (rev 993)
+++ wasko/branches/2.0/ChangeLog	2010-01-28 18:16:00 UTC (rev 994)
@@ -1,5 +1,9 @@
 2010-01-28  Bernhard Herzog  <bh at intevation.de>
 
+	* waskaweb/lib/config.py: Fix formatting.
+
+2010-01-28  Bernhard Herzog  <bh at intevation.de>
+
 	* waskaweb/lib/config.py: Remove unused imports
 
 2010-01-28  Bernhard Herzog  <bh at intevation.de>

Modified: wasko/branches/2.0/waskaweb/lib/config.py
===================================================================
--- wasko/branches/2.0/waskaweb/lib/config.py	2010-01-28 18:12:15 UTC (rev 993)
+++ wasko/branches/2.0/waskaweb/lib/config.py	2010-01-28 18:16:00 UTC (rev 994)
@@ -25,7 +25,8 @@
 
 def get_path(dir, file):
     try:
-        if os.path.isabs(file): return file
+        if os.path.isabs(file):
+            return file
         return os.path.join(pylons.config.get('pylons.paths')
                             .get('static_files'), dir, file)
     except:
@@ -176,7 +177,8 @@
     def get_fieldname(self, key, mapping='case-fields-mapping'):
         '''Returns the mapped name of database field for a given mpuls internal
         datafield. If the field is not mapable return the key'''
-        if not mapping: mapping = 'case-fields-mapping'
+        if not mapping:
+            mapping = 'case-fields-mapping'
         try:
             return self.config[mapping][key]
         except KeyError:



More information about the Mpuls-commits mailing list