Changeset 411

Show
Ignore:
Timestamp:
05/04/09 13:36:31 (9 years ago)
Author:
samuraraujo
Message:
 
Location:
Explorator/trunk/app/controllers
Files:
2 modified

Legend:

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

    r406 r411  
    1616  #default rails method. returns the view index.rhtml. 
    1717  def index      
    18      RDFS::Resource.new('<http://sw.nokia.com/id/5865201a-b7ba-47b8-b4a8-1b7efd25cc07/N95_8GB>'). email_solution 
    1918     
    2019  end 
  • Explorator/trunk/app/controllers/repository_controller.rb

    r406 r411  
    4242    session[:disablerepositories] << (params[:title])  
    4343    session[:disablerepositories].uniq! 
     44    session[:triples]=Hash.new 
    4445    # Repository.disable_by_title(params[:title]) 
    4546    #render nothing. 
     
    5152    RDFS::Resource.reset_cache()  
    5253    session[:disablerepositories].delete(params[:title]) 
     54    session[:triples]=Hash.new 
    5355    # Repository.enable_by_title(params[:title]) 
    5456    #render nothing. 
     
    6870      session[:disablerepositories] << (params[:title])  
    6971      session[:disablerepositories].uniq! 
     72  
    7073       
    7174    rescue Exception => e 
     
    8184    end 
    8285    begin  
    83       RDFS::Resource.find_all_predicates     
     86  
    8487      # construct the necessary Ruby Modules and Classes to use the Namespace 
    8588      ObjectManager.construct_classes 
     
    97100      #       render_component :controller => 'message',:action => 'error',:message => e.message ,:layout => false 
    98101    end 
     102    session[:triples]=Hash.new 
    99103    redirect_to :action => 'endpointsform',:message => 'Sparql endpoint added successfully!' ,:messageaction=>'confirmation' 
    100104