예제 #1
0
    def ddd(self):
        # init template_values
        template_values = {}
        
        #self.request.get()
#        rootUser = User(type = tomxu.USER_TYPE_TOMXU,
#                        name = "root",
#                        nickname = "超级用户",
#                        firstActivityTime = "dd",
#                        lastActivityTime = "dd"
#                        )
#        rootUser.desc = "我是超级用户"
#        rootUser.extData = ""
#        
#        rootUser.put()
        
        loginUser = User.getUser("root")
        template_values["loginUser"] = loginUser
        
        return self.forward('template/main.html',template_values)
예제 #2
0
 def execute(self):
     # init template_values
     tvs = {}
     tvs["userList"] = User.getUserList(0,20)
     return self.forward('template/admin/aboutConfig/aboutConfig.html',tvs)