]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/blobdiff - wradmin/controllers/gasthaus.py
Files after running 2to3.py.
[philipp/winterrodeln/wradmin.git] / wradmin / controllers / gasthaus.py
index d7ce5b519c99d2e259f27028a9eb141156a0d2ce..5125a78906c3f614975f699507474554aa770230 100644 (file)
@@ -42,14 +42,14 @@ class GasthausController(BaseController):
         try:
             wrpylib.wrmwcache.update_wrinncache(c)
             model.meta.Session.commit()
-            session['flash'] = u'Die Gasthausliste wurde erfolgreich aktualisiert.'
+            session['flash'] = 'Die Gasthausliste wurde erfolgreich aktualisiert.'
         except wrpylib.wrmwcache.UpdateCacheError as e:
-            title = unicode(e.args[1])
+            title = str(e.args[1])
             title = wrpylib.mwmarkup.to_title(title)
-            msg = unicode(e.args[2])
+            msg = str(e.args[2])
             msg = msg.replace('\n', '; ')
-            if len(e.args) == 3: session['flash'] = u"Fehler bei Gasthaus '{0}': {1}".format(title, msg)
-            else: session['flash'] = unicode(e)
+            if len(e.args) == 3: session['flash'] = "Fehler bei Gasthaus '{0}': {1}".format(title, msg)
+            else: session['flash'] = str(e)
         session.save()
         # Redirect to result page
         return redirect(url(controller='gasthaus', action='list'))