Tornado Documentation
http://www.0.51bbc.workers.dev/tornado/
Tornado on GitHub
https://github.com/facebook/tornado/
Tornado Gists
http://tornadogists.org/
zeyexe
V2EX  ›  Tornado

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

  •  
  •   zeyexe · Sep 5, 2013 · 5881 views
    This topic created in 4735 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   ·   5976 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 02:01 · PVG 10:01 · LAX 19:01 · JFK 22:01
    ♥ Do have faith in what you're doing.