MCPcopy Create free account
hub / github.com/EasyIME/PIME / post

Method post

python/input_methods/chewing/config_tool.py:226–232  ·  view source on GitHub ↗
(self, page_name)

Source from the content-addressed store, hash-verified

224class LoginHandler(BaseHandler):
225
226 def post(self, page_name):
227 token = self.get_argument("token", "")
228 if token == self.settings["access_token"]:
229 self.set_cookie(COOKIE_ID, token)
230 if page_name != "user_phrase_editor":
231 page_name = "config_tool"
232 self.redirect("/{}.html".format(page_name))
233
234
235class ConfigApp(tornado.web.Application):

Callers

nothing calls this directly

Calls 4

get_argumentMethod · 0.80
redirectMethod · 0.80
set_cookieMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected