"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/fuglu/plugins/script.py" between
fuglu-0.10.8.tar.gz and fuglu-1.0.0.tar.gz

About: FuGlu is a mail scanning daemon for Postfix written in Python. It acts as a glue application between the MTA and spam checkers and antivirus software.

script.py  (fuglu-0.10.8):script.py  (fuglu-1.0.0)
skipping to change at line 129 skipping to change at line 129
def _debug(self, suspect, message): def _debug(self, suspect, message):
suspect.debug(message) suspect.debug(message)
self.logger.debug(message) self.logger.debug(message)
def exec_script(self, suspect, filename): def exec_script(self, suspect, filename):
action = DUNNO action = DUNNO
message = '' message = ''
debug = lambda message: self._debug(suspect, message) debug = lambda message: self._debug(suspect, message)
info = lambda message: self.logger.info(message) info = lambda message: self.logger.info(message)
warn = lambda message: self.logger.warn(message) warn = lambda message: self.logger.warning(message)
def stop(action=DUNNO, message=''): def stop(action=DUNNO, message=''):
raise Stopped(action, message) raise Stopped(action, message)
scriptenv = dict( scriptenv = dict(
action=action, action=action,
message=message, message=message,
suspect=suspect, suspect=suspect,
debug=debug, debug=debug,
info=info, info=info,
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)