class RegisterHandler(tornado.web.RequestHandler): def __init__(self, application, request): tornado.web.RequestHandler.__init__(self, application, request) self.projectDetailDao = ProjectDetailDao() self.moduleDetailDao = ModuleDetailDao () self.environmentDetailDao = EnvironmentDetailDao() self.classDetailDao = ClassDetailDao() def get(self): projectCodeList = self.projectDetailDao.findList() moduleCodeList = self.moduleDetailDao.findList() classDetailCodeList = self.classDetailDao.findList() self.render("register.html", projectCodeList=projectCodeList, moduleCodeList=moduleCodeList, classDetailCodeList=classDetailCodeList)
def __init__(self, application, request): tornado.web.RequestHandler.__init__(self, application, request) self.projectDetailDao = ProjectDetailDao() self.moduleDetailDao = ModuleDetailDao () self.environmentDetailDao = EnvironmentDetailDao() self.classDetailDao = ClassDetailDao()