|
| 1 | +# SOME DESCRIPTIVE TITLE. |
| 2 | +# Copyright (C) 2010 Pallets |
| 3 | +# This file is distributed under the same license as the Flask package. |
| 4 | +# FIRST AUTHOR <EMAIL@ADDRESS>, 2021. |
| 5 | +# |
| 6 | +#, fuzzy |
| 7 | +msgid "" |
| 8 | +msgstr "" |
| 9 | +"Project-Id-Version: Flask 2.1.x\n" |
| 10 | +"Report-Msgid-Bugs-To: \n" |
| 11 | +"POT-Creation-Date: 2021-05-25 19:31+0800\n" |
| 12 | +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 13 | +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 14 | +" Language-Team: LANGUAGE <[email protected]>\n" |
| 15 | +"MIME-Version: 1.0\n" |
| 16 | +"Content-Type: text/plain; charset=utf-8\n" |
| 17 | +"Content-Transfer-Encoding: 8bit\n" |
| 18 | +"Generated-By: Babel 2.9.1\n" |
| 19 | + |
| 20 | +#: ../../advanced_foreword.rst:2 |
| 21 | +msgid "Foreword for Experienced Programmers" |
| 22 | +msgstr "" |
| 23 | + |
| 24 | +#: ../../advanced_foreword.rst:5 |
| 25 | +msgid "Thread-Locals in Flask" |
| 26 | +msgstr "" |
| 27 | + |
| 28 | +#: ../../advanced_foreword.rst:7 |
| 29 | +msgid "" |
| 30 | +"One of the design decisions in Flask was that simple tasks should be " |
| 31 | +"simple; they should not take a lot of code and yet they should not limit " |
| 32 | +"you. Because of that, Flask has a few design choices that some people " |
| 33 | +"might find surprising or unorthodox. For example, Flask uses thread-local" |
| 34 | +" objects internally so that you don’t have to pass objects around from " |
| 35 | +"function to function within a request in order to stay threadsafe. This " |
| 36 | +"approach is convenient, but requires a valid request context for " |
| 37 | +"dependency injection or when attempting to reuse code which uses a value " |
| 38 | +"pegged to the request. The Flask project is honest about thread-locals, " |
| 39 | +"does not hide them, and calls out in the code and documentation where " |
| 40 | +"they are used." |
| 41 | +msgstr "" |
| 42 | + |
| 43 | +#: ../../advanced_foreword.rst:20 |
| 44 | +msgid "Develop for the Web with Caution" |
| 45 | +msgstr "" |
| 46 | + |
| 47 | +#: ../../advanced_foreword.rst:22 |
| 48 | +msgid "Always keep security in mind when building web applications." |
| 49 | +msgstr "" |
| 50 | + |
| 51 | +#: ../../advanced_foreword.rst:24 |
| 52 | +msgid "" |
| 53 | +"If you write a web application, you are probably allowing users to " |
| 54 | +"register and leave their data on your server. The users are entrusting " |
| 55 | +"you with data. And even if you are the only user that might leave data in" |
| 56 | +" your application, you still want that data to be stored securely." |
| 57 | +msgstr "" |
| 58 | + |
| 59 | +#: ../../advanced_foreword.rst:29 |
| 60 | +msgid "" |
| 61 | +"Unfortunately, there are many ways the security of a web application can " |
| 62 | +"be compromised. Flask protects you against one of the most common " |
| 63 | +"security problems of modern web applications: cross-site scripting (XSS)." |
| 64 | +" Unless you deliberately mark insecure HTML as secure, Flask and the " |
| 65 | +"underlying Jinja2 template engine have you covered. But there are many " |
| 66 | +"more ways to cause security problems." |
| 67 | +msgstr "" |
| 68 | + |
| 69 | +#: ../../advanced_foreword.rst:36 |
| 70 | +msgid "" |
| 71 | +"The documentation will warn you about aspects of web development that " |
| 72 | +"require attention to security. Some of these security concerns are far " |
| 73 | +"more complex than one might think, and we all sometimes underestimate the" |
| 74 | +" likelihood that a vulnerability will be exploited - until a clever " |
| 75 | +"attacker figures out a way to exploit our applications. And don't think " |
| 76 | +"that your application is not important enough to attract an attacker. " |
| 77 | +"Depending on the kind of attack, chances are that automated bots are " |
| 78 | +"probing for ways to fill your database with spam, links to malicious " |
| 79 | +"software, and the like." |
| 80 | +msgstr "" |
| 81 | + |
| 82 | +#: ../../advanced_foreword.rst:45 |
| 83 | +msgid "" |
| 84 | +"Flask is no different from any other framework in that you the developer " |
| 85 | +"must build with caution, watching for exploits when building to your " |
| 86 | +"requirements." |
| 87 | +msgstr "" |
| 88 | + |
0 commit comments