Advertisement
ijontichy

quotes.py

May 22nd, 2012
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. #!/usr/bin/env python3
  2.  
  3. import cgi
  4. import cgitb
  5. cgitb.enable()
  6.  
  7. from src import quotes
  8.  
  9. HTMLSTR = """\
  10. <html>
  11.  <head>
  12.    <title>Quoets</title>
  13.  </head>
  14.  <body>
  15. {0}
  16.  </body>
  17. </html>
  18. """
  19.  
  20. print("Content-type: text/html\n\n")
  21.  
  22. if __name__ == "__main__":
  23.     lolquotes = quotes.QuotesHolder()
  24.     lolquotes.populateFromDir()
  25.  
  26.     print(HTMLSTR.format(lolquotes))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement