plugger.py
changeset 481 28d47c1df46f
parent 480 746b2e02f6fb
child 483 bc26c42d2eec
equal deleted inserted replaced
480:746b2e02f6fb 481:28d47c1df46f
  1706             #data_log.append((debug_tick, value))
  1706             #data_log.append((debug_tick, value))
  1707             for weakcallable,(args,kwargs) in WeakCallableDict.iteritems():
  1707             for weakcallable,(args,kwargs) in WeakCallableDict.iteritems():
  1708                 #print weakcallable, value, args, kwargs
  1708                 #print weakcallable, value, args, kwargs
  1709                 function = getattr(weakcallable, function_name, None)
  1709                 function = getattr(weakcallable, function_name, None)
  1710                 if function is not None:
  1710                 if function is not None:
  1711                     if status == "Forced":
  1711                     if status == "Forced" and cargs[1] == fvalue:
  1712                         function(*(cargs + (True,) + args), **kwargs)
  1712                         function(*(cargs + (True,) + args), **kwargs)
  1713                     else:
  1713                     else:
  1714                         function(*(cargs + args), **kwargs)
  1714                         function(*(cargs + args), **kwargs)
  1715                 # This will block thread if more than one call is waiting
  1715                 # This will block thread if more than one call is waiting
  1716 
  1716