<s> from tornado . web import RequestHandler <EOL> import datetime , logging , os <EOL> from tornado import gen <EOL> from Mojo . RequestHandlers . PrettyOutputMixin import UncaughtExceptionMixin <EOL> from Mojo . Auth . models import Session , User <EOL> class MojoRequestHandler ( RequestHandler , UncaughtExceptionMixin ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , application , request , ** kwargs ) : <EOL> thisModule = __import__ ( self . __module__ ) <EOL> mods = self . __module__ . split ( '<STR_LIT:.>' ) <EOL> thisAppName = mods [ mods . index ( '<STR_LIT>' ) + <NUM_LIT:1> ] <EOL> template_path = '<STR_LIT>' % ( thisAppName ) <EOL> self . module_template_path = template_path <EOL> self . application = application <EOL> RequestHandler . __init__ ( self , application , request , ** kwargs ) <EOL> def get_template_path ( self ) : <EOL> return self . module_template_path </s>
