def ListPklFiles(self):
    rootdir = self.GetRoot()
    files = os.listdir(rootdir)
    currtime = time.time()
    pklfiles = []
    for filename in files:
      if re.search('\.pkl$', filename):
        path = os.path.join(rootdir, filename)
        lastmodified = os.path.getmtime(path)
        elapsed_secs = currtime - lastmodified
        elapsed_text = self.ReadableTime(elapsed_secs)
        pklfiles.append((filename, elapsed_secs, elapsed_text))
    pklfiles.sort(key=lambda tuple: tuple[1])
    return pklfiles
Rendering method that can be called by main.py.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/analytics/main.py/StatsPage.ListPklFiles--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/datastore_admin/backup_handler.py/ConfirmRestoreFromBackupHandler.Render