[Mpuls-commits] r1489 - wasko/branches/2.0/waskaweb/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Feb 11 08:36:34 CET 2010


Author: torsten
Date: 2010-02-11 08:36:33 +0100 (Thu, 11 Feb 2010)
New Revision: 1489

Modified:
   wasko/branches/2.0/waskaweb/model/document.py
Log:
* waskaweb/model/document.py: Formatting 


Modified: wasko/branches/2.0/waskaweb/model/document.py
===================================================================
--- wasko/branches/2.0/waskaweb/model/document.py	2010-02-11 07:30:59 UTC (rev 1488)
+++ wasko/branches/2.0/waskaweb/model/document.py	2010-02-11 07:36:33 UTC (rev 1489)
@@ -181,7 +181,8 @@
             total_size += l
             if total_size > MAX_SIZE:
                 raise DocumentException(
-                    u"Datei ist zu groß. Maximal %sMB sind erlaubt." % h.format_number(MAX_SIZE/float(1024*1024)))
+                    u"Datei ist zu groß. Maximal %sMB sind erlaubt." \
+                    % h.format_number(MAX_SIZE/float(1024*1024)))
             out.write(b)
         bytes = out.getvalue()
         out.close(); out = None
@@ -194,8 +195,10 @@
             con = db.getConnection()
             cur = con.cursor()
 
-            if case is None: cur.execute(CREATE_GLOBAL, {'name': name})
-            else:            cur.execute(CREATE_CASE, { 'id': case, 'uuid': uuid, 'name': name})
+            if case is None: 
+                cur.execute(CREATE_GLOBAL, {'name': name})
+            else:            
+                cur.execute(CREATE_CASE, { 'id': case, 'uuid': uuid, 'name': name})
 
             row = cur.fetchone()
             if row is None:



More information about the Mpuls-commits mailing list