diff -r be27ed110b50 -r d8ac696cc51f buildframework/helium/tools/common/python/scripts/filter_metadatalog.py --- a/buildframework/helium/tools/common/python/scripts/filter_metadatalog.py Wed Oct 28 14:39:48 2009 +0000 +++ b/buildframework/helium/tools/common/python/scripts/filter_metadatalog.py Wed Dec 23 19:29:07 2009 +0200 @@ -36,10 +36,11 @@ -""" Log scanner for filter logs +""" plugin that gets copied to raptor folder so that wehn raptor (SBS) runs it + knows the format of the log files. """ class FilterMetadataLog(filter_interface.Filter): - + """Log scanner for filter logs""" def open(self, raptor_instance): """Open a log file for the various I/O methods to write to.""" self.raptor = raptor_instance @@ -55,7 +56,7 @@ dirname = str(self.raptor.logFileName.Dir()) if dirname and not os.path.isdir(dirname): os.makedirs(dirname) - except Exception, e: + except Exception, e_error: return False return self.scanlog.initialize(self.logFileName) else: @@ -64,10 +65,13 @@ return True def write(self, text): + """write the text to the opened file""" return self.scanlog.write(text) def summary(self): + """write the summary file""" return self.scanlog.summary() def close(self): + """close the log file""" return self.scanlog.close()