Eliminate enable_beta_features ( and the concept of 'beta' from the controllers ).

This commit is contained in:
Greg Von Kuster
2008-09-24 15:05:38 -04:00
parent 6ad31f73bc
commit 61ef35c0f3
8 changed files with 20 additions and 31 deletions
-1
View File
@@ -23,7 +23,6 @@ class Configuration( object ):
def __init__( self, **kwargs ):
self.config_dict = kwargs
self.root = kwargs.get( 'root_dir', '.' )
self.enable_beta_features = kwargs.get( "enable_beta_features", False )
# Database related configuration
self.database = resolve_path( kwargs.get( "database_file", "database/universe.d" ), self.root )
self.database_connection = kwargs.get( "database_connection", False )
-2
View File
@@ -16,8 +16,6 @@ class BaseController( object ):
"""
Base class for Galaxy web application controllers.
"""
beta = False
def __init__( self, app ):
"""Initialize an interface for application 'app'"""
+1 -2
View File
@@ -41,8 +41,7 @@ def add_controllers( webapp, app ):
for key in dir( module ):
T = getattr( module, key )
if isclass( T ) and T is not BaseController and issubclass( T, BaseController ):
if app.config.enable_beta_features or not ( T.beta ):
webapp.add_controller( name, T( app ) )
webapp.add_controller( name, T( app ) )
def app_factory( global_conf, **kwargs ):
"""
-1
View File
@@ -13,7 +13,6 @@ from galaxy.workflow.modules import *
from galaxy.model.mapping import desc
class WorkflowController( BaseController ):
beta = True
@web.expose
@web.require_login( "use Galaxy workflows" )
@@ -8,7 +8,6 @@ log = logging.getLogger( __name__ )
class BaseController( object ):
"""Base class for Galaxy webapp application controllers."""
beta = False
def __init__( self, app ):
"""Initialize an interface for application 'app'"""
self.app = app
-1
View File
@@ -40,7 +40,6 @@ def add_controllers( webapp, app ):
for key in dir( module ):
T = getattr( module, key )
if isclass( T ) and T is not BaseController and issubclass( T, BaseController ):
#if app.config.enable_beta_features or not ( T.beta ):
webapp.add_controller( name, T( app ) )
def app_factory( global_conf, **kwargs ):
-2
View File
@@ -16,9 +16,7 @@
%if len( history.active_datasets ) > 0:
<li><a href="${h.url_for('/history_new')}">Create</a> a new empty history</li>
%endif
%if app.config.enable_beta_features:
<li><a href="${h.url_for( controller='workflow', action='build_from_current_history' )}">Construct workflow</a> from the current history</li>
%endif
<li><a href="${h.url_for( action='history_share' )}" target="galaxy_main">Share</a> current history</div>
%endif
<li><a href="${h.url_for( action='history_delete', id=history.id )}" confirm="Are you sure you want to delete the current history?">Delete</a> current history</div>
+19 -21
View File
@@ -82,27 +82,25 @@
## at least some workflows will appear here (the user should be able to
## configure which of their stored workflows appear in the tools menu).
%if app.config.enable_beta_features:
<div class="toolSectionPad"></div>
<div class="toolSectionPad"></div>
<div class="toolSectionTitle" id="title_XXinternalXXworkflow">
<span>Workflow <i>(beta)</i></span>
</div>
<div id="XXinternalXXworkflow" class="toolSectionBody">
<div class="toolSectionBg">
<div class="toolTitle">
<a href="${h.url_for( controller='workflow', action='index' )}" target="galaxy_main">Manage</a> workflows
</div>
%if t.user:
%for m in t.user.stored_workflow_menu_entries:
<div class="toolTitle">
<a href="${h.url_for( controller='workflow', action='run', id=trans.security.encode_id(m.stored_workflow_id) )}" target="galaxy_main">${m.stored_workflow.name}</a>
</div>
%endfor
%endif
</div>
</div>
%endif
<div class="toolSectionPad"></div>
<div class="toolSectionPad"></div>
<div class="toolSectionTitle" id="title_XXinternalXXworkflow">
<span>Workflow <i>(beta)</i></span>
</div>
<div id="XXinternalXXworkflow" class="toolSectionBody">
<div class="toolSectionBg">
<div class="toolTitle">
<a href="${h.url_for( controller='workflow', action='index' )}" target="galaxy_main">Manage</a> workflows
</div>
%if t.user:
%for m in t.user.stored_workflow_menu_entries:
<div class="toolTitle">
<a href="${h.url_for( controller='workflow', action='run', id=trans.security.encode_id(m.stored_workflow_id) )}" target="galaxy_main">${m.stored_workflow.name}</a>
</div>
%endfor
%endif
</div>
</div>
</div>