Require login to perform visualization (otherwise we have no way to store them)

This commit is contained in:
James Taylor
2009-10-27 13:39:48 -04:00
parent 153c87359d
commit cdc3163a82
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -63,6 +63,7 @@ class TracksController( BaseController ):
return trans.fill_template( "tracks/index.mako" )
@web.expose
@web.require_login()
def new_browser( self, trans, dbkey=None, dataset_ids=None, browse=None, title=None ):
"""
Build a new browser from datasets in the current history. Redirects
@@ -28,11 +28,13 @@ class VisualizationListGrid( grids.Grid ):
class VisualizationController( BaseController ):
@web.expose
@web.require_login()
def index( self, trans ):
return trans.fill_template( "panels.mako", active_view='visualization', main_url=url_for( action='list' ) )
list_grid = VisualizationListGrid()
@web.expose
@web.require_login()
def list( self, trans, *args, **kwargs ):
return self.list_grid( trans, *args, **kwargs )