Changeset 99

Show
Ignore:
Timestamp:
10/20/08 13:07:54 (5 years ago)
Author:
samuraraujo
Message:
 
Files:
1 modified

Legend:

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

    r94 r99  
    1414  #default rails method. returns the view index.rhtml. 
    1515  def index     
    16     
    17   end   
    18   #  prints the filter screen 
     16 
     17end 
     18  
     19def resourcefilter 
     20   @resourceset =  Application.get(params[:uri])   
     21   render  :partial => 'subject_view',:layout=>false; 
     22end 
     23#  prints the filter screen 
    1924  def filter     
    2025    @setid=params[:uri] 
     
    4550  # must has been defined before. 
    4651  def update      
    47        puts params[:exp] 
     52    puts params[:exp] 
    4853    #reevaluate the expression and return the set 
    4954    resource = Application.get(params[:uri]) 
     
    8994  #The refresh method return a determined ResourceSet from the SetsPool 
    9095  #This method is called by the Execute method, being passed as a parameter by the interface. 
    91   def refresh(uri,view=:subject_view)    
    92     @resourceset= Application.get(uri).setWithOffset(0)     
     96  def refresh(uri,view=:subject_view,filter=nil)    
     97    @resourceset= Application.get(uri).setWithOffset(0) 
     98 
     99    @filter=filter 
    93100    #render the _window.rhtml view 
    94101    render :partial => view.to_s , :layout=>false