-#!/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
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: