예제 #1
0
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)
예제 #2
0
 def __init__(self, application, request):
     tornado.web.RequestHandler.__init__(self, application, request)
     self.projectDetailDao = ProjectDetailDao()
     self.moduleDetailDao = ModuleDetailDao ()
     self.environmentDetailDao = EnvironmentDetailDao()
     self.classDetailDao = ClassDetailDao()