Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- import cgi
- import cgitb
- cgitb.enable()
- from src import quotes
- HTMLSTR = """\
- <html>
- <head>
- <title>Quoets</title>
- </head>
- <body>
- {0}
- </body>
- </html>
- """
- print("Content-type: text/html\n\n")
- if __name__ == "__main__":
- lolquotes = quotes.QuotesHolder()
- lolquotes.populateFromDir()
- print(HTMLSTR.format(lolquotes))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement