Backwards-incompatible changes:
* RequestHandler.get_error_html() now receives the exception object as
a keyword argument if the error was caused by an uncaught exception.
* Secure cookies are now more secure, but incompatible with cookies
set by Tornado 0.2. To read cookies set by older versions of Tornado,
pass include_name=False to RequestHandler.get_secure_cookie()
* Parameters passed to RequestHandler.get/post() by extraction from
the path now have %-escapes decoded, for consistency with the
processing that was already done with other query parameters.
New features:
* Improved support for running other WSGI applications in a Tornado
server (tested with Django and CherryPy)
* Improved performance on Mac OS X and BSD (kqueue-based IOLoop), and
experimental support for win32
* Rewritten AsyncHTTPClient available as
tornado.httpclient.AsyncHTTPClient2 (this will become the default in a
future release)
* Support for standard .mo files in addition to .csv in the locale module
* Pre-forking support for running multiple Tornado processes at once
(see HTTPServer.start())
* SSL and gzip support in HTTPServer
* reverse_url() function refers to urls from the Application config by
name from templates and RequestHandlers
* RequestHandler.on_connection_close() callback is called when the
client has closed the connection (subject to limitations of the
underlying network stack, any proxies, etc)
* Static files can now be served somewhere other than /static/ via the
static_url_prefix application setting
* URL regexes can now use named groups ("(?P<name>)") to pass
arguments to get()/post() via keyword instead of position
* HTTP header dictionary-like objects now support multiple values for
the same header via the get_all() and add() methods.
* Several new options in the httpclient module, including
prepare_curl_callback and header_callback
* Improved logging configuration in tornado.options.
* UIModule.html_body() can be used to return html to be inserted at
the end of the document body.
Member 的那个 JSON API 应该足够用于制作 Blog 或者其他地方的 personal badge。
1. Translations 太长,而 X 有“交汇(cross)”的意思,而翻译是一种文化的交汇。
2. 首页的 list 是手工维护的。
3. 马上就。
/about
/faq
Are updated with new style. Now looks more like pages.
我这里电信访问 https 居然直接 reset。。。
嗯,一会就改。
话说。。。目前用的是 Google App Engine 自己的 urlize 函数。
欢迎各位推荐比较好的 Python 实现。
嗯,那么关于 URL 规则,我目前想到的:
/api/users/show.json?username=Livid
/api/users/show.json?id=1
/api/nodes/show.json?name=babel
/api/nodes/show.json?id=1
/api/nodes/show.json?all=yes
/api/topics/show.json?id=1
/api/topics/show.json?node_id=1
/api/topics/show.json?node_id=1&page=1
/api/replies/show.json?id=1
/api/replies/show.json?topic_id=1
只看楼主功能上线,但是用到了一个新索引。
现在在等待 GAE 构建索引。
我的建议是,就用 MacPorts 的 Python 及相关模块,世界就清静了。