GitHub: Add a name for the index and change the default response. Closes GH-35.

master
Valentin Lorentz 2011-09-01 11:00:59 +00:00
parent 3fa43d5a02
commit 2315ab4c77
1 changed files with 4 additions and 0 deletions

View File

@ -60,6 +60,10 @@ except:
#####################
class GithubCallback(httpserver.SupyHTTPServerCallback):
name = "GitHub announce callback"
defaultResponse = _("""
You shouldn't be there, this subfolder is not for you. Go back to the
index and try out other plugins (if any).""")
def doPost(self, handler, path, form):
if not handler.address_string().endswith('.rs.github.com'):
log.warning("""'%s' tryed to act as a web hook for Github,