V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Tornado Documentation
http://www.v2ex.com/tornado/
Tornado on GitHub
https://github.com/facebook/tornado/
Tornado Gists
http://tornadogists.org/
zeyexe
V2EX  ›  Tornado

get_argument 方法能不能忽略参数的大小写?

  •  
  •   zeyexe · Sep 5, 2013 · 5692 views
    This topic created in 4630 days ago, the information mentioned may be changed or developed.
    get_argument 方法有什么办法忽略参数的大小写
    1 replies    1970-01-01 08:00:00 +08:00
    siteshen
        1
    siteshen  
       Sep 5, 2013
    可以参考 tornado.web.Requesthandler.get_arguments 函数的实现,可以考虑在 initialize() 里面 把 self.request.arguments 的 key 统一变为大写(或小写)。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2901 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 11:25 · PVG 19:25 · LAX 04:25 · JFK 07:25
    ♥ Do have faith in what you're doing.