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 · 5731 views
    This topic created in 4652 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   ·   3024 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 14:59 · PVG 22:59 · LAX 07:59 · JFK 10:59
    ♥ Do have faith in what you're doing.