taint

Crypto forensics for private use
git clone git://git.defalsify.org/taint.git
Info | Log | Files | Refs | LICENSE

result.py (470B)


      1 # standard imports
      2 import logging
      3 
      4 logg = logging.getLogger().getChild(__name__)
      5 
      6 
      7 class Result:
      8 
      9     def __init__(self):
     10         self.handler = []
     11 
     12 
     13     def add_handler(self, result_handler):
     14         self.handlers.append(result_handler)
     15         logg.debug('added handler {}'.format(str(result_handler)))
     16 
     17 
     18     def register(self, account):
     19         for h in self.handlers:
     20             r = h(account)
     21             logg.debug('processed handler {} -> {}'.format(str(h), r))