44305363+kraskrom@4056: 44305363+kraskrom@4056: 44305363+kraskrom@4056: 44305363+kraskrom@4056: 44305363+kraskrom@4056: 44305363+kraskrom@4056: 44305363+kraskrom@4056: 44305363+kraskrom@4056: 44305363+kraskrom@4056: 0 and extra[0] != "": 44305363+kraskrom@4056: fFiles = [fl for fl in FileList if extra[0] in fl] 44305363+kraskrom@4056: else: 44305363+kraskrom@4056: fFiles = FileList[:] 44305363+kraskrom@4056: new_range = len(fFiles) 44305363+kraskrom@4056: delta = new_range - visible 44305363+kraskrom@4056: new_position = 0 if delta <= 0 else delta if old_position > delta else old_position 44305363+kraskrom@4056: new_visible = new_range if delta <= 0 else visible 44305363+kraskrom@4056: 44305363+kraskrom@4056: visible_files = [] 44305363+kraskrom@4056: for desc in fFiles[new_position:new_position + new_visible]: 44305363+kraskrom@4056: visible_files.append(desc) 44305363+kraskrom@4056: 44305363+kraskrom@4056: return new_range, new_position, visible_files 44305363+kraskrom@4056: 44305363+kraskrom@4056: 44305363+kraskrom@4056: ]]> 44305363+kraskrom@4056: 44305363+kraskrom@4056: 44305363+kraskrom@4056: 44305363+kraskrom@4056: 44305363+kraskrom@4056: 44305363+kraskrom@4056: 44305363+kraskrom@4056: 44305363+kraskrom@4056: 44305363+kraskrom@4056: 44305363+kraskrom@4056: 44305363+kraskrom@4056: 44305363+kraskrom@4056: 44305363+kraskrom@4056: 44305363+kraskrom@4056: