]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/blobdiff - wradmin/controllers/wrgpxtool.py
Simplify pagination.
[philipp/winterrodeln/wradmin.git] / wradmin / controllers / wrgpxtool.py
index 6a2a1dce4b97ac83d284cfc988dc05429abe9c2e..c23bba7804dfedf5ff7862be6d5835d7f9801758 100644 (file)
@@ -1,6 +1,4 @@
-#!/usr/bin/python2.6
-# -*- coding: iso-8859-15 -*-
-
+#!/usr/bin/python3.4
 import logging
 
 from pylons import request, response, session, url, tmpl_context as c
@@ -30,13 +28,13 @@ class WrgpxtoolController(BaseController):
                 c.validation_hints = hints
                 c.validation_ok = len([hint for hint in hints if hint.level > 1]) == 0
                 session['wrgpx'] = gpx
-                if c.validation_ok: session['flash'] = "Die Datei '%s' ist eine gültige GPX 1.1 Datei und entspricht zusätzlich den Winterrodeln Anforderungen (WRGPX). :-)" % gpxfile.filename
-                else: session['flash'] = " Die Datei '%s' ist zwar eine gültige GPX 1.1 Datei, entspricht aber nicht den zusätzlichen Winterrodeln-Anforderungen. :-(" % gpxfile.filename
+                if c.validation_ok: session['flash'] = "Die Datei '%s' ist eine gültige GPX 1.1 Datei und entspricht zusätzlich den Winterrodeln Anforderungen (WRGPX). :-)" % gpxfile.filename
+                else: session['flash'] = " Die Datei '%s' ist zwar eine gültige GPX 1.1 Datei, entspricht aber nicht den zusätzlichen Winterrodeln-Anforderungen. :-(" % gpxfile.filename
             except etree.XMLSyntaxError as e:
                 c.validation_exception = e
                 c.validation_hints = []
                 c.validation_ok = False
-                session['flash'] = "Die Datei '%s' ist keine gültige GPX 1.1 Datei. :-(" % gpxfile.filename
+                session['flash'] = "Die Datei '%s' ist keine gültige GPX 1.1 Datei. :-(" % gpxfile.filename
             c.validated = True
             c.filename = gpxfile.filename
         else: