Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bewype/flask/_app.py
diff options
context:
space:
mode:
Diffstat (limited to 'bewype/flask/_app.py')
-rw-r--r--bewype/flask/_app.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/bewype/flask/_app.py b/bewype/flask/_app.py
deleted file mode 100644
index 6c329ba..0000000
--- a/bewype/flask/_app.py
+++ /dev/null
@@ -1,26 +0,0 @@
-# (C) Copyright 2010 Bewype <http://www.bewype.org>
-
-# flask import
-from flask import Flask, session
-
-# flask themes
-from flaskext.themes import setup_themes, render_theme_template
-
-
-def render(template, **context):
- """Theme renderer shortcut.
- """
- _theme = session.get('theme', 'default')
- return render_theme_template(_theme, template, **context)
-
-
-app = Flask(__name__)
-app.secret_key = 'abcdefg'
-# set themes path - currently hard coded for `easy to use` reason
-app.config['THEME_PATHS'] = ['themes']
-# init themes
-setup_themes(app, app_identifier='default')
-
-
-def run_app():
- app.run()