summaryrefslogtreecommitdiffstats
path: root/leafymiracle/__init__.py
diff options
context:
space:
mode:
authorRalph Bean <ralph.bean@gmail.com>2011-04-14 10:21:21 -0400
committerRalph Bean <ralph.bean@gmail.com>2011-04-14 10:21:21 -0400
commite9d4d07a53822fc75d608fc1eef0c52fbbfe58e9 (patch)
tree172ff177bd61a55c6f56dc1bf8ffa383a71e10b3 /leafymiracle/__init__.py
parent092c5a967673bdd0aacb3eabdc49525f645c331c (diff)
parentf62a1c9b336ae632a8767ea6270cad5c1f61a187 (diff)
downloadleafymiracle-e9d4d07a53822fc75d608fc1eef0c52fbbfe58e9.tar.gz
leafymiracle-e9d4d07a53822fc75d608fc1eef0c52fbbfe58e9.tar.xz
leafymiracle-e9d4d07a53822fc75d608fc1eef0c52fbbfe58e9.zip
Merge branch 'searchbar'
Diffstat (limited to 'leafymiracle/__init__.py')
-rw-r--r--leafymiracle/__init__.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/leafymiracle/__init__.py b/leafymiracle/__init__.py
index 1d9203b..6be768e 100644
--- a/leafymiracle/__init__.py
+++ b/leafymiracle/__init__.py
@@ -31,12 +31,11 @@ def main(global_config, **settings):
config.add_view('leafymiracle.views.view_model',
context='leafymiracle.models.Root',
renderer="templates/model.pt")
+ config.add_view('leafymiracle.views.view_search',
+ context='leafymiracle.resources.SearchHandler',
+ xhr=True)
config.add_static_view(name='static', path='static')
- # Create the searchbar handler
- config.add_route('search', '/search',
- view='leafymiracle.views.search', xhr=True)
-
# Create the data view for our tw2.jit.SQLARadialGraph
jit_view = lambda context, request: LeafyGraph.request(request)
config.add_route('data', '/data', view=jit_view, xhr=True)