Skip to content
Browse files

Remove legacy demo app

  • Loading branch information...
1 parent 181eb08 commit d49c85a4c40ea6d1c8a0282312133a21868bc5ce @rcmachado rcmachado committed Sep 7, 2012
View
0 demo/__init__.py
No changes.
View
0 demo/handlers/__init__.py
No changes.
View
21 demo/handlers/home.py
@@ -1,21 +0,0 @@
-# coding: utf-8
-from torneira import __version__
-from torneira.handler import TorneiraHandler
-from torneira.template import MakoMixin
-
-
-class HomeHandler(TorneiraHandler, MakoMixin):
- _teste = None
-
- def initialize(self, *args, **kwargs):
- super(HomeHandler, self).initialize(*args, **kwargs)
- self._teste = 'WORKS! ;)'
-
- def index(self):
- return self.render_to_template("home.html", version=__version__)
-
- def json_service(self):
- return {'torneira': {'version': __version__}}
-
- def custom(self):
- return "%s - Torneira v%s" % (self._teste, __version__)
View
2 demo/requirements.txt
@@ -1,2 +0,0 @@
-tornado
-mako
View
20 demo/settings_local.py
@@ -1,20 +0,0 @@
-import logging
-import os
-
-DEBUG = True
-PROFILING = False
-
-DATABASE_ENGINE = "mysql://root:@localhost:3306/demo?charset=utf8&use_unicode=0"
-DATABASE_POOL_SIZE = 50
-
-logging.basicConfig(
- level = logging.DEBUG,
-)
-
-ROOT_URLS = 'demo.urls'
-
-COOKIE_SECRET = ""
-
-TEMPLATE_DIRS = (
- "%s/templates" % os.path.abspath(os.path.dirname(__file__))
-)
View
8 demo/templates/home.html
@@ -1,8 +0,0 @@
-<html>
- <head>
- <title>torneira demonstration</title>
- </head>
- <body>
- <h1>Torneira version ${version}</h1>
- </body>
-</html>
View
9 demo/urls.py
@@ -1,9 +0,0 @@
-from handlers.home import HomeHandler
-from tornado.web import url
-
-
-urls = (
- url(r"/custom/?", HomeHandler, {'action': 'custom'}),
- url(r"/json_service/?", HomeHandler, {'action': 'json_service'}),
- url(r"/.*", HomeHandler, {'action': 'index'}),
-)

0 comments on commit d49c85a

Please sign in to comment.
Something went wrong with that request. Please try again.