Index: gateway_cgi.py =================================================================== --- gateway_cgi.py (revision 1479) +++ gateway_cgi.py (working copy) @@ -71,6 +71,8 @@ if not self.check_visitor(): self.print403() return + elif path == "noindex": + self.print_noindex() elif path == "motd": self.print_motd() elif path == "rss": @@ -184,6 +186,25 @@ cachelist = self.make_recent_cachelist() self.print_index_list(cachelist, "recent") + def print_noindex(self): + """Print no index pages.""" + index_cachelist = CacheList() + recent_cachelist = self.make_recent_cachelist() + cachelist = [] + for x in recent_cachelist: + found = False + for xx in index_cachelist: + if x.datfile == xx.datfile: + found = True + if not found: + c = Cache(x.datfile) + cachelist.append(c) + title = "No Index" + self.header(title) + self.print_paragraph(u"No index threads") + self.print_index_list(cachelist, "noindex") + #end def print_noindex + def print_csv(self, path): """CSV output as API.""" found = re.search(r"^csv/([^/]+)/(.+)", path)