Пример #1
0
 def fromFilename(cls, filepath, savedTimeZone, progressCallback=None):
     # Open log file and read in data
     f = codecs.open(filepath, 'r', encoding='utf-8')
     with f as logfile:
         unprocessed_str = logfile.read()
     
         # Process for log objects
         processed_log, logSaveTime =  PreProcessLog.processLog(unprocessed_str, savedTimeZone, progressCallback)
         return cls(processed_log, logSaveTime)
     pass
Пример #2
0
 def fromString(cls, unprocessed_str, savedTimeZone, progressCallback=None):
     processed_log, logSaveTime = PreProcessLog.processLog(unprocessed_str, savedTimeZone)
     return cls(processed_log, logSaveTime)