[Mpuls-commits] r2253 - in wasko/branches/2.0: . mpulsweb/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Mar 29 18:35:33 CEST 2010


Author: bh
Date: 2010-03-29 18:35:28 +0200 (Mon, 29 Mar 2010)
New Revision: 2253

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/mpulsweb/model/logbook.py
Log:
* mpulsweb/model/logbook.py: Fix formatting.


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-03-29 16:31:57 UTC (rev 2252)
+++ wasko/branches/2.0/ChangeLog	2010-03-29 16:35:28 UTC (rev 2253)
@@ -1,5 +1,9 @@
 2010-03-29  Bernhard Herzog  <bh at intevation.de>
 
+	* mpulsweb/model/logbook.py: Fix formatting.
+
+2010-03-29  Bernhard Herzog  <bh at intevation.de>
+
 	* mpulsweb/model/case.py: Fix formatting.
 
 2010-03-29  Bernhard Herzog  <bh at intevation.de>

Modified: wasko/branches/2.0/mpulsweb/model/logbook.py
===================================================================
--- wasko/branches/2.0/mpulsweb/model/logbook.py	2010-03-29 16:31:57 UTC (rev 2252)
+++ wasko/branches/2.0/mpulsweb/model/logbook.py	2010-03-29 16:35:28 UTC (rev 2253)
@@ -31,10 +31,10 @@
 import logging
 from datetime import timedelta, datetime
 
-from pylons import app_globals as g 
+from pylons import app_globals as g
 import mpulsweb.lib.helpers as h
 from mpulsweb.lib.db import db
-from mpulsweb.lib.evaluation import LogbookEvaluation 
+from mpulsweb.lib.evaluation import LogbookEvaluation
 
 log = logging.getLogger(__name__)
 
@@ -88,7 +88,7 @@
     m = VALID_TIME.match(value)
     if not m:
         return None
-    return timedelta(hours = int(m.group(1)), minutes = int(m.group(2)))
+    return timedelta(hours=int(m.group(1)), minutes=int(m.group(2)))
 
 
 class LogbookEntry:
@@ -146,7 +146,7 @@
     def getKind(self, empty='-/-'):
         if self.art == -2:
             return "%s" % self.getShortNotice(empty)
-        return KIND2TEXT.get(str(self.art), empty);
+        return KIND2TEXT.get(str(self.art), empty)
 
     def setKind(self, art):
         self.art = art
@@ -322,7 +322,7 @@
                     case_id = int(case_id)
                     self.case_id = case_id
                 except ValueError:
-                    errors.append("Fallnummer is keine Ganzzahl.");
+                    errors.append("Fallnummer is keine Ganzzahl.")
 
         art = params.getone('kind')
         if art is None:



More information about the Mpuls-commits mailing list