def handle_request():
"""
Treat a request, with i18n strings.
"""
# Fetch and return a translated string.
# This is the interesting bit, from a client's point-of-view.
print _('bli'), _('bla'), _('blo')
# Do something else.
time.sleep(random.random())
# A thread class. This would be provided by the web framework,
# normally.
评论列表
文章目录