def get_persisted_log(self): """ Returns the log object for this vistrail if available """ log = Log() if isinstance(self.locator, vistrails.core.db.locator.ZIPFileLocator): if self.db_log_filename is not None: log = open_log_from_xml(self.db_log_filename, True) if isinstance(self.locator, vistrails.core.db.locator.DBLocator): connection = self.locator.get_connection() log = open_vt_log_from_db(connection, self.db_id) Log.convert(log) return log
def merge_logs(new_log, log_fname): log = vistrails.db.services.io.merge_logs(new_log, log_fname) Log.convert(log) return log
def open_log(fname, was_appended=False): log = vistrails.db.services.io.open_log_from_xml(fname, was_appended) Log.convert(log) return log