@staticmethod
def update_version(old_obj, trans_dict, new_obj=None):
    if (new_obj is None):
        new_obj = DBVistrail()
    new_obj = _DBVistrail.update_version(old_obj, trans_dict, new_obj)
    new_obj.update_id_scope()
    if hasattr(old_obj, 'log_filename'):
        new_obj.log_filename = old_obj.log_filename
    if hasattr(old_obj, 'log'):
        new_obj.log = old_obj.log
    return new_obj
@staticmethod
def update_version(old_obj, trans_dict, new_obj=None):
    if (new_obj is None):
        new_obj = DBVistrail()
    new_obj = _DBVistrail.update_version(old_obj, trans_dict, new_obj)
    new_obj.update_id_scope()
    if hasattr(old_obj, 'log_filename'):
        new_obj.log_filename = old_obj.log_filename
    if hasattr(old_obj, 'log'):
        new_obj.log = old_obj.log
    return new_obj