Exemple #1
0
 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
Exemple #2
0
 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
Exemple #3
0
def merge_logs(new_log, log_fname):
    log = vistrails.db.services.io.merge_logs(new_log, log_fname)
    Log.convert(log)
    return log
Exemple #4
0
def open_log(fname, was_appended=False):
    log = vistrails.db.services.io.open_log_from_xml(fname, was_appended)
    Log.convert(log)
    return log