Added a really basic error log that gets populated when the wrong username/pass is entered. Also, the username/password prompt for login now emphasizes the fact that it is a bugzilla login.
author |
Atul Varma <avarma@mozilla.com> |
date |
Mon, 26 Apr 2010 17:45:02 -0700 |
parents |
392fd25a6e21 |
children |
|
rev |
line source |
88
|
1 import os
|
|
2 import BaseHTTPServer
|
|
3 import SimpleHTTPServer
|
|
4
|
|
5 PORT = 8000
|
|
6
|
|
7 def run(server_class=BaseHTTPServer.HTTPServer,
|
|
8 handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler,
|
|
9 port=PORT):
|
|
10 server_address = ('', port)
|
|
11 print "Serving files in '%s' on port %d." % (os.getcwd(), port)
|
|
12 httpd = server_class(server_address, handler_class)
|
|
13 httpd.serve_forever()
|
|
14
|
|
15 if __name__ == '__main__':
|
|
16 run()
|