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 · 5814 views
    This topic created in 4701 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   ·   5620 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 08:03 · PVG 16:03 · LAX 01:03 · JFK 04:03
    ♥ Do have faith in what you're doing.