View newtcbs.py
#!/usr/bin/python | |
import sys | |
import logging | |
import psycopg2 | |
logger = logging.getLogger("duplicates") | |
logger.addHandler(logging.StreamHandler(sys.stderr)) |
View tornado_route_decorator.py
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 |