Changeset 158

Show
Ignore:
Timestamp:
04/27/08 23:38:50 (2 years ago)
Author:
omega
Message:

Pourquoi je pense jamais à enlever les infos de debuggage qui servent à rien avant de commiter ?

Location:
zadolbator/lib/zadolbator
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • zadolbator/lib/zadolbator/component.rb

    r154 r158  
    192192      end 
    193193    end 
    194     puts iq 
    195     puts "####" 
    196194    iq.to, iq.from = iq.from, iq.to 
    197195    send(iq) 
  • zadolbator/lib/zadolbator/worker_thread.rb

    r154 r158  
    3030 
    3131    def send_reminder(info) 
    32       puts "SENDING REMINDER #{info.inspect}" 
    3332      e = Storage::Event.find(info[:uid]) 
    3433      @component.log.debug("Sending reminder #{info[:uid]} to #{e.owner.id}") 
     
    3635 
    3736      msg.body = "#{e.datetime} - #{e.title}\n#{e.description}" 
    38       puts msg.inspect 
    3937      @component.send(msg) 
    4038    end 
     
    4341    def fill_occurences(date_start) 
    4442      date_end = date_start + @component.reminder_conf['queue_interval'] 
    45       puts date_end.strftime("%c") 
    4643      @occurs.clear 
    4744      Storage::Event.find(:all, :conditions => {:alarm => date_start..(date_start+@component.reminder_conf['queue_interval']) } ).each { |e| 
     
    6158          if not @occurs.empty? 
    6259            @component.log.debug("First time: #{@occurs.first[:time]}") 
    63             puts "TEST" 
    64             puts @occurs.first[:time].to_s < now.to_s 
    65             puts @occurs.empty? 
    66             puts "BEGIN WHILE" 
    6760            while not @occurs.empty? and @occurs.first[:time] <= now 
    68               puts "*******" 
    6961              send_reminder(@occurs.shift) 
    7062            end 
    71             puts "END WHILE" 
    7263          end 
    7364          fill_occurences(now) if @next_fill_date <= now 
    7465          @current_date = now 
    7566        } 
    76         puts "####" 
    77         puts @component.reminder_conf['check_interval'] 
    7867        sleep(@component.reminder_conf['check_interval']) 
    79         puts "$$$$" 
    8068      end 
    8169    end