#NEWLINE# def main( ) : #NEWLINE# #INDENT# tornado . options . parse_command_line ( ) #NEWLINE# db = motor . MotorClient ( ) [ options . database ] #NEWLINE# version = options . version #NEWLINE# print ( '*******' ) #NEWLINE# print ( '** Mingus Framework starting...' ) #NEWLINE# print ( 'MongoDatabase: {0}' . format ( options . database ) ) #NEWLINE# print ( 'ServerHTTPPort: {0}' . format ( options . port ) ) #NEWLINE# resource = ModelFactory ( db , objects , models , ModelParams ) #NEWLINE# application = tornado . web . Application ( rest_routes ( objects , resource , version ) , debug = True ) #NEWLINE# http_server = tornado . httpserver . HTTPServer ( version ) #NEWLINE# http_server . listen ( options . port ) #NEWLINE# tornado . ioloop . IOLoop . instance ( ) . start ( )