MCPcopy
hub / github.com/qiwsir/StarterLearningPython / get

Method get

3code/web/handlers/user.py:11–18  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

9class UserHandler(BaseHandler):
10 @tornado.web.authenticated
11 def get(self):
12 #username = self.get_argument("user")
13 username = tornado.escape.json_decode(self.current_user)
14 print username
15 print type(username)
16 user_infos = mrd.select_table(table="users",column="*",condition="username",value=username)
17 print user_infos
18 self.render("user.html", users = user_infos)

Callers 1

jquery.min.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected