Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bewype/flask/controllers/themes.py
diff options
context:
space:
mode:
Diffstat (limited to 'bewype/flask/controllers/themes.py')
-rw-r--r--bewype/flask/controllers/themes.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/bewype/flask/controllers/themes.py b/bewype/flask/controllers/themes.py
deleted file mode 100644
index 6782c2b..0000000
--- a/bewype/flask/controllers/themes.py
+++ /dev/null
@@ -1,24 +0,0 @@
-# (C) Copyright 2010 Bewype <http://www.bewype.org>
-
-# flask import
-from flask import abort, url_for, redirect, session
-
-# bewype import
-from bewype.flask import app, render
-
-# flask ext
-from flaskext import themes
-
-
-@app.route('/themes/')
-def themes_list():
- _themes = themes.get_themes_list()
- return render('themes/list.html', themes=_themes)
-
-
-@app.route('/themes/<identifier>')
-def themes_save(identifier):
- if identifier not in app.theme_manager.themes:
- abort(404)
- session['theme'] = identifier
- return redirect(url_for('themes_list'))