This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tornado.web | |
class route(object): | |
""" | |
decorates RequestHandlers and builds up a list of routables handlers | |
Tech Notes (or "What the *@# is really happening here?") | |
-------------------------------------------------------- | |
Everytime @route('...') is called, we instantiate a new route object which | |
saves off the passed in URI. Then, since it's a decorator, the function is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
import logging | |
import psycopg2 | |
logger = logging.getLogger("duplicates") | |
logger.addHandler(logging.StreamHandler(sys.stderr)) | |