Changeset 377

Show
Ignore:
Timestamp:
03/31/09 15:38:03 (10 years ago)
Author:
samuraraujo
Message:
 
Location:
Explorator/trunk/app/controllers
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • Explorator/trunk/app/controllers/application.rb

    r367 r377  
    1818      session[:application] =  Application.new(session.session_id) 
    1919    end 
     20    Thread.current[:addrepositories]=session[:addrepositories] 
    2021    Thread.current[:disablerepositories]=session[:disablerepositories]     
    2122    Thread.current[:application]=session[:application] 
  • Explorator/trunk/app/controllers/repository_controller.rb

    r367 r377  
    77  #list all adapters registered in the pool. 
    88  @repositories 
    9   def index 
    10      
     9  def index     
    1110    render :layout => false 
    1211  end 
     12  def autoadd 
     13    FinderUtil.find_and_add(params[:uri].gsub('>','').gsub('<','')) 
     14    render :text => '' 
     15  end 
     16  def autodiscovery 
     17     
     18    session[:autodiscovery] = params[:flag]  
     19     
     20    render :text => '' 
     21  end 
     22 
    1323  def limit 
    1424    adapters = ConnectionPool.adapters()