# # # patch "TODO" # from [79418178163f83533558e694b952d06230f0c8aa] # to [e608772ab5779f323dddcee683d6c5a826bbf84e] # # patch "viewmtn.py" # from [e4a95861e0d7a5a8f58187818aba0a3a6b1956a5] # to [53942184715b484ff0e4bfc7addca71692b89e81] # ============================================================ --- TODO 79418178163f83533558e694b952d06230f0c8aa +++ TODO e608772ab5779f323dddcee683d6c5a826bbf84e @@ -1,12 +1,9 @@ NEW VERSION NEW VERSION - * Icons should display - * README, Documentation * Fix the RSS date fields * JSON * Highlight -> content_type mapping (works at the moment, somehow) - * show propogates as dotted lines! BUGS: ============================================================ --- viewmtn.py e4a95861e0d7a5a8f58187818aba0a3a6b1956a5 +++ viewmtn.py 53942184715b484ff0e4bfc7addca71692b89e81 @@ -982,6 +982,14 @@ class MimeIcon: else: return web.notfound() +class RobotsTxt: + def GET(self): + web.header('Content-Type', 'text/plain') + print "User-agent: *" + for revision_page in ['tar', 'downloadfile', 'graph']: + for access_method in ['/revision/', '/branch/head/', '/branch/anyhead/']: + print "Disallow:", access_method + revision_page + branch_re = r'' urls = ( r'/', 'Index', #done @@ -1012,6 +1020,7 @@ urls = ( r'/branch/(anyhead)/([A-Za-z]+)/([^/]+)(.*)', 'BranchHead', r'/static/(.*)', 'Static', + r'/robots.txt', 'RobotsTxt', r'/mimeicon/([A-Za-z0-9][a-z0-9\-\+]*)/([A-Za-z0-9][a-z0-9\-\+]*)', 'MimeIcon', )