├── .gitignore ├── Flask-Admin-cn └── docs │ ├── Makefile │ ├── _static │ ├── flask-admin.png │ ├── logo.png │ └── logo_huge.png │ ├── _templates │ ├── sidebarintro.html │ └── toc.html │ ├── _themes │ ├── .gitignore │ ├── LICENSE │ ├── README │ ├── flask │ │ ├── layout.html │ │ ├── relations.html │ │ ├── static │ │ │ └── flasky.css_t │ │ └── theme.conf │ ├── flask_small │ │ ├── layout.html │ │ ├── static │ │ │ └── flasky.css_t │ │ └── theme.conf │ └── flask_theme_support.py │ ├── adding_a_new_model_backend.rst │ ├── advanced.rst │ ├── api │ ├── index.rst │ ├── mod_actions.rst │ ├── mod_base.rst │ ├── mod_contrib_fileadmin.rst │ ├── mod_contrib_mongoengine.rst │ ├── mod_contrib_mongoengine_fields.rst │ ├── mod_contrib_peewee.rst │ ├── mod_contrib_pymongo.rst │ ├── mod_contrib_sqla.rst │ ├── mod_form.rst │ ├── mod_form_fields.rst │ ├── mod_form_rules.rst │ ├── mod_form_upload.rst │ ├── mod_helpers.rst │ ├── mod_model.rst │ ├── mod_model_template.rst │ └── mod_tools.rst │ ├── changelog.rst │ ├── conf.py │ ├── favicon.ico │ ├── index.rst │ ├── introduction.rst │ ├── locale │ └── zh_CN │ │ └── LC_MESSAGES │ │ ├── adding_a_new_model_backend.po │ │ ├── advanced.po │ │ ├── api.po │ │ ├── changelog.po │ │ ├── index.po │ │ └── introduction.po │ └── requirements.txt ├── Flask-Babel-cn ├── docs │ ├── Makefile │ ├── _static │ │ └── flask-babel.png │ ├── _themes │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README │ │ ├── flask │ │ │ ├── layout.html │ │ │ ├── relations.html │ │ │ ├── static │ │ │ │ └── flasky.css_t │ │ │ └── theme.conf │ │ ├── flask_small │ │ │ ├── layout.html │ │ │ ├── static │ │ │ │ └── flasky.css_t │ │ │ └── theme.conf │ │ └── flask_theme_support.py │ ├── conf.py │ ├── index.rst │ └── make.bat └── docs_release │ ├── Makefile │ ├── _static │ └── flask-babel.png │ ├── _themes │ ├── .gitignore │ ├── LICENSE │ ├── README │ ├── flask │ │ ├── layout.html │ │ ├── relations.html │ │ ├── static │ │ │ └── flasky.css_t │ │ └── theme.conf │ ├── flask_small │ │ ├── layout.html │ │ ├── static │ │ │ └── flasky.css_t │ │ └── theme.conf │ └── flask_theme_support.py │ ├── conf.py │ ├── index.rst │ └── make.bat ├── Flask-Login-cn ├── docs │ ├── Makefile │ ├── _build │ │ ├── doctrees │ │ │ ├── environment.pickle │ │ │ └── index.doctree │ │ └── html │ │ │ ├── .buildinfo │ │ │ ├── _modules │ │ │ ├── flask │ │ │ │ └── ext │ │ │ │ │ └── login.html │ │ │ └── index.html │ │ │ ├── _sources │ │ │ └── index.txt │ │ │ ├── _static │ │ │ ├── ajax-loader.gif │ │ │ ├── basic.css │ │ │ ├── comment-bright.png │ │ │ ├── comment-close.png │ │ │ ├── comment.png │ │ │ ├── doctools.js │ │ │ ├── down-pressed.png │ │ │ ├── down.png │ │ │ ├── file.png │ │ │ ├── flasky.css │ │ │ ├── jquery.js │ │ │ ├── minus.png │ │ │ ├── plus.png │ │ │ ├── pygments.css │ │ │ ├── searchtools.js │ │ │ ├── underscore.js │ │ │ ├── up-pressed.png │ │ │ ├── up.png │ │ │ └── websupport.js │ │ │ ├── genindex.html │ │ │ ├── index.html │ │ │ ├── objects.inv │ │ │ ├── search.html │ │ │ └── searchindex.js │ ├── _themes │ │ ├── LICENSE │ │ ├── README │ │ ├── flask │ │ │ ├── layout.html │ │ │ ├── relations.html │ │ │ ├── static │ │ │ │ ├── flasky.css_t │ │ │ │ └── small_flask.css │ │ │ └── theme.conf │ │ ├── flask_small │ │ │ ├── layout.html │ │ │ ├── static │ │ │ │ └── flasky.css_t │ │ │ └── theme.conf │ │ ├── flask_theme_support.py │ │ └── flask_theme_support.pyc │ ├── conf.py │ ├── index.rst │ └── make.bat └── docs_release │ ├── Makefile │ ├── _build │ ├── doctrees │ │ ├── environment.pickle │ │ └── index.doctree │ └── html │ │ ├── .buildinfo │ │ ├── _modules │ │ ├── flask │ │ │ └── ext │ │ │ │ └── login.html │ │ └── index.html │ │ ├── _sources │ │ └── index.txt │ │ ├── _static │ │ ├── ajax-loader.gif │ │ ├── basic.css │ │ ├── comment-bright.png │ │ ├── comment-close.png │ │ ├── comment.png │ │ ├── doctools.js │ │ ├── down-pressed.png │ │ ├── down.png │ │ ├── file.png │ │ ├── flasky.css │ │ ├── jquery.js │ │ ├── minus.png │ │ ├── plus.png │ │ ├── pygments.css │ │ ├── searchtools.js │ │ ├── underscore.js │ │ ├── up-pressed.png │ │ ├── up.png │ │ └── websupport.js │ │ ├── genindex.html │ │ ├── index.html │ │ ├── objects.inv │ │ ├── search.html │ │ └── searchindex.js │ ├── _themes │ ├── LICENSE │ ├── README │ ├── flask │ │ ├── layout.html │ │ ├── relations.html │ │ ├── static │ │ │ ├── flasky.css_t │ │ │ └── small_flask.css │ │ └── theme.conf │ ├── flask_small │ │ ├── layout.html │ │ ├── static │ │ │ └── flasky.css_t │ │ └── theme.conf │ ├── flask_theme_support.py │ └── flask_theme_support.pyc │ ├── conf.py │ ├── index.rst │ └── make.bat ├── Flask-Mail-cn ├── docs │ ├── Makefile │ ├── _static │ │ ├── flask-mail.jpg │ │ └── flask-mail.png │ ├── _themes │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README │ │ ├── flask │ │ │ ├── layout.html │ │ │ ├── relations.html │ │ │ ├── static │ │ │ │ └── flasky.css_t │ │ │ └── theme.conf │ │ ├── flask_small │ │ │ ├── layout.html │ │ │ ├── static │ │ │ │ └── flasky.css_t │ │ │ └── theme.conf │ │ └── flask_theme_support.py │ ├── changelog.rst │ ├── conf.py │ ├── index.rst │ └── make.bat └── docs_release │ ├── Makefile │ ├── _static │ ├── flask-mail.jpg │ └── flask-mail.png │ ├── _themes │ ├── .gitignore │ ├── LICENSE │ ├── README │ ├── flask │ │ ├── layout.html │ │ ├── relations.html │ │ ├── static │ │ │ └── flasky.css_t │ │ └── theme.conf │ ├── flask_small │ │ ├── layout.html │ │ ├── static │ │ │ └── flasky.css_t │ │ └── theme.conf │ └── flask_theme_support.py │ ├── changelog.rst │ ├── conf.py │ ├── index.rst │ └── make.bat ├── Flask-RESTful-cn ├── docs │ ├── Makefile │ ├── _static │ │ ├── flask-restful-small.png │ │ └── flask-restful.png │ ├── _templates │ │ ├── sidebarintro.html │ │ └── sidebarlogo.html │ ├── _themes │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README │ │ ├── flask │ │ │ ├── layout.html │ │ │ ├── relations.html │ │ │ ├── static │ │ │ │ └── flasky.css_t │ │ │ └── theme.conf │ │ ├── flask_small │ │ │ ├── layout.html │ │ │ ├── static │ │ │ │ └── flasky.css_t │ │ │ └── theme.conf │ │ └── flask_theme_support.py │ ├── api.rst │ ├── conf.py │ ├── contents.rst.inc │ ├── extending.rst │ ├── fields.rst │ ├── index.rst │ ├── installation.rst │ ├── intermediate-usage.rst │ ├── make.bat │ ├── quickstart.rst │ ├── reqparse.rst │ └── testing.rst └── docs_release │ ├── Makefile │ ├── _static │ ├── flask-restful-small.png │ └── flask-restful.png │ ├── _templates │ ├── sidebarintro.html │ └── sidebarlogo.html │ ├── _themes │ ├── .gitignore │ ├── LICENSE │ ├── README │ ├── flask │ │ ├── layout.html │ │ ├── relations.html │ │ ├── static │ │ │ └── flasky.css_t │ │ └── theme.conf │ ├── flask_small │ │ ├── layout.html │ │ ├── static │ │ │ └── flasky.css_t │ │ └── theme.conf │ └── flask_theme_support.py │ ├── api.rst │ ├── conf.py │ ├── contents.rst.inc │ ├── extending.rst │ ├── fields.rst │ ├── index.rst │ ├── installation.rst │ ├── intermediate-usage.rst │ ├── make.bat │ ├── quickstart.rst │ ├── reqparse.rst │ └── testing.rst ├── Flask-SQLAlchemy-cn ├── docs │ ├── CHANGES │ ├── Makefile │ ├── _static │ │ ├── flask-sqlalchemy-small.png │ │ └── flask-sqlalchemy.png │ ├── _templates │ │ ├── sidebarintro.html │ │ └── sidebarlogo.html │ ├── _themes │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README │ │ ├── flask │ │ │ ├── layout.html │ │ │ ├── relations.html │ │ │ ├── static │ │ │ │ └── flasky.css_t │ │ │ └── theme.conf │ │ ├── flask_small │ │ │ ├── layout.html │ │ │ ├── static │ │ │ │ └── flasky.css_t │ │ │ └── theme.conf │ │ └── flask_theme_support.py │ ├── api.rst │ ├── binds.rst │ ├── changelog.rst │ ├── conf.py │ ├── config.rst │ ├── contents.rst.inc │ ├── contexts.rst │ ├── flaskstyle.sty │ ├── index.rst │ ├── logo.pdf │ ├── make.bat │ ├── models.rst │ ├── queries.rst │ ├── quickstart.rst │ └── signals.rst └── docs_release │ ├── CHANGES │ ├── Makefile │ ├── _static │ ├── flask-sqlalchemy-small.png │ └── flask-sqlalchemy.png │ ├── _templates │ ├── sidebarintro.html │ └── sidebarlogo.html │ ├── _themes │ ├── .gitignore │ ├── LICENSE │ ├── README │ ├── flask │ │ ├── layout.html │ │ ├── relations.html │ │ ├── static │ │ │ └── flasky.css_t │ │ └── theme.conf │ ├── flask_small │ │ ├── layout.html │ │ ├── static │ │ │ └── flasky.css_t │ │ └── theme.conf │ └── flask_theme_support.py │ ├── api.rst │ ├── binds.rst │ ├── changelog.rst │ ├── conf.py │ ├── config.rst │ ├── contents.rst.inc │ ├── contexts.rst │ ├── flaskstyle.sty │ ├── index.rst │ ├── logo.pdf │ ├── make.bat │ ├── models.rst │ ├── queries.rst │ ├── quickstart.rst │ └── signals.rst ├── Flask-Script-cn ├── Makefile ├── _static │ ├── flask-script.png │ └── index.html ├── _themes │ ├── README │ ├── flask │ │ ├── static │ │ │ └── flasky.css_t │ │ └── theme.conf │ ├── flask_small │ │ ├── layout.html │ │ ├── static │ │ │ └── flasky.css_t │ │ └── theme.conf │ └── flask_theme_support.py ├── conf.py ├── index.rst └── make.bat ├── Flask-Testing-cn ├── docs │ ├── Makefile │ ├── _build │ │ ├── doctrees │ │ │ ├── environment.pickle │ │ │ └── index.doctree │ │ └── html │ │ │ ├── .buildinfo │ │ │ ├── _sources │ │ │ └── index.txt │ │ │ ├── _static │ │ │ ├── ajax-loader.gif │ │ │ ├── basic.css │ │ │ ├── comment-bright.png │ │ │ ├── comment-close.png │ │ │ ├── comment.png │ │ │ ├── doctools.js │ │ │ ├── down-pressed.png │ │ │ ├── down.png │ │ │ ├── file.png │ │ │ ├── flask-testing.png │ │ │ ├── flasky.css │ │ │ ├── jquery.js │ │ │ ├── minus.png │ │ │ ├── plus.png │ │ │ ├── pygments.css │ │ │ ├── searchtools.js │ │ │ ├── underscore.js │ │ │ ├── up-pressed.png │ │ │ ├── up.png │ │ │ └── websupport.js │ │ │ ├── genindex.html │ │ │ ├── index.html │ │ │ ├── objects.inv │ │ │ ├── py-modindex.html │ │ │ ├── search.html │ │ │ └── searchindex.js │ ├── _static │ │ └── flask-testing.png │ ├── _themes │ │ ├── README │ │ ├── flask │ │ │ ├── static │ │ │ │ └── flasky.css_t │ │ │ └── theme.conf │ │ ├── flask_small │ │ │ ├── layout.html │ │ │ ├── static │ │ │ │ └── flasky.css_t │ │ │ └── theme.conf │ │ ├── flask_theme_support.py │ │ └── flask_theme_support.pyc │ ├── conf.py │ ├── index.rst │ └── make.bat └── docs_release │ ├── Makefile │ ├── _build │ ├── doctrees │ │ ├── environment.pickle │ │ └── index.doctree │ └── html │ │ ├── .buildinfo │ │ ├── _sources │ │ └── index.txt │ │ ├── _static │ │ ├── ajax-loader.gif │ │ ├── basic.css │ │ ├── comment-bright.png │ │ ├── comment-close.png │ │ ├── comment.png │ │ ├── doctools.js │ │ ├── down-pressed.png │ │ ├── down.png │ │ ├── file.png │ │ ├── flask-testing.png │ │ ├── flasky.css │ │ ├── jquery.js │ │ ├── minus.png │ │ ├── plus.png │ │ ├── pygments.css │ │ ├── searchtools.js │ │ ├── underscore.js │ │ ├── up-pressed.png │ │ ├── up.png │ │ └── websupport.js │ │ ├── genindex.html │ │ ├── index.html │ │ ├── objects.inv │ │ ├── py-modindex.html │ │ ├── search.html │ │ └── searchindex.js │ ├── _static │ └── flask-testing.png │ ├── _themes │ ├── README │ ├── flask │ │ ├── static │ │ │ └── flasky.css_t │ │ └── theme.conf │ ├── flask_small │ │ ├── layout.html │ │ ├── static │ │ │ └── flasky.css_t │ │ └── theme.conf │ ├── flask_theme_support.py │ └── flask_theme_support.pyc │ ├── conf.py │ ├── index.rst │ └── make.bat ├── Flask-WTF-cn ├── docs │ ├── AUTHORS │ ├── LICENSE │ ├── Makefile │ ├── _static │ │ └── flask-wtf.png │ ├── _templates │ │ ├── brand.html │ │ └── useful-links.html │ ├── _themes │ │ ├── LICENSE │ │ ├── README │ │ ├── flask │ │ │ ├── layout.html │ │ │ ├── relations.html │ │ │ ├── static │ │ │ │ └── flasky.css_t │ │ │ └── theme.conf │ │ ├── flask_theme_support.py │ │ └── flask_theme_support.pyc │ ├── api.rst │ ├── authors.rst │ ├── changelog.rst │ ├── conf.py │ ├── config.rst │ ├── csrf.rst │ ├── form.rst │ ├── index.rst │ ├── install.rst │ ├── license.rst │ ├── make.bat │ ├── quickstart.rst │ └── upgrade.rst └── docs_release │ ├── AUTHORS │ ├── LICENSE │ ├── Makefile │ ├── _static │ └── flask-wtf.png │ ├── _templates │ ├── brand.html │ └── useful-links.html │ ├── _themes │ ├── LICENSE │ ├── README │ ├── flask │ │ ├── layout.html │ │ ├── relations.html │ │ ├── static │ │ │ └── flasky.css_t │ │ └── theme.conf │ ├── flask_theme_support.py │ └── flask_theme_support.pyc │ ├── api.rst │ ├── authors.rst │ ├── changelog.rst │ ├── conf.py │ ├── config.rst │ ├── csrf.rst │ ├── form.rst │ ├── index.rst │ ├── install.rst │ ├── license.rst │ ├── make.bat │ ├── quickstart.rst │ └── upgrade.rst ├── Flask-cache-cn ├── .gitignore ├── docs │ ├── Makefile │ ├── _static │ │ └── flask-cache.png │ ├── _themes │ │ ├── README │ │ ├── flask │ │ │ ├── static │ │ │ │ └── flasky.css_t │ │ │ └── theme.conf │ │ ├── flask_small │ │ │ ├── layout.html │ │ │ ├── static │ │ │ │ └── flasky.css_t │ │ │ └── theme.conf │ │ └── flask_theme_support.py │ ├── conf.py │ ├── index.rst │ └── make.bat └── docs_release │ ├── Makefile │ ├── _static │ └── flask-cache.png │ ├── _themes │ ├── README │ ├── flask │ │ ├── static │ │ │ └── flasky.css_t │ │ └── theme.conf │ ├── flask_small │ │ ├── layout.html │ │ ├── static │ │ │ └── flasky.css_t │ │ └── theme.conf │ └── flask_theme_support.py │ ├── conf.py │ ├── index.rst │ └── make.bat ├── Flask-dashed-cn ├── .buildinfo ├── README.html ├── _images │ ├── screen-edit.png │ └── screen.png ├── _modules │ ├── admin.html │ ├── ext │ │ └── sqlalchemy.html │ └── index.html ├── _sources │ ├── README.txt │ ├── api.txt │ └── index.txt ├── _static │ ├── ajax-loader.gif │ ├── basic.css │ ├── comment-bright.png │ ├── comment-close.png │ ├── comment.png │ ├── doctools.js │ ├── down-pressed.png │ ├── down.png │ ├── favicon.ico │ ├── file.png │ ├── flasky.css │ ├── jquery.js │ ├── minus.png │ ├── plus.png │ ├── pygments.css │ ├── screen-edit.png │ ├── screen.png │ ├── searchtools.js │ ├── underscore.js │ ├── up-pressed.png │ ├── up.png │ └── websupport.js ├── api.html ├── genindex.html ├── index.html ├── objects.inv ├── search.html └── searchindex.js ├── Flask-debugtoolbar-cn ├── docs │ ├── Makefile │ ├── _static │ │ ├── .gitignore │ │ ├── example.gif │ │ ├── screenshot-config-panel.png │ │ ├── screenshot-headers-panel.png │ │ ├── screenshot-logger-panel.png │ │ ├── screenshot-profiler-panel.png │ │ ├── screenshot-request-vars-panel.png │ │ ├── screenshot-sqlalchemy-panel.png │ │ ├── screenshot-template-panel.png │ │ └── screenshot-time-panel.png │ ├── _templates │ │ └── .gitignore │ ├── _themes │ │ ├── LICENSE │ │ ├── README │ │ ├── flask │ │ │ ├── layout.html │ │ │ ├── relations.html │ │ │ ├── static │ │ │ │ ├── flasky.css_t │ │ │ │ └── small_flask.css │ │ │ └── theme.conf │ │ ├── flask_small │ │ │ ├── layout.html │ │ │ ├── static │ │ │ │ └── flasky.css_t │ │ │ └── theme.conf │ │ └── flask_theme_support.py │ ├── conf.py │ ├── index.rst │ └── panels.rst └── docs_release │ ├── Makefile │ ├── _static │ ├── .gitignore │ ├── example.gif │ ├── screenshot-config-panel.png │ ├── screenshot-headers-panel.png │ ├── screenshot-logger-panel.png │ ├── screenshot-profiler-panel.png │ ├── screenshot-request-vars-panel.png │ ├── screenshot-sqlalchemy-panel.png │ ├── screenshot-template-panel.png │ └── screenshot-time-panel.png │ ├── _templates │ └── .gitignore │ ├── _themes │ ├── LICENSE │ ├── README │ ├── flask │ │ ├── layout.html │ │ ├── relations.html │ │ ├── static │ │ │ ├── flasky.css_t │ │ │ └── small_flask.css │ │ └── theme.conf │ ├── flask_small │ │ ├── layout.html │ │ ├── static │ │ │ └── flasky.css_t │ │ └── theme.conf │ ├── flask_theme_support.py │ └── flask_theme_support.pyc │ ├── conf.py │ ├── index.rst │ └── panels.rst ├── Flask-exceptional-cn ├── .buildinfo ├── _sources │ └── index.txt ├── _static │ ├── ajax-loader.gif │ ├── basic.css │ ├── comment-bright.png │ ├── comment-close.png │ ├── comment.png │ ├── doctools.js │ ├── down-pressed.png │ ├── down.png │ ├── file.png │ ├── flask-exceptional.png │ ├── flasky.css │ ├── jquery.js │ ├── minus.png │ ├── plus.png │ ├── pygments.css │ ├── searchtools.js │ ├── underscore.js │ ├── up-pressed.png │ ├── up.png │ └── websupport.js ├── genindex.html ├── index.html ├── objects.inv ├── py-modindex.html ├── search.html └── searchindex.js ├── Flask-pymongo-cn ├── .buildinfo ├── docs │ ├── Makefile │ ├── _themes │ │ ├── LICENSE │ │ ├── README │ │ ├── flask_small │ │ │ ├── layout.html │ │ │ ├── static │ │ │ │ └── flasky.css_t │ │ │ └── theme.conf │ │ └── flask_theme_support.py │ ├── conf.py │ ├── index.rst │ └── requirements.txt └── docs_release │ ├── Makefile │ ├── _themes │ ├── README │ ├── flask │ │ ├── static │ │ │ └── flasky.css_t │ │ └── theme.conf │ ├── flask_small │ │ ├── layout.html │ │ ├── static │ │ │ └── flasky.css_t │ │ └── theme.conf │ └── flask_theme_support.py │ ├── conf.py │ ├── index.rst │ └── requirements.txt └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | *.swp 2 | *.swo 3 | *.pyc 4 | *.pyo 5 | *.mo 6 | *.pot 7 | _build 8 | make.bat 9 | venv* 10 | __pycache__ 11 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/_static/flask-admin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Admin-cn/docs/_static/flask-admin.png -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/_static/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Admin-cn/docs/_static/logo.png -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/_static/logo_huge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Admin-cn/docs/_static/logo_huge.png -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/_templates/sidebarintro.html: -------------------------------------------------------------------------------- 1 |

Useful Links

2 | 7 | 8 | Fork me on GitHub 10 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/_templates/toc.html: -------------------------------------------------------------------------------- 1 | {%- if display_toc %} 2 |

{{ _('Table Of Contents') }}

3 | {{ toc }} 4 | {%- endif %} 5 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/_themes/.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *.pyo 3 | .DS_Store 4 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/_themes/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 by Armin Ronacher. 2 | 3 | Some rights reserved. 4 | 5 | Redistribution and use in source and binary forms of the theme, with or 6 | without modification, are permitted provided that the following conditions 7 | are met: 8 | 9 | * Redistributions of source code must retain the above copyright 10 | notice, this list of conditions and the following disclaimer. 11 | 12 | * Redistributions in binary form must reproduce the above 13 | copyright notice, this list of conditions and the following 14 | disclaimer in the documentation and/or other materials provided 15 | with the distribution. 16 | 17 | * The names of the contributors may not be used to endorse or 18 | promote products derived from this software without specific 19 | prior written permission. 20 | 21 | We kindly ask you to only use these themes in an unmodified manner just 22 | for Flask and Flask-related products, not for unrelated projects. If you 23 | like the visual style and want to use it for your own projects, please 24 | consider making some larger changes to the themes (such as changing 25 | font faces, sizes, colors or margins). 26 | 27 | THIS THEME IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 28 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 29 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 30 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 31 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 32 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 33 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 34 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 35 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 36 | ARISING IN ANY WAY OUT OF THE USE OF THIS THEME, EVEN IF ADVISED OF THE 37 | POSSIBILITY OF SUCH DAMAGE. 38 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/_themes/README: -------------------------------------------------------------------------------- 1 | Flask Sphinx Styles 2 | =================== 3 | 4 | This repository contains sphinx styles for Flask and Flask related 5 | projects. To use this style in your Sphinx documentation, follow 6 | this guide: 7 | 8 | 1. put this folder as _themes into your docs folder. Alternatively 9 | you can also use git submodules to check out the contents there. 10 | 2. add this to your conf.py: 11 | 12 | sys.path.append(os.path.abspath('_themes')) 13 | html_theme_path = ['_themes'] 14 | html_theme = 'flask' 15 | 16 | The following themes exist: 17 | 18 | - 'flask' - the standard flask documentation theme for large 19 | projects 20 | - 'flask_small' - small one-page theme. Intended to be used by 21 | very small addon libraries for flask. 22 | 23 | The following options exist for the flask_small theme: 24 | 25 | [options] 26 | index_logo = '' filename of a picture in _static 27 | to be used as replacement for the 28 | h1 in the index.rst file. 29 | index_logo_height = 120px height of the index logo 30 | github_fork = '' repository name on github for the 31 | "fork me" badge 32 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/_themes/flask/layout.html: -------------------------------------------------------------------------------- 1 | {%- extends "basic/layout.html" %} 2 | {%- block extrahead %} 3 | {{ super() }} 4 | {% if theme_touch_icon %} 5 | 6 | {% endif %} 7 | 8 | {% endblock %} 9 | {%- block relbar2 %}{% endblock %} 10 | {% block header %} 11 | {{ super() }} 12 | {% if pagename == 'index' %} 13 |
14 | {% endif %} 15 | {% endblock %} 16 | {%- block footer %} 17 | 21 | {% if pagename == 'index' %} 22 |
23 | {% endif %} 24 | {%- endblock %} 25 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/_themes/flask/relations.html: -------------------------------------------------------------------------------- 1 |

Related Topics

2 | 20 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/_themes/flask/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | pygments_style = flask_theme_support.FlaskyStyle 5 | 6 | [options] 7 | index_logo = 'flask-admin.png' 8 | index_logo_height = 140px 9 | touch_icon = 10 | github_fork = 'flask-admin/flask-admin' -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/_themes/flask_small/layout.html: -------------------------------------------------------------------------------- 1 | {% extends "basic/layout.html" %} 2 | {% block header %} 3 | {{ super() }} 4 | {% if pagename == 'index' %} 5 |
6 | {% endif %} 7 | {% endblock %} 8 | {% block footer %} 9 | {% if pagename == 'index' %} 10 |
11 | {% endif %} 12 | {% endblock %} 13 | {# do not display relbars #} 14 | {% block relbar1 %}{% endblock %} 15 | {% block relbar2 %} 16 | {% if theme_github_fork %} 17 | Fork me on GitHub 19 | {% endif %} 20 | {% endblock %} 21 | {% block sidebar1 %}{% endblock %} 22 | {% block sidebar2 %}{% endblock %} 23 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/_themes/flask_small/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | nosidebar = true 5 | pygments_style = flask_theme_support.FlaskyStyle 6 | 7 | [options] 8 | index_logo = '' 9 | index_logo_height = 120px 10 | github_fork = '' 11 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/api/index.rst: -------------------------------------------------------------------------------- 1 | API 2 | === 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | mod_base 8 | mod_helpers 9 | mod_model 10 | mod_form 11 | mod_form_rules 12 | mod_form_fields 13 | mod_form_upload 14 | mod_tools 15 | mod_actions 16 | 17 | mod_contrib_sqla 18 | mod_contrib_mongoengine 19 | mod_contrib_mongoengine_fields 20 | mod_contrib_peewee 21 | mod_contrib_pymongo 22 | mod_contrib_fileadmin 23 | 24 | mod_model_template 25 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/api/mod_actions.rst: -------------------------------------------------------------------------------- 1 | ``flask_admin.actions`` 2 | ======================= 3 | 4 | .. automodule:: flask_admin.actions 5 | 6 | .. autofunction:: action 7 | 8 | .. autoclass:: ActionsMixin 9 | :members: 10 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/api/mod_base.rst: -------------------------------------------------------------------------------- 1 | ``flask_admin.base`` 2 | ==================== 3 | 4 | .. automodule:: flask_admin.base 5 | 6 | Base View 7 | --------- 8 | 9 | .. autofunction:: expose 10 | .. autofunction:: expose_plugview 11 | 12 | .. autoclass:: BaseView 13 | :members: 14 | 15 | Default view 16 | ------------ 17 | 18 | .. autoclass:: AdminIndexView 19 | :members: 20 | 21 | Admin 22 | ----- 23 | 24 | .. autoclass:: Admin 25 | :members: 26 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/api/mod_contrib_fileadmin.rst: -------------------------------------------------------------------------------- 1 | ``flask_admin.contrib.fileadmin`` 2 | ================================= 3 | 4 | .. automodule:: flask_admin.contrib.fileadmin 5 | 6 | .. autoclass:: FileAdmin 7 | :members: 8 | :exclude-members: can_upload, can_delete, can_delete_dirs, can_mkdir, can_rename, 9 | allowed_extensions, list_template, upload_template, mkdir_template, 10 | rename_template, editable_extensions, edit_templat 11 | 12 | .. autoattribute:: can_upload 13 | .. autoattribute:: can_delete 14 | .. autoattribute:: can_delete_dirs 15 | .. autoattribute:: can_mkdir 16 | .. autoattribute:: can_rename 17 | .. autoattribute:: allowed_extensions 18 | .. autoattribute:: editable_extensions 19 | .. autoattribute:: list_template 20 | .. autoattribute:: upload_template 21 | .. autoattribute:: mkdir_template 22 | .. autoattribute:: rename_template 23 | .. autoattribute:: edit_template 24 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/api/mod_contrib_mongoengine.rst: -------------------------------------------------------------------------------- 1 | ``flask_admin.contrib.mongoengine`` 2 | =================================== 3 | 4 | MongoEngine model backend implementation. 5 | 6 | .. automodule:: flask_admin.contrib.mongoengine 7 | 8 | .. autoclass:: ModelView 9 | :members: 10 | :inherited-members: 11 | :exclude-members: column_filters, column_type_formatters, 12 | filter_converter, model_form_converter 13 | allowed_search_types, form_subdocuments 14 | 15 | Class inherits configuration options from :class:`~flask_admin.model.BaseModelView` and they're not displayed here. 16 | 17 | .. autoattribute:: column_filters 18 | .. autoattribute:: column_type_formatters 19 | .. autoattribute:: filter_converter 20 | .. autoattribute:: model_form_converter 21 | .. autoattribute:: allowed_search_types 22 | .. autoattribute:: form_subdocuments 23 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/api/mod_contrib_mongoengine_fields.rst: -------------------------------------------------------------------------------- 1 | ``flask_admin.contrib.mongoengine.fields`` 2 | ========================================== 3 | 4 | .. automodule:: flask_admin.contrib.mongoengine.fields 5 | 6 | .. autoclass:: ModelFormField 7 | :members: 8 | 9 | .. autoclass:: MongoFileField 10 | :members: 11 | 12 | .. autoclass:: MongoImageField 13 | :members: 14 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/api/mod_contrib_peewee.rst: -------------------------------------------------------------------------------- 1 | ``flask_admin.contrib.peewee`` 2 | ============================== 3 | 4 | Peewee model backend implementation. 5 | 6 | .. automodule:: flask_admin.contrib.peewee 7 | 8 | .. autoclass:: ModelView 9 | :members: 10 | :inherited-members: 11 | :exclude-members: column_filters, filter_converter, model_form_converter, 12 | inline_model_form_converter, fast_mass_delete, inline_models 13 | 14 | Class inherits configuration options from :class:`~flask_admin.model.BaseModelView` and they're not displayed here. 15 | 16 | .. autoattribute:: column_filters 17 | .. autoattribute:: filter_converter 18 | .. autoattribute:: model_form_converter 19 | .. autoattribute:: inline_model_form_converter 20 | .. autoattribute:: fast_mass_delete 21 | .. autoattribute:: inline_models 22 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/api/mod_contrib_pymongo.rst: -------------------------------------------------------------------------------- 1 | ``flask_admin.contrib.pymongo`` 2 | =============================== 3 | 4 | PyMongo model backend implementation. 5 | 6 | .. automodule:: flask_admin.contrib.pymongo 7 | 8 | .. autoclass:: ModelView 9 | :members: 10 | :inherited-members: 11 | :exclude-members: column_filters 12 | 13 | Class inherits configuration options from :class:`~flask_admin.model.BaseModelView` and they're not displayed here. 14 | 15 | .. autoattribute:: column_filters 16 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/api/mod_contrib_sqla.rst: -------------------------------------------------------------------------------- 1 | ``flask_admin.contrib.sqla`` 2 | ============================ 3 | 4 | SQLAlchemy model backend implementation. 5 | 6 | .. automodule:: flask_admin.contrib.sqla 7 | 8 | .. autoclass:: ModelView 9 | :members: 10 | :inherited-members: 11 | :exclude-members: column_auto_select_related, 12 | column_select_related_list, column_searchable_list, 13 | column_filters, filter_converter, model_form_converter, 14 | inline_model_form_converter, fast_mass_delete, 15 | inline_models, form_choices, 16 | form_optional_types 17 | 18 | Class inherits configuration options from :class:`~flask_admin.model.BaseModelView` and they're not displayed here. 19 | 20 | .. autoattribute:: column_auto_select_related 21 | .. autoattribute:: column_select_related_list 22 | .. autoattribute:: column_searchable_list 23 | .. autoattribute:: column_filters 24 | .. autoattribute:: filter_converter 25 | .. autoattribute:: model_form_converter 26 | .. autoattribute:: inline_model_form_converter 27 | .. autoattribute:: fast_mass_delete 28 | .. autoattribute:: inline_models 29 | .. autoattribute:: form_choices 30 | .. autoattribute:: form_optional_types 31 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/api/mod_form.rst: -------------------------------------------------------------------------------- 1 | ``flask_admin.form`` 2 | ==================== 3 | 4 | .. automodule:: flask_admin.form 5 | 6 | .. autoclass:: BaseForm 7 | :members: 8 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/api/mod_form_fields.rst: -------------------------------------------------------------------------------- 1 | ``flask_admin.form.fields`` 2 | =========================== 3 | 4 | .. automodule:: flask_admin.form.fields 5 | 6 | .. autoclass:: TimeField 7 | :members: 8 | 9 | .. autoclass:: Select2Field 10 | :members: 11 | 12 | .. autoclass:: Select2TagsField 13 | :members: 14 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/api/mod_form_rules.rst: -------------------------------------------------------------------------------- 1 | ``flask_admin.form.rules`` 2 | ========================== 3 | 4 | .. automodule:: flask_admin.form.rules 5 | 6 | .. autoclass:: BaseRule 7 | :members: __init__ 8 | 9 | .. autoclass:: NestedRule 10 | :members: __init__ 11 | 12 | .. autoclass:: Text 13 | :members: __init__ 14 | 15 | 16 | .. autoclass:: HTML 17 | :members: __init__ 18 | 19 | 20 | .. autoclass:: Macro 21 | :members: __init__ 22 | 23 | 24 | .. autoclass:: Container 25 | :members: __init__ 26 | 27 | 28 | .. autoclass:: Field 29 | :members: __init__ 30 | 31 | 32 | .. autoclass:: Header 33 | :members: __init__ 34 | 35 | 36 | .. autoclass:: FieldSet 37 | :members: __init__ 38 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/api/mod_form_upload.rst: -------------------------------------------------------------------------------- 1 | ``flask_admin.form.upload`` 2 | =========================== 3 | 4 | .. automodule:: flask_admin.form.upload 5 | 6 | .. autoclass:: FileUploadField 7 | :members: __init__ 8 | 9 | .. autoclass:: ImageUploadField 10 | :members: __init__ 11 | 12 | .. autoclass:: FileUploadInput 13 | .. autoclass:: ImageUploadInput 14 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/api/mod_helpers.rst: -------------------------------------------------------------------------------- 1 | ``flask_admin.helpers`` 2 | ======================= 3 | 4 | .. automodule:: flask_admin.helpers 5 | 6 | .. autofunction:: get_current_view 7 | 8 | Forms 9 | 10 | .. autofunction:: is_required_form_field 11 | .. autofunction:: is_form_submitted 12 | .. autofunction:: validate_form_on_submit 13 | .. autofunction:: get_form_data 14 | .. autofunction:: is_field_error 15 | 16 | Jinja2 helpers 17 | 18 | .. autofunction:: resolve_ctx 19 | .. autofunction:: get_render_ctx 20 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/api/mod_model_template.rst: -------------------------------------------------------------------------------- 1 | ``flask_admin.model.template`` 2 | ============================== 3 | 4 | .. automodule:: flask_admin.model.template 5 | 6 | .. autofunction:: macro 7 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/api/mod_tools.rst: -------------------------------------------------------------------------------- 1 | ``flask_admin.tools`` 2 | ===================== 3 | 4 | .. automodule:: flask_admin.tools 5 | 6 | .. autofunction:: import_module 7 | .. autofunction:: import_attribute 8 | .. autofunction:: module_not_found 9 | .. autofunction:: rec_getattr 10 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/changelog.rst: -------------------------------------------------------------------------------- 1 | Changelog 2 | ========= 3 | 4 | 1.4.2 5 | ----- 6 | 7 | * Small bug fix release. Fixes regression that prevented usage of "virtual" columns with a custom formatter. 8 | 9 | 1.4.1 10 | ----- 11 | 12 | * Official Python 3.5 support 13 | * Customizable row actions 14 | * Tablib support (exporting to XLS, XLSX, CSV, etc) 15 | * Updated external dependencies (jQuery, x-editable, etc) 16 | * Added settings that allows exceptions to be raised on view errors 17 | * Bug fixes 18 | 19 | 1.4.0 20 | ----- 21 | 22 | * Updated and reworked documentation 23 | * FileAdmin went through minor refactoring and now supports remote file systems. Comes with the new, optional, AWS S3 file management interface 24 | * Configurable CSV export for model views 25 | * Added overridable URL generation logic. Allows using custom URLs with parameters for administrative views 26 | * Added column_display_actions to ModelView control visibility of the action column without overriding the template 27 | * Added support for the latest MongoEngine 28 | * New SecureForm base class for easier CSRF validation 29 | * Lots of translation-related fixes and updated translations 30 | * Bug fixes 31 | 32 | 1.3.0 33 | ----- 34 | 35 | * New feature: Edit models in the list view in a popup 36 | * New feature: Read-only model details view 37 | * Fixed XSS in column_editable_list values 38 | * Improved navigation consistency in model create and edit views 39 | * Ability to choose page size in model list view 40 | * Updated client-side dependencies (jQuery, Select2, etc) 41 | * Updated documentation and examples 42 | * Updated translations 43 | * Bug fixes 44 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Admin-cn/docs/favicon.ico -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/index.rst: -------------------------------------------------------------------------------- 1 | :tocdepth: 2 2 | 3 | Flask-Admin 4 | ########### 5 | 6 | **Why Flask?** As a micro-framework, `Flask `_ lets you build web services with very little overhead. 7 | It offers freedom for you, the designer, to implement your project in a way that suits your 8 | particular application. 9 | 10 | **Why Flask-Admin?** In a world of micro-services and APIs, Flask-Admin solves 11 | the boring problem of building an admin interface on top 12 | of an existing data model. With little effort, it lets 13 | you manage your web service's data through a user-friendly interface. 14 | 15 | **How does it work?** The basic concept behind Flask-Admin, is that it lets you 16 | build complicated interfaces by grouping individual views 17 | together in classes: Each web page you see on the frontend, represents a 18 | method on a class that has explicitly been added to the interface. 19 | 20 | These view classes are especially helpful when they are tied to particular 21 | database models, 22 | because they let you group together all of the usual 23 | *Create, Read, Update, Delete* (CRUD) view logic into a single, self-contained 24 | class for each of your models. 25 | 26 | **What does it look like?** At http://examples.flask-admin.org/ you can see 27 | some examples of Flask-Admin in action, or browse through the `examples/` 28 | directory in the `GitHub repository `_. 29 | 30 | .. toctree:: 31 | :maxdepth: 2 32 | 33 | introduction 34 | advanced 35 | adding_a_new_model_backend 36 | api/index 37 | changelog 38 | 39 | Support 40 | ------- 41 | 42 | **** 43 | 44 | Python 2.6 - 2.7 and 3.3 - 3.4. 45 | 46 | Indices And Tables 47 | ------------------ 48 | 49 | **** 50 | 51 | * :ref:`genindex` 52 | * :ref:`modindex` 53 | * :ref:`search` 54 | -------------------------------------------------------------------------------- /Flask-Admin-cn/docs/requirements.txt: -------------------------------------------------------------------------------- 1 | Flask>=0.7 2 | Flask-SQLAlchemy>=0.15 3 | peewee 4 | wtf-peewee 5 | pymongo 6 | flask-mongoengine 7 | sphinx 8 | sphinx-intl 9 | -------------------------------------------------------------------------------- /Flask-Babel-cn/docs/_static/flask-babel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Babel-cn/docs/_static/flask-babel.png -------------------------------------------------------------------------------- /Flask-Babel-cn/docs/_themes/.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *.pyo 3 | .DS_Store 4 | -------------------------------------------------------------------------------- /Flask-Babel-cn/docs/_themes/README: -------------------------------------------------------------------------------- 1 | Flask Sphinx Styles 2 | =================== 3 | 4 | This repository contains sphinx styles for Flask and Flask related 5 | projects. To use this style in your Sphinx documentation, follow 6 | this guide: 7 | 8 | 1. put this folder as _themes into your docs folder. Alternatively 9 | you can also use git submodules to check out the contents there. 10 | 2. add this to your conf.py: 11 | 12 | sys.path.append(os.path.abspath('_themes')) 13 | html_theme_path = ['_themes'] 14 | html_theme = 'flask' 15 | 16 | The following themes exist: 17 | 18 | - 'flask' - the standard flask documentation theme for large 19 | projects 20 | - 'flask_small' - small one-page theme. Intended to be used by 21 | very small addon libraries for flask. 22 | 23 | The following options exist for the flask_small theme: 24 | 25 | [options] 26 | index_logo = '' filename of a picture in _static 27 | to be used as replacement for the 28 | h1 in the index.rst file. 29 | index_logo_height = 120px height of the index logo 30 | github_fork = '' repository name on github for the 31 | "fork me" badge 32 | -------------------------------------------------------------------------------- /Flask-Babel-cn/docs/_themes/flask/layout.html: -------------------------------------------------------------------------------- 1 | {%- extends "basic/layout.html" %} 2 | {%- block extrahead %} 3 | {{ super() }} 4 | {% if theme_touch_icon %} 5 | 6 | {% endif %} 7 | 8 | {% endblock %} 9 | {%- block relbar2 %}{% endblock %} 10 | {% block header %} 11 | {{ super() }} 12 | {% if pagename == 'index' %} 13 |
14 | {% endif %} 15 | {% endblock %} 16 | {%- block footer %} 17 | 21 | {% if pagename == 'index' %} 22 |
23 | {% endif %} 24 | {%- endblock %} 25 | -------------------------------------------------------------------------------- /Flask-Babel-cn/docs/_themes/flask/relations.html: -------------------------------------------------------------------------------- 1 |

Related Topics

2 | 20 | -------------------------------------------------------------------------------- /Flask-Babel-cn/docs/_themes/flask/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | pygments_style = flask_theme_support.FlaskyStyle 5 | 6 | [options] 7 | index_logo = '' 8 | index_logo_height = 120px 9 | touch_icon = 10 | -------------------------------------------------------------------------------- /Flask-Babel-cn/docs/_themes/flask_small/layout.html: -------------------------------------------------------------------------------- 1 | {% extends "basic/layout.html" %} 2 | {% block header %} 3 | {{ super() }} 4 | {% if pagename == 'index' %} 5 |
6 | {% endif %} 7 | {% endblock %} 8 | {% block footer %} 9 | {% if pagename == 'index' %} 10 |
11 | {% endif %} 12 | {% endblock %} 13 | {# do not display relbars #} 14 | {% block relbar1 %}{% endblock %} 15 | {% block relbar2 %} 16 | {% if theme_github_fork %} 17 | Fork me on GitHub 19 | {% endif %} 20 | {% endblock %} 21 | {% block sidebar1 %}{% endblock %} 22 | {% block sidebar2 %}{% endblock %} 23 | -------------------------------------------------------------------------------- /Flask-Babel-cn/docs/_themes/flask_small/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | nosidebar = true 5 | pygments_style = flask_theme_support.FlaskyStyle 6 | 7 | [options] 8 | index_logo = '' 9 | index_logo_height = 120px 10 | github_fork = '' 11 | -------------------------------------------------------------------------------- /Flask-Babel-cn/docs_release/_static/flask-babel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Babel-cn/docs_release/_static/flask-babel.png -------------------------------------------------------------------------------- /Flask-Babel-cn/docs_release/_themes/.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *.pyo 3 | .DS_Store 4 | -------------------------------------------------------------------------------- /Flask-Babel-cn/docs_release/_themes/README: -------------------------------------------------------------------------------- 1 | Flask Sphinx Styles 2 | =================== 3 | 4 | This repository contains sphinx styles for Flask and Flask related 5 | projects. To use this style in your Sphinx documentation, follow 6 | this guide: 7 | 8 | 1. put this folder as _themes into your docs folder. Alternatively 9 | you can also use git submodules to check out the contents there. 10 | 2. add this to your conf.py: 11 | 12 | sys.path.append(os.path.abspath('_themes')) 13 | html_theme_path = ['_themes'] 14 | html_theme = 'flask' 15 | 16 | The following themes exist: 17 | 18 | - 'flask' - the standard flask documentation theme for large 19 | projects 20 | - 'flask_small' - small one-page theme. Intended to be used by 21 | very small addon libraries for flask. 22 | 23 | The following options exist for the flask_small theme: 24 | 25 | [options] 26 | index_logo = '' filename of a picture in _static 27 | to be used as replacement for the 28 | h1 in the index.rst file. 29 | index_logo_height = 120px height of the index logo 30 | github_fork = '' repository name on github for the 31 | "fork me" badge 32 | -------------------------------------------------------------------------------- /Flask-Babel-cn/docs_release/_themes/flask/layout.html: -------------------------------------------------------------------------------- 1 | {%- extends "basic/layout.html" %} 2 | {%- block extrahead %} 3 | {{ super() }} 4 | {% if theme_touch_icon %} 5 | 6 | {% endif %} 7 | 8 | {% endblock %} 9 | {%- block relbar2 %}{% endblock %} 10 | {% block header %} 11 | {{ super() }} 12 | {% if pagename == 'index' %} 13 |
14 | {% endif %} 15 | {% endblock %} 16 | {%- block footer %} 17 | 21 | {% if pagename == 'index' %} 22 |
23 | {% endif %} 24 | {%- endblock %} 25 | -------------------------------------------------------------------------------- /Flask-Babel-cn/docs_release/_themes/flask/relations.html: -------------------------------------------------------------------------------- 1 |

Related Topics

2 | 20 | -------------------------------------------------------------------------------- /Flask-Babel-cn/docs_release/_themes/flask/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | pygments_style = flask_theme_support.FlaskyStyle 5 | 6 | [options] 7 | index_logo = '' 8 | index_logo_height = 120px 9 | touch_icon = 10 | -------------------------------------------------------------------------------- /Flask-Babel-cn/docs_release/_themes/flask_small/layout.html: -------------------------------------------------------------------------------- 1 | {% extends "basic/layout.html" %} 2 | {% block header %} 3 | {{ super() }} 4 | {% if pagename == 'index' %} 5 |
6 | {% endif %} 7 | {% endblock %} 8 | {% block footer %} 9 | {% if pagename == 'index' %} 10 |
11 | {% endif %} 12 | {% endblock %} 13 | {# do not display relbars #} 14 | {% block relbar1 %}{% endblock %} 15 | {% block relbar2 %} 16 | {% if theme_github_fork %} 17 | Fork me on GitHub 19 | {% endif %} 20 | {% endblock %} 21 | {% block sidebar1 %}{% endblock %} 22 | {% block sidebar2 %}{% endblock %} 23 | -------------------------------------------------------------------------------- /Flask-Babel-cn/docs_release/_themes/flask_small/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | nosidebar = true 5 | pygments_style = flask_theme_support.FlaskyStyle 6 | 7 | [options] 8 | index_logo = '' 9 | index_logo_height = 120px 10 | github_fork = '' 11 | -------------------------------------------------------------------------------- /Flask-Login-cn/docs/_build/doctrees/environment.pickle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs/_build/doctrees/environment.pickle -------------------------------------------------------------------------------- /Flask-Login-cn/docs/_build/doctrees/index.doctree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs/_build/doctrees/index.doctree -------------------------------------------------------------------------------- /Flask-Login-cn/docs/_build/html/.buildinfo: -------------------------------------------------------------------------------- 1 | # Sphinx build info version 1 2 | # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. 3 | config: 681fbd06d3c2b5fde91571960fd5dd60 4 | tags: 645f666f9bcd5a90fca523b33c5a78b7 5 | -------------------------------------------------------------------------------- /Flask-Login-cn/docs/_build/html/_modules/index.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Overview: module code — Flask-Login 0.3.0 documentation 10 | 11 | 12 | 13 | 14 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 |
34 |
35 |
36 |
37 | 38 |

All modules for which code is available

39 | 41 | 42 |
43 |
44 |
45 |
46 |
47 | 48 | Fork me on GitHub 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /Flask-Login-cn/docs/_build/html/_static/ajax-loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs/_build/html/_static/ajax-loader.gif -------------------------------------------------------------------------------- /Flask-Login-cn/docs/_build/html/_static/comment-bright.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs/_build/html/_static/comment-bright.png -------------------------------------------------------------------------------- /Flask-Login-cn/docs/_build/html/_static/comment-close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs/_build/html/_static/comment-close.png -------------------------------------------------------------------------------- /Flask-Login-cn/docs/_build/html/_static/comment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs/_build/html/_static/comment.png -------------------------------------------------------------------------------- /Flask-Login-cn/docs/_build/html/_static/down-pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs/_build/html/_static/down-pressed.png -------------------------------------------------------------------------------- /Flask-Login-cn/docs/_build/html/_static/down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs/_build/html/_static/down.png -------------------------------------------------------------------------------- /Flask-Login-cn/docs/_build/html/_static/file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs/_build/html/_static/file.png -------------------------------------------------------------------------------- /Flask-Login-cn/docs/_build/html/_static/minus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs/_build/html/_static/minus.png -------------------------------------------------------------------------------- /Flask-Login-cn/docs/_build/html/_static/plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs/_build/html/_static/plus.png -------------------------------------------------------------------------------- /Flask-Login-cn/docs/_build/html/_static/up-pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs/_build/html/_static/up-pressed.png -------------------------------------------------------------------------------- /Flask-Login-cn/docs/_build/html/_static/up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs/_build/html/_static/up.png -------------------------------------------------------------------------------- /Flask-Login-cn/docs/_build/html/objects.inv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs/_build/html/objects.inv -------------------------------------------------------------------------------- /Flask-Login-cn/docs/_themes/README: -------------------------------------------------------------------------------- 1 | Flask Sphinx Styles 2 | =================== 3 | 4 | This repository contains sphinx styles for Flask and Flask related 5 | projects. To use this style in your Sphinx documentation, follow 6 | this guide: 7 | 8 | 1. put this folder as _themes into your docs folder. Alternatively 9 | you can also use git submodules to check out the contents there. 10 | 2. add this to your conf.py: 11 | 12 | sys.path.append(os.path.abspath('_themes')) 13 | html_theme_path = ['_themes'] 14 | html_theme = 'flask' 15 | 16 | The following themes exist: 17 | 18 | - 'flask' - the standard flask documentation theme for large 19 | projects 20 | - 'flask_small' - small one-page theme. Intended to be used by 21 | very small addon libraries for flask. 22 | 23 | The following options exist for the flask_small theme: 24 | 25 | [options] 26 | index_logo = '' filename of a picture in _static 27 | to be used as replacement for the 28 | h1 in the index.rst file. 29 | index_logo_height = 120px height of the index logo 30 | github_fork = '' repository name on github for the 31 | "fork me" badge 32 | -------------------------------------------------------------------------------- /Flask-Login-cn/docs/_themes/flask/layout.html: -------------------------------------------------------------------------------- 1 | {%- extends "basic/layout.html" %} 2 | {%- block extrahead %} 3 | {{ super() }} 4 | {% if theme_touch_icon %} 5 | 6 | {% endif %} 7 | 9 | {% endblock %} 10 | {%- block relbar2 %}{% endblock %} 11 | {%- block footer %} 12 | 16 | {%- endblock %} 17 | -------------------------------------------------------------------------------- /Flask-Login-cn/docs/_themes/flask/relations.html: -------------------------------------------------------------------------------- 1 |

Related Topics

2 | 20 | -------------------------------------------------------------------------------- /Flask-Login-cn/docs/_themes/flask/static/small_flask.css: -------------------------------------------------------------------------------- 1 | /* 2 | * small_flask.css_t 3 | * ~~~~~~~~~~~~~~~~~ 4 | * 5 | * :copyright: Copyright 2010 by Armin Ronacher. 6 | * :license: Flask Design License, see LICENSE for details. 7 | */ 8 | 9 | body { 10 | margin: 0; 11 | padding: 20px 30px; 12 | } 13 | 14 | div.documentwrapper { 15 | float: none; 16 | background: white; 17 | } 18 | 19 | div.sphinxsidebar { 20 | display: block; 21 | float: none; 22 | width: 102.5%; 23 | margin: 50px -30px -20px -30px; 24 | padding: 10px 20px; 25 | background: #333; 26 | color: white; 27 | } 28 | 29 | div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p, 30 | div.sphinxsidebar h3 a { 31 | color: white; 32 | } 33 | 34 | div.sphinxsidebar a { 35 | color: #aaa; 36 | } 37 | 38 | div.sphinxsidebar p.logo { 39 | display: none; 40 | } 41 | 42 | div.document { 43 | width: 100%; 44 | margin: 0; 45 | } 46 | 47 | div.related { 48 | display: block; 49 | margin: 0; 50 | padding: 10px 0 20px 0; 51 | } 52 | 53 | div.related ul, 54 | div.related ul li { 55 | margin: 0; 56 | padding: 0; 57 | } 58 | 59 | div.footer { 60 | display: none; 61 | } 62 | 63 | div.bodywrapper { 64 | margin: 0; 65 | } 66 | 67 | div.body { 68 | min-height: 0; 69 | padding: 0; 70 | } 71 | -------------------------------------------------------------------------------- /Flask-Login-cn/docs/_themes/flask/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | pygments_style = flask_theme_support.FlaskyStyle 5 | 6 | [options] 7 | touch_icon = 8 | -------------------------------------------------------------------------------- /Flask-Login-cn/docs/_themes/flask_small/layout.html: -------------------------------------------------------------------------------- 1 | {% extends "basic/layout.html" %} 2 | {% block header %} 3 | {{ super() }} 4 | {% if pagename == 'index' %} 5 |
6 | {% endif %} 7 | {% endblock %} 8 | {% block footer %} 9 | {% if pagename == 'index' %} 10 |
11 | {% endif %} 12 | {% endblock %} 13 | {# do not display relbars #} 14 | {% block relbar1 %}{% endblock %} 15 | {% block relbar2 %} 16 | {% if theme_github_fork %} 17 | Fork me on GitHub 19 | {% endif %} 20 | {% endblock %} 21 | {% block sidebar1 %}{% endblock %} 22 | {% block sidebar2 %}{% endblock %} 23 | -------------------------------------------------------------------------------- /Flask-Login-cn/docs/_themes/flask_small/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | nosidebar = true 5 | pygments_style = flask_theme_support.FlaskyStyle 6 | 7 | [options] 8 | index_logo = '' 9 | index_logo_height = 120px 10 | github_fork = '' 11 | -------------------------------------------------------------------------------- /Flask-Login-cn/docs/_themes/flask_theme_support.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs/_themes/flask_theme_support.pyc -------------------------------------------------------------------------------- /Flask-Login-cn/docs_release/_build/doctrees/environment.pickle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs_release/_build/doctrees/environment.pickle -------------------------------------------------------------------------------- /Flask-Login-cn/docs_release/_build/doctrees/index.doctree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs_release/_build/doctrees/index.doctree -------------------------------------------------------------------------------- /Flask-Login-cn/docs_release/_build/html/.buildinfo: -------------------------------------------------------------------------------- 1 | # Sphinx build info version 1 2 | # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. 3 | config: 681fbd06d3c2b5fde91571960fd5dd60 4 | tags: 645f666f9bcd5a90fca523b33c5a78b7 5 | -------------------------------------------------------------------------------- /Flask-Login-cn/docs_release/_build/html/_static/ajax-loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs_release/_build/html/_static/ajax-loader.gif -------------------------------------------------------------------------------- /Flask-Login-cn/docs_release/_build/html/_static/comment-bright.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs_release/_build/html/_static/comment-bright.png -------------------------------------------------------------------------------- /Flask-Login-cn/docs_release/_build/html/_static/comment-close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs_release/_build/html/_static/comment-close.png -------------------------------------------------------------------------------- /Flask-Login-cn/docs_release/_build/html/_static/comment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs_release/_build/html/_static/comment.png -------------------------------------------------------------------------------- /Flask-Login-cn/docs_release/_build/html/_static/down-pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs_release/_build/html/_static/down-pressed.png -------------------------------------------------------------------------------- /Flask-Login-cn/docs_release/_build/html/_static/down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs_release/_build/html/_static/down.png -------------------------------------------------------------------------------- /Flask-Login-cn/docs_release/_build/html/_static/file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs_release/_build/html/_static/file.png -------------------------------------------------------------------------------- /Flask-Login-cn/docs_release/_build/html/_static/minus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs_release/_build/html/_static/minus.png -------------------------------------------------------------------------------- /Flask-Login-cn/docs_release/_build/html/_static/plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs_release/_build/html/_static/plus.png -------------------------------------------------------------------------------- /Flask-Login-cn/docs_release/_build/html/_static/up-pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs_release/_build/html/_static/up-pressed.png -------------------------------------------------------------------------------- /Flask-Login-cn/docs_release/_build/html/_static/up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs_release/_build/html/_static/up.png -------------------------------------------------------------------------------- /Flask-Login-cn/docs_release/_build/html/objects.inv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs_release/_build/html/objects.inv -------------------------------------------------------------------------------- /Flask-Login-cn/docs_release/_themes/README: -------------------------------------------------------------------------------- 1 | Flask Sphinx Styles 2 | =================== 3 | 4 | This repository contains sphinx styles for Flask and Flask related 5 | projects. To use this style in your Sphinx documentation, follow 6 | this guide: 7 | 8 | 1. put this folder as _themes into your docs folder. Alternatively 9 | you can also use git submodules to check out the contents there. 10 | 2. add this to your conf.py: 11 | 12 | sys.path.append(os.path.abspath('_themes')) 13 | html_theme_path = ['_themes'] 14 | html_theme = 'flask' 15 | 16 | The following themes exist: 17 | 18 | - 'flask' - the standard flask documentation theme for large 19 | projects 20 | - 'flask_small' - small one-page theme. Intended to be used by 21 | very small addon libraries for flask. 22 | 23 | The following options exist for the flask_small theme: 24 | 25 | [options] 26 | index_logo = '' filename of a picture in _static 27 | to be used as replacement for the 28 | h1 in the index.rst file. 29 | index_logo_height = 120px height of the index logo 30 | github_fork = '' repository name on github for the 31 | "fork me" badge 32 | -------------------------------------------------------------------------------- /Flask-Login-cn/docs_release/_themes/flask/layout.html: -------------------------------------------------------------------------------- 1 | {%- extends "basic/layout.html" %} 2 | {%- block extrahead %} 3 | {{ super() }} 4 | {% if theme_touch_icon %} 5 | 6 | {% endif %} 7 | 9 | {% endblock %} 10 | {%- block relbar2 %}{% endblock %} 11 | {%- block footer %} 12 | 39 | {%- endblock %} 40 | -------------------------------------------------------------------------------- /Flask-Login-cn/docs_release/_themes/flask/relations.html: -------------------------------------------------------------------------------- 1 |

Related Topics

2 | 20 | -------------------------------------------------------------------------------- /Flask-Login-cn/docs_release/_themes/flask/static/small_flask.css: -------------------------------------------------------------------------------- 1 | /* 2 | * small_flask.css_t 3 | * ~~~~~~~~~~~~~~~~~ 4 | * 5 | * :copyright: Copyright 2010 by Armin Ronacher. 6 | * :license: Flask Design License, see LICENSE for details. 7 | */ 8 | 9 | body { 10 | margin: 0; 11 | padding: 20px 30px; 12 | } 13 | 14 | div.documentwrapper { 15 | float: none; 16 | background: white; 17 | } 18 | 19 | div.sphinxsidebar { 20 | display: block; 21 | float: none; 22 | width: 102.5%; 23 | margin: 50px -30px -20px -30px; 24 | padding: 10px 20px; 25 | background: #333; 26 | color: white; 27 | } 28 | 29 | div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p, 30 | div.sphinxsidebar h3 a { 31 | color: white; 32 | } 33 | 34 | div.sphinxsidebar a { 35 | color: #aaa; 36 | } 37 | 38 | div.sphinxsidebar p.logo { 39 | display: none; 40 | } 41 | 42 | div.document { 43 | width: 100%; 44 | margin: 0; 45 | } 46 | 47 | div.related { 48 | display: block; 49 | margin: 0; 50 | padding: 10px 0 20px 0; 51 | } 52 | 53 | div.related ul, 54 | div.related ul li { 55 | margin: 0; 56 | padding: 0; 57 | } 58 | 59 | div.footer { 60 | display: none; 61 | } 62 | 63 | div.bodywrapper { 64 | margin: 0; 65 | } 66 | 67 | div.body { 68 | min-height: 0; 69 | padding: 0; 70 | } 71 | -------------------------------------------------------------------------------- /Flask-Login-cn/docs_release/_themes/flask/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | pygments_style = flask_theme_support.FlaskyStyle 5 | 6 | [options] 7 | touch_icon = 8 | -------------------------------------------------------------------------------- /Flask-Login-cn/docs_release/_themes/flask_small/layout.html: -------------------------------------------------------------------------------- 1 | {% extends "basic/layout.html" %} 2 | {% block header %} 3 | {{ super() }} 4 | {% if pagename == 'index' %} 5 |
6 | {% endif %} 7 | {% endblock %} 8 | {% block footer %} 9 | {% if pagename == 'index' %} 10 |
11 | {% endif %} 12 | {% endblock %} 13 | {# do not display relbars #} 14 | {% block relbar1 %}{% endblock %} 15 | {% block relbar2 %} 16 | {% if theme_github_fork %} 17 | Fork me on GitHub 19 | {% endif %} 20 | {% endblock %} 21 | {% block sidebar1 %}{% endblock %} 22 | {% block sidebar2 %}{% endblock %} 23 | -------------------------------------------------------------------------------- /Flask-Login-cn/docs_release/_themes/flask_small/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | nosidebar = true 5 | pygments_style = flask_theme_support.FlaskyStyle 6 | 7 | [options] 8 | index_logo = '' 9 | index_logo_height = 120px 10 | github_fork = '' 11 | -------------------------------------------------------------------------------- /Flask-Login-cn/docs_release/_themes/flask_theme_support.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Login-cn/docs_release/_themes/flask_theme_support.pyc -------------------------------------------------------------------------------- /Flask-Mail-cn/docs/_static/flask-mail.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Mail-cn/docs/_static/flask-mail.jpg -------------------------------------------------------------------------------- /Flask-Mail-cn/docs/_static/flask-mail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Mail-cn/docs/_static/flask-mail.png -------------------------------------------------------------------------------- /Flask-Mail-cn/docs/_themes/.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *.pyo 3 | .DS_Store 4 | -------------------------------------------------------------------------------- /Flask-Mail-cn/docs/_themes/README: -------------------------------------------------------------------------------- 1 | Flask Sphinx Styles 2 | =================== 3 | 4 | This repository contains sphinx styles for Flask and Flask related 5 | projects. To use this style in your Sphinx documentation, follow 6 | this guide: 7 | 8 | 1. put this folder as _themes into your docs folder. Alternatively 9 | you can also use git submodules to check out the contents there. 10 | 2. add this to your conf.py: 11 | 12 | sys.path.append(os.path.abspath('_themes')) 13 | html_theme_path = ['_themes'] 14 | html_theme = 'flask' 15 | 16 | The following themes exist: 17 | 18 | - 'flask' - the standard flask documentation theme for large 19 | projects 20 | - 'flask_small' - small one-page theme. Intended to be used by 21 | very small addon libraries for flask. 22 | 23 | The following options exist for the flask_small theme: 24 | 25 | [options] 26 | index_logo = '' filename of a picture in _static 27 | to be used as replacement for the 28 | h1 in the index.rst file. 29 | index_logo_height = 120px height of the index logo 30 | github_fork = '' repository name on github for the 31 | "fork me" badge 32 | -------------------------------------------------------------------------------- /Flask-Mail-cn/docs/_themes/flask/layout.html: -------------------------------------------------------------------------------- 1 | {%- extends "basic/layout.html" %} 2 | {%- block extrahead %} 3 | {{ super() }} 4 | {% if theme_touch_icon %} 5 | 6 | {% endif %} 7 | 8 | {% endblock %} 9 | {%- block relbar2 %}{% endblock %} 10 | {% block header %} 11 | {{ super() }} 12 | {% if pagename == 'index' %} 13 |
14 | {% endif %} 15 | {% endblock %} 16 | {%- block footer %} 17 | 21 | {% if pagename == 'index' %} 22 |
23 | {% endif %} 24 | {%- endblock %} 25 | -------------------------------------------------------------------------------- /Flask-Mail-cn/docs/_themes/flask/relations.html: -------------------------------------------------------------------------------- 1 |

Related Topics

2 | 20 | -------------------------------------------------------------------------------- /Flask-Mail-cn/docs/_themes/flask/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | pygments_style = flask_theme_support.FlaskyStyle 5 | 6 | [options] 7 | index_logo = '' 8 | index_logo_height = 120px 9 | touch_icon = 10 | -------------------------------------------------------------------------------- /Flask-Mail-cn/docs/_themes/flask_small/layout.html: -------------------------------------------------------------------------------- 1 | {% extends "basic/layout.html" %} 2 | {% block header %} 3 | {{ super() }} 4 | {% if pagename == 'index' %} 5 |
6 | {% endif %} 7 | {% endblock %} 8 | {% block footer %} 9 | {% if pagename == 'index' %} 10 |
11 | {% endif %} 12 | {% endblock %} 13 | {# do not display relbars #} 14 | {% block relbar1 %}{% endblock %} 15 | {% block relbar2 %} 16 | {% if theme_github_fork %} 17 | Fork me on GitHub 19 | {% endif %} 20 | {% endblock %} 21 | {% block sidebar1 %}{% endblock %} 22 | {% block sidebar2 %}{% endblock %} 23 | -------------------------------------------------------------------------------- /Flask-Mail-cn/docs/_themes/flask_small/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | nosidebar = true 5 | pygments_style = flask_theme_support.FlaskyStyle 6 | 7 | [options] 8 | index_logo = '' 9 | index_logo_height = 120px 10 | github_fork = '' 11 | -------------------------------------------------------------------------------- /Flask-Mail-cn/docs/changelog.rst: -------------------------------------------------------------------------------- 1 | .. include:: ../CHANGES -------------------------------------------------------------------------------- /Flask-Mail-cn/docs_release/_static/flask-mail.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Mail-cn/docs_release/_static/flask-mail.jpg -------------------------------------------------------------------------------- /Flask-Mail-cn/docs_release/_static/flask-mail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Mail-cn/docs_release/_static/flask-mail.png -------------------------------------------------------------------------------- /Flask-Mail-cn/docs_release/_themes/.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *.pyo 3 | .DS_Store 4 | -------------------------------------------------------------------------------- /Flask-Mail-cn/docs_release/_themes/README: -------------------------------------------------------------------------------- 1 | Flask Sphinx Styles 2 | =================== 3 | 4 | This repository contains sphinx styles for Flask and Flask related 5 | projects. To use this style in your Sphinx documentation, follow 6 | this guide: 7 | 8 | 1. put this folder as _themes into your docs folder. Alternatively 9 | you can also use git submodules to check out the contents there. 10 | 2. add this to your conf.py: 11 | 12 | sys.path.append(os.path.abspath('_themes')) 13 | html_theme_path = ['_themes'] 14 | html_theme = 'flask' 15 | 16 | The following themes exist: 17 | 18 | - 'flask' - the standard flask documentation theme for large 19 | projects 20 | - 'flask_small' - small one-page theme. Intended to be used by 21 | very small addon libraries for flask. 22 | 23 | The following options exist for the flask_small theme: 24 | 25 | [options] 26 | index_logo = '' filename of a picture in _static 27 | to be used as replacement for the 28 | h1 in the index.rst file. 29 | index_logo_height = 120px height of the index logo 30 | github_fork = '' repository name on github for the 31 | "fork me" badge 32 | -------------------------------------------------------------------------------- /Flask-Mail-cn/docs_release/_themes/flask/layout.html: -------------------------------------------------------------------------------- 1 | {%- extends "basic/layout.html" %} 2 | {%- block extrahead %} 3 | {{ super() }} 4 | {% if theme_touch_icon %} 5 | 6 | {% endif %} 7 | 8 | {% endblock %} 9 | {%- block relbar2 %}{% endblock %} 10 | {% block header %} 11 | {{ super() }} 12 | {% if pagename == 'index' %} 13 |
14 | {% endif %} 15 | {% endblock %} 16 | {%- block footer %} 17 | 44 | {% if pagename == 'index' %} 45 |
46 | {% endif %} 47 | {%- endblock %} 48 | -------------------------------------------------------------------------------- /Flask-Mail-cn/docs_release/_themes/flask/relations.html: -------------------------------------------------------------------------------- 1 |

Related Topics

2 | 20 | -------------------------------------------------------------------------------- /Flask-Mail-cn/docs_release/_themes/flask/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | pygments_style = flask_theme_support.FlaskyStyle 5 | 6 | [options] 7 | index_logo = '' 8 | index_logo_height = 120px 9 | touch_icon = 10 | -------------------------------------------------------------------------------- /Flask-Mail-cn/docs_release/_themes/flask_small/layout.html: -------------------------------------------------------------------------------- 1 | {% extends "basic/layout.html" %} 2 | {% block header %} 3 | {{ super() }} 4 | {% if pagename == 'index' %} 5 |
6 | {% endif %} 7 | {% endblock %} 8 | {% block footer %} 9 | {% if pagename == 'index' %} 10 |
11 | {% endif %} 12 | {% endblock %} 13 | {# do not display relbars #} 14 | {% block relbar1 %}{% endblock %} 15 | {% block relbar2 %} 16 | {% if theme_github_fork %} 17 | Fork me on GitHub 19 | {% endif %} 20 | {% endblock %} 21 | {% block sidebar1 %}{% endblock %} 22 | {% block sidebar2 %}{% endblock %} 23 | -------------------------------------------------------------------------------- /Flask-Mail-cn/docs_release/_themes/flask_small/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | nosidebar = true 5 | pygments_style = flask_theme_support.FlaskyStyle 6 | 7 | [options] 8 | index_logo = '' 9 | index_logo_height = 120px 10 | github_fork = '' 11 | -------------------------------------------------------------------------------- /Flask-Mail-cn/docs_release/changelog.rst: -------------------------------------------------------------------------------- 1 | .. include:: ../CHANGES -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs/_static/flask-restful-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-RESTful-cn/docs/_static/flask-restful-small.png -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs/_static/flask-restful.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-RESTful-cn/docs/_static/flask-restful.png -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs/_templates/sidebarintro.html: -------------------------------------------------------------------------------- 1 |

关于

2 |

Flask-RESTful 为 Flask 提供了构建 REST APIs 的扩展。Flask-RESTful 最初是为 Twilio 作为内部项目开发的,它最初是为了构建 Twilio 公开的和内部的 APIs。 3 |

4 |

有用链接

5 | 11 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs/_templates/sidebarlogo.html: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs/_themes/.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *.pyo 3 | .DS_Store 4 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs/_themes/README: -------------------------------------------------------------------------------- 1 | Flask Sphinx Styles 2 | =================== 3 | 4 | This repository contains sphinx styles for Flask and Flask related 5 | projects. To use this style in your Sphinx documentation, follow 6 | this guide: 7 | 8 | 1. put this folder as _themes into your docs folder. Alternatively 9 | you can also use git submodules to check out the contents there. 10 | 2. add this to your conf.py: 11 | 12 | sys.path.append(os.path.abspath('_themes')) 13 | html_theme_path = ['_themes'] 14 | html_theme = 'flask' 15 | 16 | The following themes exist: 17 | 18 | - 'flask' - the standard flask documentation theme for large 19 | projects 20 | - 'flask_small' - small one-page theme. Intended to be used by 21 | very small addon libraries for flask. 22 | 23 | The following options exist for the flask_small theme: 24 | 25 | [options] 26 | index_logo = '' filename of a picture in _static 27 | to be used as replacement for the 28 | h1 in the index.rst file. 29 | index_logo_height = 120px height of the index logo 30 | github_fork = '' repository name on github for the 31 | "fork me" badge 32 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs/_themes/flask/layout.html: -------------------------------------------------------------------------------- 1 | {%- extends "basic/layout.html" %} 2 | {%- block extrahead %} 3 | {{ super() }} 4 | {% if theme_touch_icon %} 5 | 6 | {% endif %} 7 | 8 | {% endblock %} 9 | {%- block relbar2 %}{% endblock %} 10 | {% block header %} 11 | {{ super() }} 12 | {% if pagename == 'index' %} 13 |
14 | {% endif %} 15 | {% endblock %} 16 | {%- block footer %} 17 | 21 | {% if pagename == 'index' %} 22 |
23 | {% endif %} 24 | {%- endblock %} 25 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs/_themes/flask/relations.html: -------------------------------------------------------------------------------- 1 |

相关主题

2 | 20 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs/_themes/flask/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | pygments_style = flask_theme_support.FlaskyStyle 5 | 6 | [options] 7 | index_logo = 'sleepycat.png' 8 | index_logo_height = 143px 9 | touch_icon = 10 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs/_themes/flask_small/layout.html: -------------------------------------------------------------------------------- 1 | {% extends "basic/layout.html" %} 2 | {% block header %} 3 | {{ super() }} 4 | {% if pagename == 'index' %} 5 |
6 | {% endif %} 7 | {% endblock %} 8 | {% block footer %} 9 | {% if pagename == 'index' %} 10 |
11 | {% endif %} 12 | {% endblock %} 13 | {# do not display relbars #} 14 | {% block relbar1 %}{% endblock %} 15 | {% block relbar2 %} 16 | {% if theme_github_fork %} 17 | Fork me on GitHub 19 | {% endif %} 20 | {% endblock %} 21 | {% block sidebar1 %}{% endblock %} 22 | {% block sidebar2 %}{% endblock %} 23 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs/_themes/flask_small/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | nosidebar = true 5 | pygments_style = flask_theme_support.FlaskyStyle 6 | 7 | [options] 8 | index_logo = '' 9 | index_logo_height = 120px 10 | github_fork = '' 11 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs/api.rst: -------------------------------------------------------------------------------- 1 | .. _api: 2 | 3 | API 文档 4 | ======== 5 | 6 | .. module:: flask.ext.restful 7 | 8 | 9 | .. autofunction:: marshal 10 | .. autofunction:: marshal_with 11 | .. autofunction:: marshal_with_field 12 | .. autofunction:: abort 13 | 14 | 15 | Api 16 | --- 17 | .. autoclass:: Api 18 | :members: 19 | 20 | .. automethod:: unauthorized 21 | 22 | .. autoclass:: Resource 23 | :members: 24 | 25 | ReqParse 26 | -------- 27 | .. module:: reqparse 28 | 29 | .. autoclass:: RequestParser 30 | :members: 31 | 32 | .. autoclass:: Argument 33 | :members: 34 | 35 | .. automethod:: __init__ 36 | 37 | Fields 38 | ------ 39 | .. automodule:: fields 40 | :members: 41 | :undoc-members: 42 | 43 | Inputs 44 | ------ 45 | 46 | .. module:: flask.ext.restful.inputs 47 | .. autofunction:: url 48 | .. autoclass:: regex 49 | .. autofunction:: date 50 | .. autofunction:: iso8601interval 51 | .. autofunction:: natural 52 | .. autofunction:: boolean 53 | .. autofunction:: rfc822 54 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs/contents.rst.inc: -------------------------------------------------------------------------------- 1 | 用户指南 2 | ------------ 3 | 4 | 这部分文档将向你展示如何在 Flask 中使用 Flask-RESTful。 5 | 6 | .. toctree:: 7 | :maxdepth: 2 8 | 9 | installation 10 | quickstart 11 | reqparse 12 | fields 13 | extending 14 | intermediate-usage 15 | 16 | API 参考 17 | ------------- 18 | 19 | 如果你正在查询特定函数,类或者方法的信息,这部分文档就是为你准备的。 20 | 21 | .. toctree:: 22 | :maxdepth: 2 23 | 24 | api 25 | 26 | 其它注意事项 27 | ---------------- 28 | 29 | 关于这个项目的法律信息请参阅 Flask 的 license_。 30 | 31 | .. toctree:: 32 | :maxdepth: 2 33 | 34 | testing 35 | 36 | .. _license: http://flask.pocoo.org/docs/license/ 37 | 38 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs/index.rst: -------------------------------------------------------------------------------- 1 | :orphan: 2 | 3 | Flask-RESTful 4 | ============= 5 | 6 | .. module:: flask.ext.restful 7 | 8 | **Flask-RESTful** 是一个 Flask 扩展,它添加了快速构建 REST APIs 的支持。它当然也是一个能够跟你现有的ORM/库协同工作的轻量级的扩展。Flask-RESTful 鼓励以最小设置的最佳实践。如果你熟悉 Flask 的话,Flask-RESTful 应该很容易上手。 9 | 10 | .. include:: contents.rst.inc 11 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs/installation.rst: -------------------------------------------------------------------------------- 1 | .. _installation: 2 | 3 | 安装 4 | ============ 5 | 6 | .. currentmodule:: flask.ext.restful 7 | 8 | 使用 ``pip`` 安装 Flask-RESTful:: 9 | 10 | pip install flask-restful 11 | 12 | 13 | 开发的版本可以从 `GitHub 上的页面 14 | `_ 下载 :: 15 | 16 | git clone https://github.com/twilio/flask-restful.git 17 | cd flask-restful 18 | python setup.py develop 19 | 20 | Flask-RESTful 有如下的依赖包(如果你使用 ``pip``,依赖包会自动地安装): 21 | 22 | * `Flask `_ 版本 0.8 或者更高 23 | 24 | Flask-RESTful 要求 Python 版本为 2.6, 2.7, 3.3 或者 3.4。 25 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs/testing.rst: -------------------------------------------------------------------------------- 1 | .. _testing: 2 | 3 | 运行测试 4 | ================= 5 | 6 | ``Makefile`` 文件中照顾到搭建一个 virtualenv 为运行测试。所有你需要做的就是运行:: 7 | 8 | $ make test 9 | 10 | 要更改用于运行测试的 Python 版本(默认是 Python 2.7),修改上面 ``Makefile`` 文件中的 ``PYTHON_MAJOR`` 和 ``PYTHON_MINOR`` 变量。 11 | 12 | 你可以在所有支持的版本上运行测试:: 13 | 14 | $ make test-all 15 | 16 | 单个的测试可以使用如下格式的命令运行:: 17 | 18 | nosetests :ClassName.func_name 19 | 20 | 例如:: 21 | 22 | $ source env/bin/activate 23 | $ nosetests tests/test_reqparse.py:ReqParseTestCase.test_parse_choices_insensitive 24 | 25 | 另外,提交你的更改到 Github 中你的分支上,Travis 将会自动地为你的分支运行测试。 26 | 27 | 也提供了一个 Tox 配置文件,因此你可以在本地在多个 python 版本(2.6,2.7,3.3,和 3.4)上测试 :: 28 | 29 | $ tox 30 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs_release/_static/flask-restful-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-RESTful-cn/docs_release/_static/flask-restful-small.png -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs_release/_static/flask-restful.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-RESTful-cn/docs_release/_static/flask-restful.png -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs_release/_templates/sidebarintro.html: -------------------------------------------------------------------------------- 1 |

关于

2 |

Flask-RESTful 为 Flask 提供了构建 REST APIs 的扩展。Flask-RESTful 最初是为 Twilio 作为内部项目开发的,它最初是为了构建 Twilio 公开的和内部的 APIs。 3 |

4 |

有用链接

5 | 11 | 12 |

13 | 21 | 24 |

25 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs_release/_templates/sidebarlogo.html: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs_release/_themes/.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *.pyo 3 | .DS_Store 4 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs_release/_themes/README: -------------------------------------------------------------------------------- 1 | Flask Sphinx Styles 2 | =================== 3 | 4 | This repository contains sphinx styles for Flask and Flask related 5 | projects. To use this style in your Sphinx documentation, follow 6 | this guide: 7 | 8 | 1. put this folder as _themes into your docs folder. Alternatively 9 | you can also use git submodules to check out the contents there. 10 | 2. add this to your conf.py: 11 | 12 | sys.path.append(os.path.abspath('_themes')) 13 | html_theme_path = ['_themes'] 14 | html_theme = 'flask' 15 | 16 | The following themes exist: 17 | 18 | - 'flask' - the standard flask documentation theme for large 19 | projects 20 | - 'flask_small' - small one-page theme. Intended to be used by 21 | very small addon libraries for flask. 22 | 23 | The following options exist for the flask_small theme: 24 | 25 | [options] 26 | index_logo = '' filename of a picture in _static 27 | to be used as replacement for the 28 | h1 in the index.rst file. 29 | index_logo_height = 120px height of the index logo 30 | github_fork = '' repository name on github for the 31 | "fork me" badge 32 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs_release/_themes/flask/layout.html: -------------------------------------------------------------------------------- 1 | {%- extends "basic/layout.html" %} 2 | {%- block extrahead %} 3 | {{ super() }} 4 | {% if theme_touch_icon %} 5 | 6 | {% endif %} 7 | 8 | {% endblock %} 9 | {%- block relbar2 %}{% endblock %} 10 | {% block header %} 11 | {{ super() }} 12 | {% if pagename == 'index' %} 13 |
14 | {% endif %} 15 | {% endblock %} 16 | {%- block footer %} 17 | 44 | {% if pagename == 'index' %} 45 |
46 | {% endif %} 47 | {%- endblock %} 48 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs_release/_themes/flask/relations.html: -------------------------------------------------------------------------------- 1 |

相关主题

2 | 20 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs_release/_themes/flask/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | pygments_style = flask_theme_support.FlaskyStyle 5 | 6 | [options] 7 | index_logo = 'sleepycat.png' 8 | index_logo_height = 143px 9 | touch_icon = 10 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs_release/_themes/flask_small/layout.html: -------------------------------------------------------------------------------- 1 | {% extends "basic/layout.html" %} 2 | {% block header %} 3 | {{ super() }} 4 | {% if pagename == 'index' %} 5 |
6 | {% endif %} 7 | {% endblock %} 8 | {% block footer %} 9 | {% if pagename == 'index' %} 10 |
11 | {% endif %} 12 | {% endblock %} 13 | {# do not display relbars #} 14 | {% block relbar1 %}{% endblock %} 15 | {% block relbar2 %} 16 | {% if theme_github_fork %} 17 | Fork me on GitHub 19 | {% endif %} 20 | {% endblock %} 21 | {% block sidebar1 %}{% endblock %} 22 | {% block sidebar2 %}{% endblock %} 23 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs_release/_themes/flask_small/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | nosidebar = true 5 | pygments_style = flask_theme_support.FlaskyStyle 6 | 7 | [options] 8 | index_logo = '' 9 | index_logo_height = 120px 10 | github_fork = '' 11 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs_release/api.rst: -------------------------------------------------------------------------------- 1 | .. _api: 2 | 3 | API 文档 4 | ======== 5 | 6 | .. module:: flask.ext.restful 7 | 8 | 9 | .. autofunction:: marshal 10 | .. autofunction:: marshal_with 11 | .. autofunction:: marshal_with_field 12 | .. autofunction:: abort 13 | 14 | 15 | Api 16 | --- 17 | .. autoclass:: Api 18 | :members: 19 | 20 | .. automethod:: unauthorized 21 | 22 | .. autoclass:: Resource 23 | :members: 24 | 25 | ReqParse 26 | -------- 27 | .. module:: reqparse 28 | 29 | .. autoclass:: RequestParser 30 | :members: 31 | 32 | .. autoclass:: Argument 33 | :members: 34 | 35 | .. automethod:: __init__ 36 | 37 | Fields 38 | ------ 39 | .. automodule:: fields 40 | :members: 41 | :undoc-members: 42 | 43 | Inputs 44 | ------ 45 | 46 | .. module:: flask.ext.restful.inputs 47 | .. autofunction:: url 48 | .. autoclass:: regex 49 | .. autofunction:: date 50 | .. autofunction:: iso8601interval 51 | .. autofunction:: natural 52 | .. autofunction:: boolean 53 | .. autofunction:: rfc822 54 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs_release/contents.rst.inc: -------------------------------------------------------------------------------- 1 | 用户指南 2 | ------------ 3 | 4 | 这部分文档将向你展示如何在 Flask 中使用 Flask-RESTful。 5 | 6 | .. toctree:: 7 | :maxdepth: 2 8 | 9 | installation 10 | quickstart 11 | reqparse 12 | fields 13 | extending 14 | intermediate-usage 15 | 16 | API 参考 17 | ------------- 18 | 19 | 如果你正在查询特定函数,类或者方法的信息,这部分文档就是为你准备的。 20 | 21 | .. toctree:: 22 | :maxdepth: 2 23 | 24 | api 25 | 26 | 其它注意事项 27 | ---------------- 28 | 29 | 关于这个项目的法律信息请参阅 Flask 的 license_。 30 | 31 | .. toctree:: 32 | :maxdepth: 2 33 | 34 | testing 35 | 36 | .. _license: http://flask.pocoo.org/docs/license/ 37 | 38 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs_release/index.rst: -------------------------------------------------------------------------------- 1 | :orphan: 2 | 3 | Flask-RESTful 4 | ============= 5 | 6 | .. module:: flask.ext.restful 7 | 8 | **Flask-RESTful** 是一个 Flask 扩展,它添加了快速构建 REST APIs 的支持。它当然也是一个能够跟你现有的ORM/库协同工作的轻量级的扩展。Flask-RESTful 鼓励以最小设置的最佳实践。如果你熟悉 Flask 的话,Flask-RESTful 应该很容易上手。 9 | 10 | .. include:: contents.rst.inc 11 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs_release/installation.rst: -------------------------------------------------------------------------------- 1 | .. _installation: 2 | 3 | 安装 4 | ============ 5 | 6 | .. currentmodule:: flask.ext.restful 7 | 8 | 使用 ``pip`` 安装 Flask-RESTful:: 9 | 10 | pip install flask-restful 11 | 12 | 13 | 开发的版本可以从 `GitHub 上的页面 14 | `_ 下载 :: 15 | 16 | git clone https://github.com/twilio/flask-restful.git 17 | cd flask-restful 18 | python setup.py develop 19 | 20 | Flask-RESTful 有如下的依赖包(如果你使用 ``pip``,依赖包会自动地安装): 21 | 22 | * `Flask `_ 版本 0.8 或者更高 23 | 24 | Flask-RESTful 要求 Python 版本为 2.6, 2.7, 或者 3.3。 25 | -------------------------------------------------------------------------------- /Flask-RESTful-cn/docs_release/testing.rst: -------------------------------------------------------------------------------- 1 | .. _testing: 2 | 3 | 运行测试 4 | ================= 5 | 6 | ``Makefile`` 文件中照顾到搭建一个 virtualenv 为运行测试。所有你需要做的就是运行:: 7 | 8 | $ make test 9 | 10 | 要更改用于运行测试的 Python 版本(默认是 Python 2.7),修改上面 ``Makefile`` 文件中的 ``PYTHON_MAJOR`` 和 ``PYTHON_MINOR`` 变量。 11 | 12 | 你可以在所有支持的版本上运行测试:: 13 | 14 | $ make test-all 15 | 16 | 单个的测试可以使用如下格式的命令运行:: 17 | 18 | nosetests :ClassName.func_name 19 | 20 | 例如:: 21 | 22 | $ source env/bin/activate 23 | $ nosetests tests/test_reqparse.py:ReqParseTestCase.test_parse_choices_insensitive 24 | 25 | 另外,提交你的更改到 Github 中你的分支上,Travis 将会自动地为你的分支运行测试。 26 | 27 | 也提供了一个 Tox 配置文件,因此你可以在本地在多个 python 版本(2.6,2.7,3.3,和 3.4)上测试 :: 28 | 29 | $ tox 30 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs/_static/flask-sqlalchemy-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-SQLAlchemy-cn/docs/_static/flask-sqlalchemy-small.png -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs/_static/flask-sqlalchemy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-SQLAlchemy-cn/docs/_static/flask-sqlalchemy.png -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs/_templates/sidebarintro.html: -------------------------------------------------------------------------------- 1 |

关于

2 |

3 | Flask-SQLAlchemy 为 Flask 提供了一个 SQLAlchemy 扩展。Flask 是一个 Python 的 web 开发微框架。您正在阅读开发版本的文档。内容暂还不太稳定,但是如果您有一些反馈,请让我知道. 4 |

5 | 15 |

有用的链接

16 | 22 | 23 | Fork me on GitHub 25 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs/_templates/sidebarlogo.html: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs/_themes/.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *.pyo 3 | .DS_Store 4 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs/_themes/README: -------------------------------------------------------------------------------- 1 | Flask Sphinx Styles 2 | =================== 3 | 4 | This repository contains sphinx styles for Flask and Flask related 5 | projects. To use this style in your Sphinx documentation, follow 6 | this guide: 7 | 8 | 1. put this folder as _themes into your docs folder. Alternatively 9 | you can also use git submodules to check out the contents there. 10 | 2. add this to your conf.py: 11 | 12 | sys.path.append(os.path.abspath('_themes')) 13 | html_theme_path = ['_themes'] 14 | html_theme = 'flask' 15 | 16 | The following themes exist: 17 | 18 | - 'flask' - the standard flask documentation theme for large 19 | projects 20 | - 'flask_small' - small one-page theme. Intended to be used by 21 | very small addon libraries for flask. 22 | 23 | The following options exist for the flask_small theme: 24 | 25 | [options] 26 | index_logo = '' filename of a picture in _static 27 | to be used as replacement for the 28 | h1 in the index.rst file. 29 | index_logo_height = 120px height of the index logo 30 | github_fork = '' repository name on github for the 31 | "fork me" badge 32 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs/_themes/flask/layout.html: -------------------------------------------------------------------------------- 1 | {%- extends "basic/layout.html" %} 2 | {%- block extrahead %} 3 | {{ super() }} 4 | {% if theme_touch_icon %} 5 | 6 | {% endif %} 7 | 8 | {% endblock %} 9 | {%- block relbar2 %}{% endblock %} 10 | {% block header %} 11 | {{ super() }} 12 | {% if pagename == 'index' %} 13 |
14 | {% endif %} 15 | {% endblock %} 16 | {%- block footer %} 17 | 21 | {% if pagename == 'index' %} 22 |
23 | {% endif %} 24 | {%- endblock %} 25 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs/_themes/flask/relations.html: -------------------------------------------------------------------------------- 1 |

Related Topics

2 | 20 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs/_themes/flask/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | pygments_style = flask_theme_support.FlaskyStyle 5 | 6 | [options] 7 | index_logo = '' 8 | index_logo_height = 120px 9 | touch_icon = 10 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs/_themes/flask_small/layout.html: -------------------------------------------------------------------------------- 1 | {% extends "basic/layout.html" %} 2 | {% block header %} 3 | {{ super() }} 4 | {% if pagename == 'index' %} 5 |
6 | {% endif %} 7 | {% endblock %} 8 | {% block footer %} 9 | {% if pagename == 'index' %} 10 |
11 | {% endif %} 12 | {% endblock %} 13 | {# do not display relbars #} 14 | {% block relbar1 %}{% endblock %} 15 | {% block relbar2 %} 16 | {% if theme_github_fork %} 17 | Fork me on GitHub 19 | {% endif %} 20 | {% endblock %} 21 | {% block sidebar1 %}{% endblock %} 22 | {% block sidebar2 %}{% endblock %} 23 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs/_themes/flask_small/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | nosidebar = true 5 | pygments_style = flask_theme_support.FlaskyStyle 6 | 7 | [options] 8 | index_logo = '' 9 | index_logo_height = 120px 10 | github_fork = '' 11 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs/changelog.rst: -------------------------------------------------------------------------------- 1 | .. include:: ./CHANGES 2 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs/contents.rst.inc: -------------------------------------------------------------------------------- 1 | 用户指南 2 | ------------ 3 | 4 | 这部分文档将会展示如何开始在 Flask 中使用 Flask-SQLAlchemy。 5 | 6 | .. toctree:: 7 | :maxdepth: 2 8 | 9 | quickstart 10 | contexts 11 | config 12 | models 13 | queries 14 | binds 15 | signals 16 | 17 | API 参考 18 | ------------- 19 | 20 | 如果您在寻找一个特定函数、类或者方法的信息,那么这部分文档就是为您准备的。 21 | 22 | .. toctree:: 23 | :maxdepth: 2 24 | 25 | api 26 | 27 | 附加说明 28 | ---------------- 29 | 30 | 关于这个项目的法律信息请参阅 Flask 的 license_。 31 | 32 | .. toctree:: 33 | :maxdepth: 2 34 | 35 | changelog 36 | 37 | .. _license: http://flask.pocoo.org/docs/license/ 38 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs/contexts.rst: -------------------------------------------------------------------------------- 1 | .. _contexts: 2 | 3 | .. currentmodule:: flask.ext.sqlalchemy 4 | 5 | 引入上下文 6 | ========================== 7 | 8 | 如果您计划只使用一个应用程序,您大可跳过这一章节。只需要把您的应用程序传给 :class:`SQLAlchemy` 构造函数,一般情况下您就设置好了。然而您想要使用不止一个应用或者在一个函数中动态地创建应用的话,您需要仔细阅读。 9 | 10 | 如果您在一个函数中定义您的应用,但是 :class:`SQLAlchemy` 对象是全局的,后者如何知道前者了?答案就是 :meth:`~SQLAlchemy.init_app` 函数:: 11 | 12 | from flask import Flask 13 | from flask.ext.sqlalchemy import SQLAlchemy 14 | 15 | db = SQLAlchemy() 16 | 17 | def create_app(): 18 | app = Flask(__name__) 19 | db.init_app(app) 20 | return app 21 | 22 | 它所做的是准备应用以与 :class:`SQLAlchemy` 共同工作。然而现在不把 :class:`SQLAlchemy` 对象绑定到您的应用。为什么不这么做? 因为那里可能创建不止一个应用。 23 | 24 | 那么 :class:`SQLAlchemy` 是如何知道您的应用的?您必须配置一个应用上下文。如果您在一个 Flask 视图函数中进行工作,这会自动实现。但如果您在交互式的 shell 中,您需要手动这么做。(参阅 `创建应用上下文 `_ )。 25 | 26 | 简而言之,像这样做: 27 | 28 | >>> from yourapp import create_app 29 | >>> app = create_app() 30 | >>> app.app_context().push() 31 | 32 | 在脚本里面使用 with 声明都样也有作用:: 33 | 34 | def my_function(): 35 | with app.app_context(): 36 | user = db.User(...) 37 | db.session.add(user) 38 | db.session.commit() 39 | 40 | Flask-SQLAlchemy 里的一些函数也可以接受要在其上进行操作的应用作为参数: 41 | 42 | >>> from yourapp import db, create_app 43 | >>> db.create_all(app=create_app()) 44 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs/index.rst: -------------------------------------------------------------------------------- 1 | :orphan: 2 | 3 | Flask-SQLAlchemy 4 | ================ 5 | 6 | .. module:: flask.ext.sqlalchemy 7 | 8 | Flask-SQLAlchemy 是一个为您的 `Flask`_ 应用增加 `SQLAlchemy`_ 支持的扩展。它需要 SQLAlchemy 0.6 或者更高的版本。它致力于简化在 Flask 中 SQLAlchemy 的使用,提供了有用的默认值和额外的助手来更简单地完成常见任务。 9 | 10 | 11 | .. _SQLAlchemy: http://www.sqlalchemy.org/ 12 | .. _Flask: http://flask.pocoo.org/ 13 | .. _example sourcecode: 14 | http://github.com/mitsuhiko/flask-sqlalchemy/tree/master/examples/ 15 | 16 | .. include:: contents.rst.inc 17 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs/logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-SQLAlchemy-cn/docs/logo.pdf -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs/signals.rst: -------------------------------------------------------------------------------- 1 | 信号支持 2 | ================== 3 | 4 | 您可以订阅如下这些信号以便在更新提交到数据库之前以及之后得到通知。 5 | 6 | 如果配置中 ``SQLALCHEMY_TRACK_MODIFICATIONS`` 启用的话,这些更新变化才能被追踪。 7 | 8 | .. versionadded:: 0.10 9 | .. versionchanged:: 2.1 10 | ``before_models_committed`` 正确地被触发。 11 | .. deprecated:: 2.1 12 | 在以后的版本中,这个配置项默认是禁用的。 13 | 14 | 存在以下两个信号: 15 | 16 | .. data:: models_committed 17 | 18 | 这个信号在修改的模型提交到数据库时发出。发送者是发送修改的应用,模型和操作描述符以 ``(model, operation)`` 形式作为元组,这样的元组列表传递给接受者的 `changes` 参数。 19 | 20 | 该模型是发送到数据库的模型实例,当一个模型已经插入,操作是 ``'insert'`` ,而已删除是 ``'delete'`` ,如果更新了任何列,会是 ``'update'`` 。 21 | 22 | .. data:: before_models_committed 23 | 24 | 工作机制和 :data:`models_committed` 完全一样,但是在提交之前发送。 25 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs_release/_static/flask-sqlalchemy-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-SQLAlchemy-cn/docs_release/_static/flask-sqlalchemy-small.png -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs_release/_static/flask-sqlalchemy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-SQLAlchemy-cn/docs_release/_static/flask-sqlalchemy.png -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs_release/_templates/sidebarintro.html: -------------------------------------------------------------------------------- 1 |

关于

2 |

3 | Flask-SQLAlchemy 为 Flask 提供了一个 SQLAlchemy 扩展。Flask 是一个 Python 的 web 开发微框架。您正在阅读开发版本的文档。内容暂还不太稳定,但是如果您有一些反馈,请让我知道. 4 |

5 | 15 |

有用的链接

16 | 22 | 23 | Fork me on GitHub 25 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs_release/_templates/sidebarlogo.html: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs_release/_themes/.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *.pyo 3 | .DS_Store 4 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs_release/_themes/README: -------------------------------------------------------------------------------- 1 | Flask Sphinx Styles 2 | =================== 3 | 4 | This repository contains sphinx styles for Flask and Flask related 5 | projects. To use this style in your Sphinx documentation, follow 6 | this guide: 7 | 8 | 1. put this folder as _themes into your docs folder. Alternatively 9 | you can also use git submodules to check out the contents there. 10 | 2. add this to your conf.py: 11 | 12 | sys.path.append(os.path.abspath('_themes')) 13 | html_theme_path = ['_themes'] 14 | html_theme = 'flask' 15 | 16 | The following themes exist: 17 | 18 | - 'flask' - the standard flask documentation theme for large 19 | projects 20 | - 'flask_small' - small one-page theme. Intended to be used by 21 | very small addon libraries for flask. 22 | 23 | The following options exist for the flask_small theme: 24 | 25 | [options] 26 | index_logo = '' filename of a picture in _static 27 | to be used as replacement for the 28 | h1 in the index.rst file. 29 | index_logo_height = 120px height of the index logo 30 | github_fork = '' repository name on github for the 31 | "fork me" badge 32 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs_release/_themes/flask/layout.html: -------------------------------------------------------------------------------- 1 | {%- extends "basic/layout.html" %} 2 | {%- block extrahead %} 3 | {{ super() }} 4 | {% if theme_touch_icon %} 5 | 6 | {% endif %} 7 | 8 | {% endblock %} 9 | {%- block relbar2 %}{% endblock %} 10 | {% block header %} 11 | {{ super() }} 12 | {% if pagename == 'index' %} 13 |
14 | {% endif %} 15 | {% endblock %} 16 | {%- block footer %} 17 | 46 | {% if pagename == 'index' %} 47 |
48 | {% endif %} 49 | {%- endblock %} 50 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs_release/_themes/flask/relations.html: -------------------------------------------------------------------------------- 1 |

Related Topics

2 | 20 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs_release/_themes/flask/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | pygments_style = flask_theme_support.FlaskyStyle 5 | 6 | [options] 7 | index_logo = '' 8 | index_logo_height = 120px 9 | touch_icon = 10 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs_release/_themes/flask_small/layout.html: -------------------------------------------------------------------------------- 1 | {% extends "basic/layout.html" %} 2 | {% block header %} 3 | {{ super() }} 4 | {% if pagename == 'index' %} 5 |
6 | {% endif %} 7 | {% endblock %} 8 | {% block footer %} 9 | {% if pagename == 'index' %} 10 |
11 | {% endif %} 12 | {% endblock %} 13 | {# do not display relbars #} 14 | {% block relbar1 %}{% endblock %} 15 | {% block relbar2 %} 16 | {% if theme_github_fork %} 17 | Fork me on GitHub 19 | {% endif %} 20 | {% endblock %} 21 | {% block sidebar1 %}{% endblock %} 22 | {% block sidebar2 %}{% endblock %} 23 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs_release/_themes/flask_small/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | nosidebar = true 5 | pygments_style = flask_theme_support.FlaskyStyle 6 | 7 | [options] 8 | index_logo = '' 9 | index_logo_height = 120px 10 | github_fork = '' 11 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs_release/changelog.rst: -------------------------------------------------------------------------------- 1 | .. include:: ./CHANGES 2 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs_release/contents.rst.inc: -------------------------------------------------------------------------------- 1 | 用户指南 2 | ------------ 3 | 4 | 这部分文档将会展示如何开始在 Flask 中使用 Flask-SQLAlchemy。 5 | 6 | .. toctree:: 7 | :maxdepth: 2 8 | 9 | quickstart 10 | contexts 11 | config 12 | models 13 | queries 14 | binds 15 | signals 16 | 17 | API 参考 18 | ------------- 19 | 20 | 如果您在寻找一个特定函数、类或者方法的信息,那么这部分文档就是为您准备的。 21 | 22 | .. toctree:: 23 | :maxdepth: 2 24 | 25 | api 26 | 27 | 附加说明 28 | ---------------- 29 | 30 | 关于这个项目的法律信息请参阅 Flask 的 license_。 31 | 32 | .. toctree:: 33 | :maxdepth: 2 34 | 35 | changelog 36 | 37 | .. _license: http://flask.pocoo.org/docs/license/ 38 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs_release/contexts.rst: -------------------------------------------------------------------------------- 1 | .. _contexts: 2 | 3 | .. currentmodule:: flask.ext.sqlalchemy 4 | 5 | 引入上下文 6 | ========================== 7 | 8 | 如果您计划只使用一个应用程序,您大可跳过这一章节。只需要把您的应用程序传给 :class:`SQLAlchemy` 构造函数,一般情况下您就设置好了。然而您想要使用不止一个应用或者在一个函数中动态地创建应用的话,您需要仔细阅读。 9 | 10 | 如果您在一个函数中定义您的应用,但是 :class:`SQLAlchemy` 对象是全局的,后者如何知道前者了?答案就是 :meth:`~SQLAlchemy.init_app` 函数:: 11 | 12 | from flask import Flask 13 | from flask.ext.sqlalchemy import SQLAlchemy 14 | 15 | db = SQLAlchemy() 16 | 17 | def create_app(): 18 | app = Flask(__name__) 19 | db.init_app(app) 20 | return app 21 | 22 | 它所做的是准备应用以与 :class:`SQLAlchemy` 共同工作。然而现在不把 :class:`SQLAlchemy` 对象绑定到您的应用。为什么不这么做? 因为那里可能创建不止一个应用。 23 | 24 | 那么 :class:`SQLAlchemy` 是如何知道您的应用的?您必须配置一个应用上下文。如果您在一个 Flask 视图函数中进行工作,这会自动实现。但如果您在交互式的 shell 中,您需要手动这么做。(参阅 `创建应用上下文 `_ )。 25 | 26 | 简而言之,像这样做: 27 | 28 | >>> from yourapp import create_app 29 | >>> app = create_app() 30 | >>> app.app_context().push() 31 | 32 | 在脚本里面使用 with 声明都样也有作用:: 33 | 34 | def my_function(): 35 | with app.app_context(): 36 | user = db.User(...) 37 | db.session.add(user) 38 | db.session.commit() 39 | 40 | Flask-SQLAlchemy 里的一些函数也可以接受要在其上进行操作的应用作为参数: 41 | 42 | >>> from yourapp import db, create_app 43 | >>> db.create_all(app=create_app()) 44 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs_release/index.rst: -------------------------------------------------------------------------------- 1 | :orphan: 2 | 3 | Flask-SQLAlchemy 4 | ================ 5 | 6 | .. module:: flask.ext.sqlalchemy 7 | 8 | Flask-SQLAlchemy 是一个为您的 `Flask`_ 应用增加 `SQLAlchemy`_ 支持的扩展。它需要 SQLAlchemy 0.6 或者更高的版本。它致力于简化在 Flask 中 SQLAlchemy 的使用,提供了有用的默认值和额外的助手来更简单地完成常见任务。 9 | 10 | 11 | .. _SQLAlchemy: http://www.sqlalchemy.org/ 12 | .. _Flask: http://flask.pocoo.org/ 13 | .. _example sourcecode: 14 | http://github.com/mitsuhiko/flask-sqlalchemy/tree/master/examples/ 15 | 16 | .. include:: contents.rst.inc 17 | -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs_release/logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-SQLAlchemy-cn/docs_release/logo.pdf -------------------------------------------------------------------------------- /Flask-SQLAlchemy-cn/docs_release/signals.rst: -------------------------------------------------------------------------------- 1 | 信号支持 2 | ================== 3 | 4 | 您可以订阅如下这些信号以便在更新提交到数据库之前以及之后得到通知。 5 | 6 | 如果配置中 ``SQLALCHEMY_TRACK_MODIFICATIONS`` 启用的话,这些更新变化才能被追踪。 7 | 8 | .. versionadded:: 0.10 9 | .. versionchanged:: 2.1 10 | ``before_models_committed`` 正确地被触发。 11 | .. deprecated:: 2.1 12 | 在以后的版本中,这个配置项默认是禁用的。 13 | 14 | 存在以下两个信号: 15 | 16 | .. data:: models_committed 17 | 18 | 这个信号在修改的模型提交到数据库时发出。发送者是发送修改的应用,模型和操作描述符以 ``(model, operation)`` 形式作为元组,这样的元组列表传递给接受者的 `changes` 参数。 19 | 20 | 该模型是发送到数据库的模型实例,当一个模型已经插入,操作是 ``'insert'`` ,而已删除是 ``'delete'`` ,如果更新了任何列,会是 ``'update'`` 。 21 | 22 | .. data:: before_models_committed 23 | 24 | 工作机制和 :data:`models_committed` 完全一样,但是在提交之前发送。 25 | -------------------------------------------------------------------------------- /Flask-Script-cn/_static/flask-script.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Script-cn/_static/flask-script.png -------------------------------------------------------------------------------- /Flask-Script-cn/_static/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Flask-Script documentation has moved... 5 | 6 | 7 | 8 | 9 | Flask-Script documentation is now maintained at Read the Docs. 10 | If your browser does not automatically redirect you, please click here. 11 | 12 | 13 | -------------------------------------------------------------------------------- /Flask-Script-cn/_themes/README: -------------------------------------------------------------------------------- 1 | Flask Sphinx Styles 2 | =================== 3 | 4 | This repository contains sphinx styles for Flask and Flask related 5 | projects. To use this style in your Sphinx documentation, follow 6 | this guide: 7 | 8 | 1. put this folder as _themes into your docs folder. Alternatively 9 | you can also use git submodules to check out the contents there. 10 | 2. add this to your conf.py: 11 | 12 | sys.path.append(os.path.abspath('_themes')) 13 | html_theme_path = ['_themes'] 14 | html_theme = 'flask' 15 | 16 | The following themes exist: 17 | 18 | - 'flask' - the standard flask documentation theme for large 19 | projects 20 | - 'flask_small' - small one-page theme. Intended to be used by 21 | very small addon libraries for flask. 22 | 23 | The following options exist for the flask_small theme: 24 | 25 | [options] 26 | index_logo = '' filename of a picture in _static 27 | to be used as replacement for the 28 | h1 in the index.rst file. 29 | index_logo_height = 120px height of the index logo 30 | github_fork = '' repository name on github for the 31 | "fork me" badge 32 | -------------------------------------------------------------------------------- /Flask-Script-cn/_themes/flask/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | pygments_style = flask_theme_support.FlaskyStyle 5 | -------------------------------------------------------------------------------- /Flask-Script-cn/_themes/flask_small/layout.html: -------------------------------------------------------------------------------- 1 | {% extends "basic/layout.html" %} 2 | {% block header %} 3 | {{ super() }} 4 | {% if pagename == 'index' %} 5 |
6 | {% endif %} 7 | {% endblock %} 8 | {% block footer %} 9 | {% if pagename == 'index' %} 10 |
11 | {% endif %} 12 | {% endblock %} 13 | {# do not display relbars #} 14 | {% block relbar1 %}{% endblock %} 15 | {% block relbar2 %} 16 | {% if theme_github_fork %} 17 | Fork me on GitHub 19 | {% endif %} 20 | {% endblock %} 21 | {% block sidebar1 %}{% endblock %} 22 | {% block sidebar2 %}{% endblock %} 23 | -------------------------------------------------------------------------------- /Flask-Script-cn/_themes/flask_small/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | nosidebar = true 5 | pygments_style = flask_theme_support.FlaskyStyle 6 | 7 | [options] 8 | index_logo = '' 9 | index_logo_height = 120px 10 | github_fork = '' 11 | -------------------------------------------------------------------------------- /Flask-Testing-cn/docs/_build/doctrees/environment.pickle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs/_build/doctrees/environment.pickle -------------------------------------------------------------------------------- /Flask-Testing-cn/docs/_build/doctrees/index.doctree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs/_build/doctrees/index.doctree -------------------------------------------------------------------------------- /Flask-Testing-cn/docs/_build/html/.buildinfo: -------------------------------------------------------------------------------- 1 | # Sphinx build info version 1 2 | # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. 3 | config: a0f8c736f5a7ea4055e87667efc296cc 4 | tags: 645f666f9bcd5a90fca523b33c5a78b7 5 | -------------------------------------------------------------------------------- /Flask-Testing-cn/docs/_build/html/_static/ajax-loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs/_build/html/_static/ajax-loader.gif -------------------------------------------------------------------------------- /Flask-Testing-cn/docs/_build/html/_static/comment-bright.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs/_build/html/_static/comment-bright.png -------------------------------------------------------------------------------- /Flask-Testing-cn/docs/_build/html/_static/comment-close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs/_build/html/_static/comment-close.png -------------------------------------------------------------------------------- /Flask-Testing-cn/docs/_build/html/_static/comment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs/_build/html/_static/comment.png -------------------------------------------------------------------------------- /Flask-Testing-cn/docs/_build/html/_static/down-pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs/_build/html/_static/down-pressed.png -------------------------------------------------------------------------------- /Flask-Testing-cn/docs/_build/html/_static/down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs/_build/html/_static/down.png -------------------------------------------------------------------------------- /Flask-Testing-cn/docs/_build/html/_static/file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs/_build/html/_static/file.png -------------------------------------------------------------------------------- /Flask-Testing-cn/docs/_build/html/_static/flask-testing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs/_build/html/_static/flask-testing.png -------------------------------------------------------------------------------- /Flask-Testing-cn/docs/_build/html/_static/minus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs/_build/html/_static/minus.png -------------------------------------------------------------------------------- /Flask-Testing-cn/docs/_build/html/_static/plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs/_build/html/_static/plus.png -------------------------------------------------------------------------------- /Flask-Testing-cn/docs/_build/html/_static/up-pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs/_build/html/_static/up-pressed.png -------------------------------------------------------------------------------- /Flask-Testing-cn/docs/_build/html/_static/up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs/_build/html/_static/up.png -------------------------------------------------------------------------------- /Flask-Testing-cn/docs/_build/html/objects.inv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs/_build/html/objects.inv -------------------------------------------------------------------------------- /Flask-Testing-cn/docs/_static/flask-testing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs/_static/flask-testing.png -------------------------------------------------------------------------------- /Flask-Testing-cn/docs/_themes/README: -------------------------------------------------------------------------------- 1 | Flask Sphinx Styles 2 | =================== 3 | 4 | This repository contains sphinx styles for Flask and Flask related 5 | projects. To use this style in your Sphinx documentation, follow 6 | this guide: 7 | 8 | 1. put this folder as _themes into your docs folder. Alternatively 9 | you can also use git submodules to check out the contents there. 10 | 2. add this to your conf.py: 11 | 12 | sys.path.append(os.path.abspath('_themes')) 13 | html_theme_path = ['_themes'] 14 | html_theme = 'flask' 15 | 16 | The following themes exist: 17 | 18 | - 'flask' - the standard flask documentation theme for large 19 | projects 20 | - 'flask_small' - small one-page theme. Intended to be used by 21 | very small addon libraries for flask. 22 | 23 | The following options exist for the flask_small theme: 24 | 25 | [options] 26 | index_logo = '' filename of a picture in _static 27 | to be used as replacement for the 28 | h1 in the index.rst file. 29 | index_logo_height = 120px height of the index logo 30 | github_fork = '' repository name on github for the 31 | "fork me" badge 32 | -------------------------------------------------------------------------------- /Flask-Testing-cn/docs/_themes/flask/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | pygments_style = flask_theme_support.FlaskyStyle 5 | -------------------------------------------------------------------------------- /Flask-Testing-cn/docs/_themes/flask_small/layout.html: -------------------------------------------------------------------------------- 1 | {% extends "basic/layout.html" %} 2 | {% block header %} 3 | {{ super() }} 4 | {% if pagename == 'index' %} 5 |
6 | {% endif %} 7 | {% endblock %} 8 | {% block footer %} 9 | {% if pagename == 'index' %} 10 |
11 | {% endif %} 12 | {% endblock %} 13 | {# do not display relbars #} 14 | {% block relbar1 %}{% endblock %} 15 | {% block relbar2 %} 16 | {% if theme_github_fork %} 17 | Fork me on GitHub 19 | {% endif %} 20 | {% endblock %} 21 | {% block sidebar1 %}{% endblock %} 22 | {% block sidebar2 %}{% endblock %} 23 | -------------------------------------------------------------------------------- /Flask-Testing-cn/docs/_themes/flask_small/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | nosidebar = true 5 | pygments_style = flask_theme_support.FlaskyStyle 6 | 7 | [options] 8 | index_logo = '' 9 | index_logo_height = 120px 10 | github_fork = '' 11 | -------------------------------------------------------------------------------- /Flask-Testing-cn/docs/_themes/flask_theme_support.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs/_themes/flask_theme_support.pyc -------------------------------------------------------------------------------- /Flask-Testing-cn/docs_release/_build/doctrees/environment.pickle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs_release/_build/doctrees/environment.pickle -------------------------------------------------------------------------------- /Flask-Testing-cn/docs_release/_build/doctrees/index.doctree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs_release/_build/doctrees/index.doctree -------------------------------------------------------------------------------- /Flask-Testing-cn/docs_release/_build/html/.buildinfo: -------------------------------------------------------------------------------- 1 | # Sphinx build info version 1 2 | # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. 3 | config: a0f8c736f5a7ea4055e87667efc296cc 4 | tags: 645f666f9bcd5a90fca523b33c5a78b7 5 | -------------------------------------------------------------------------------- /Flask-Testing-cn/docs_release/_build/html/_static/ajax-loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs_release/_build/html/_static/ajax-loader.gif -------------------------------------------------------------------------------- /Flask-Testing-cn/docs_release/_build/html/_static/comment-bright.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs_release/_build/html/_static/comment-bright.png -------------------------------------------------------------------------------- /Flask-Testing-cn/docs_release/_build/html/_static/comment-close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs_release/_build/html/_static/comment-close.png -------------------------------------------------------------------------------- /Flask-Testing-cn/docs_release/_build/html/_static/comment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs_release/_build/html/_static/comment.png -------------------------------------------------------------------------------- /Flask-Testing-cn/docs_release/_build/html/_static/down-pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs_release/_build/html/_static/down-pressed.png -------------------------------------------------------------------------------- /Flask-Testing-cn/docs_release/_build/html/_static/down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs_release/_build/html/_static/down.png -------------------------------------------------------------------------------- /Flask-Testing-cn/docs_release/_build/html/_static/file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs_release/_build/html/_static/file.png -------------------------------------------------------------------------------- /Flask-Testing-cn/docs_release/_build/html/_static/flask-testing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs_release/_build/html/_static/flask-testing.png -------------------------------------------------------------------------------- /Flask-Testing-cn/docs_release/_build/html/_static/minus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs_release/_build/html/_static/minus.png -------------------------------------------------------------------------------- /Flask-Testing-cn/docs_release/_build/html/_static/plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs_release/_build/html/_static/plus.png -------------------------------------------------------------------------------- /Flask-Testing-cn/docs_release/_build/html/_static/up-pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs_release/_build/html/_static/up-pressed.png -------------------------------------------------------------------------------- /Flask-Testing-cn/docs_release/_build/html/_static/up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs_release/_build/html/_static/up.png -------------------------------------------------------------------------------- /Flask-Testing-cn/docs_release/_build/html/objects.inv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs_release/_build/html/objects.inv -------------------------------------------------------------------------------- /Flask-Testing-cn/docs_release/_static/flask-testing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs_release/_static/flask-testing.png -------------------------------------------------------------------------------- /Flask-Testing-cn/docs_release/_themes/README: -------------------------------------------------------------------------------- 1 | Flask Sphinx Styles 2 | =================== 3 | 4 | This repository contains sphinx styles for Flask and Flask related 5 | projects. To use this style in your Sphinx documentation, follow 6 | this guide: 7 | 8 | 1. put this folder as _themes into your docs folder. Alternatively 9 | you can also use git submodules to check out the contents there. 10 | 2. add this to your conf.py: 11 | 12 | sys.path.append(os.path.abspath('_themes')) 13 | html_theme_path = ['_themes'] 14 | html_theme = 'flask' 15 | 16 | The following themes exist: 17 | 18 | - 'flask' - the standard flask documentation theme for large 19 | projects 20 | - 'flask_small' - small one-page theme. Intended to be used by 21 | very small addon libraries for flask. 22 | 23 | The following options exist for the flask_small theme: 24 | 25 | [options] 26 | index_logo = '' filename of a picture in _static 27 | to be used as replacement for the 28 | h1 in the index.rst file. 29 | index_logo_height = 120px height of the index logo 30 | github_fork = '' repository name on github for the 31 | "fork me" badge 32 | -------------------------------------------------------------------------------- /Flask-Testing-cn/docs_release/_themes/flask/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | pygments_style = flask_theme_support.FlaskyStyle 5 | -------------------------------------------------------------------------------- /Flask-Testing-cn/docs_release/_themes/flask_small/layout.html: -------------------------------------------------------------------------------- 1 | {% extends "basic/layout.html" %} 2 | {% block header %} 3 | {{ super() }} 4 | {% if pagename == 'index' %} 5 |
6 | {% endif %} 7 | {% endblock %} 8 | {% block footer %} 9 | {% if pagename == 'index' %} 10 |
11 | {% endif %} 12 | {% endblock %} 13 | {# do not display relbars #} 14 | {% block relbar1 %}{% endblock %} 15 | {% block relbar2 %} 16 | {% if theme_github_fork %} 17 | Fork me on GitHub 19 | {% endif %} 20 | {% endblock %} 21 | {% block sidebar1 %}{% endblock %} 22 | {% block sidebar2 %}{% endblock %} 23 | -------------------------------------------------------------------------------- /Flask-Testing-cn/docs_release/_themes/flask_small/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | nosidebar = true 5 | pygments_style = flask_theme_support.FlaskyStyle 6 | 7 | [options] 8 | index_logo = '' 9 | index_logo_height = 120px 10 | github_fork = '' 11 | -------------------------------------------------------------------------------- /Flask-Testing-cn/docs_release/_themes/flask_theme_support.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-Testing-cn/docs_release/_themes/flask_theme_support.pyc -------------------------------------------------------------------------------- /Flask-WTF-cn/docs/AUTHORS: -------------------------------------------------------------------------------- 1 | * Dan Jacob 2 | * Ron DuPlain 3 | * Daniel Lepage 4 | * Anthony Ford 5 | * Hsiaoming Yang 6 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 by Dan Jacob. 2 | Copyright (c) 2013 - 2014 by Hsiaoming Yang. 3 | 4 | Some rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions are 8 | met: 9 | 10 | * Redistributions of source code must retain the above copyright 11 | notice, this list of conditions and the following disclaimer. 12 | 13 | * Redistributions in binary form must reproduce the above 14 | copyright notice, this list of conditions and the following 15 | disclaimer in the documentation and/or other materials provided 16 | with the distribution. 17 | 18 | * The names of the contributors may not be used to endorse or 19 | promote products derived from this software without specific 20 | prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 26 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 27 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 28 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 29 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 30 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 32 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs/_static/flask-wtf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-WTF-cn/docs/_static/flask-wtf.png -------------------------------------------------------------------------------- /Flask-WTF-cn/docs/_templates/brand.html: -------------------------------------------------------------------------------- 1 |

关于 Flask-WTF

2 |

Flask 的简单 WTForms 集成,包含 CSRF、文件上传和 Recaptcha 集成。

3 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs/_templates/useful-links.html: -------------------------------------------------------------------------------- 1 |

相关链接

2 | 7 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs/_themes/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 by Armin Ronacher. 2 | 3 | Some rights reserved. 4 | 5 | Redistribution and use in source and binary forms of the theme, with or 6 | without modification, are permitted provided that the following conditions 7 | are met: 8 | 9 | * Redistributions of source code must retain the above copyright 10 | notice, this list of conditions and the following disclaimer. 11 | 12 | * Redistributions in binary form must reproduce the above 13 | copyright notice, this list of conditions and the following 14 | disclaimer in the documentation and/or other materials provided 15 | with the distribution. 16 | 17 | * The names of the contributors may not be used to endorse or 18 | promote products derived from this software without specific 19 | prior written permission. 20 | 21 | We kindly ask you to only use these themes in an unmodified manner just 22 | for Flask and Flask-related products, not for unrelated projects. If you 23 | like the visual style and want to use it for your own projects, please 24 | consider making some larger changes to the themes (such as changing 25 | font faces, sizes, colors or margins). 26 | 27 | THIS THEME IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 28 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 29 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 30 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 31 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 32 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 33 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 34 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 35 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 36 | ARISING IN ANY WAY OUT OF THE USE OF THIS THEME, EVEN IF ADVISED OF THE 37 | POSSIBILITY OF SUCH DAMAGE. 38 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs/_themes/README: -------------------------------------------------------------------------------- 1 | Flask Sphinx Styles 2 | =================== 3 | 4 | This repository contains sphinx styles for Flask and Flask related 5 | projects. To use this style in your Sphinx documentation, follow 6 | this guide: 7 | 8 | 1. put this folder as _themes into your docs folder. Alternatively 9 | you can also use git submodules to check out the contents there. 10 | 2. add this to your conf.py: 11 | 12 | sys.path.append(os.path.abspath('_themes')) 13 | html_theme_path = ['_themes'] 14 | html_theme = 'flask' 15 | 16 | The following themes exist: 17 | 18 | - 'flask' - the standard flask documentation theme for large 19 | projects 20 | - 'flask_small' - small one-page theme. Intended to be used by 21 | very small addon libraries for flask. 22 | 23 | The following options exist for the flask_small theme: 24 | 25 | [options] 26 | index_logo = '' filename of a picture in _static 27 | to be used as replacement for the 28 | h1 in the index.rst file. 29 | index_logo_height = 120px height of the index logo 30 | github_fork = '' repository name on github for the 31 | "fork me" badge 32 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs/_themes/flask/layout.html: -------------------------------------------------------------------------------- 1 | {%- extends "basic/layout.html" %} 2 | {%- block extrahead %} 3 | {{ super() }} 4 | {% if theme_touch_icon %} 5 | 6 | {% endif %} 7 | 8 | {% endblock %} 9 | {%- block relbar2 %}{% endblock %} 10 | {% block header %} 11 | {{ super() }} 12 | {% if pagename == 'index' %} 13 |
14 | {% endif %} 15 | {% endblock %} 16 | {%- block footer %} 17 | 21 | {%- block innerfooter %}{%- endblock %} 22 | {% if pagename == 'index' %} 23 |
24 | {% endif %} 25 | {%- endblock %} 26 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs/_themes/flask/relations.html: -------------------------------------------------------------------------------- 1 |

相关主题

2 | 20 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs/_themes/flask/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | pygments_style = flask_theme_support.FlaskyStyle 5 | 6 | [options] 7 | index_logo = 8 | index_logo_height = 120px 9 | touch_icon = 10 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs/_themes/flask_theme_support.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-WTF-cn/docs/_themes/flask_theme_support.pyc -------------------------------------------------------------------------------- /Flask-WTF-cn/docs/api.rst: -------------------------------------------------------------------------------- 1 | 开发者接口 2 | =================== 3 | 4 | 该部分文档涵盖了 Flask-WTF 的全部接口。 5 | 6 | 表单和字段 7 | ---------------- 8 | 9 | .. module:: flask_wtf 10 | 11 | .. autoclass:: Form 12 | :members: 13 | 14 | .. autoclass:: RecaptchaField 15 | 16 | .. autoclass:: Recaptcha 17 | 18 | .. autoclass:: RecaptchaWidget 19 | 20 | .. module:: flask_wtf.file 21 | 22 | .. autoclass:: FileField 23 | :members: 24 | 25 | .. autoclass:: FileAllowed 26 | 27 | .. autoclass:: FileRequired 28 | 29 | .. module:: flask_wtf.html5 30 | 31 | .. autoclass:: SearchInput 32 | 33 | .. autoclass:: SearchField 34 | 35 | .. autoclass:: URLInput 36 | 37 | .. autoclass:: URLField 38 | 39 | .. autoclass:: EmailInput 40 | 41 | .. autoclass:: EmailField 42 | 43 | .. autoclass:: TelInput 44 | 45 | .. autoclass:: TelField 46 | 47 | .. autoclass:: NumberInput 48 | 49 | .. autoclass:: IntegerField 50 | 51 | .. autoclass:: DecimalField 52 | 53 | .. autoclass:: RangeInput 54 | 55 | .. autoclass:: IntegerRangeField 56 | 57 | .. autoclass:: DecimalRangeField 58 | 59 | 60 | CSRF 保护 61 | --------------- 62 | 63 | .. module:: flask_wtf.csrf 64 | 65 | .. autoclass:: CsrfProtect 66 | :members: 67 | 68 | .. autofunction:: generate_csrf 69 | 70 | .. autofunction:: validate_csrf 71 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs/authors.rst: -------------------------------------------------------------------------------- 1 | 作者 2 | ======= 3 | 4 | Flask-WTF 是由 Dan Jacob 创建,现在是由 Hsiaoming Yang 维护。 5 | 6 | 贡献者 7 | ------------ 8 | 9 | 贡献过补丁和建议的人们: 10 | 11 | .. include:: ./AUTHORS 12 | 13 | 更多的贡献者可以在 GitHub_ 上找到。 14 | 15 | .. _GitHub: http://github.com/lepture/flask-wtf/contributors 16 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs/config.rst: -------------------------------------------------------------------------------- 1 | 配置 2 | ============= 3 | 4 | 这里是所有配置的全表。 5 | 6 | 表单和 CSRF 7 | -------------- 8 | 9 | Flask-WTF 完整的配置清单。通常,你不必配置它们。默认的配置就能正常工作。 10 | 11 | ======================== =============================================== 12 | WTF_CSRF_ENABLED 禁用/开启表单的 CSRF 保护。默认是开启。 13 | WTF_CSRF_CHECK_DEFAULT 默认下启用 CSRF 检查针对所有的视图。 14 | 默认值是 True。 15 | WTF_I18N_ENABLED 禁用/开启 I18N 支持。需要和 Flask-Babel 16 | 配合一起使用。默认是开启。 17 | WTF_CSRF_HEADERS 需要检验的 CSRF 令牌 HTTP 头。默认是 18 | **['X-CSRFToken', 'X-CSRF-Token']** 19 | WTF_CSRF_SECRET_KEY 一个随机字符串生成 CSRF 令牌。 20 | 默认同 SECRET_KEY 一样。 21 | WTF_CSRF_TIME_LIMIT CSRF 令牌过期时间。默认是 **3600** 秒。 22 | WTF_CSRF_SSL_STRICT 使用 SSL 时进行严格保护。这会检查 HTTP Referrer, 23 | 验证是否同源。默认为 True 。 24 | WTF_CSRF_METHODS 使用 CSRF 保护的 HTTP 方法。默认是 25 | **['POST', 'PUT', 'PATCH']** 26 | WTF_HIDDEN_TAG 隐藏的 HTML 标签包装的名称。 27 | 默认是 **div** 28 | WTF_HIDDEN_TAG_ATTRS 隐藏的 HTML 标签包装的标签属性。 29 | 默认是 **{'style': 'display:none;'}** 30 | ======================== =============================================== 31 | 32 | 33 | 验证码 34 | --------- 35 | 36 | 你已经在 :ref:`recaptcha` 中了解了这些配置选项。该表为了方便速查。 37 | 38 | ===================== ============================================== 39 | RECAPTCHA_USE_SSL 允许/禁用 Recaptcha 使用 SSL。默认是 False。 40 | RECAPTCHA_PUBLIC_KEY **必须** 公钥。 41 | RECAPTCHA_PRIVATE_KEY **必须** 私钥。 42 | RECAPTCHA_OPTIONS **可选** 配置选项的字典。 43 | https://www.google.com/recaptcha/admin/create 44 | ===================== ============================================== 45 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs/index.rst: -------------------------------------------------------------------------------- 1 | Flask-WTF 2 | ====================================== 3 | 4 | **Flask-WTF** 提供了简单地 WTForms_ 的集成。 5 | 6 | .. _WTForms: http://wtforms.simplecodes.com/docs/ 7 | 8 | .. image:: https://pypip.in/wheel/flask-wtf/badge.svg?style=flat 9 | :target: https://pypi.python.org/pypi/Flask-WTF/ 10 | :alt: Wheel Status 11 | .. image:: https://pypip.in/version/flask-wtf/badge.svg?style=flat 12 | :target: https://pypi.python.org/pypi/Flask-WTF/ 13 | :alt: Latest Version 14 | 15 | 16 | 功能 17 | -------- 18 | 19 | * 集成 wtforms。 20 | * 带有 csrf 令牌的安全表单。 21 | * 全局的 csrf 保护。 22 | * 支持验证码(Recaptcha)。 23 | * 与 Flask-Uploads 一起支持文件上传。 24 | * 国际化集成。 25 | 26 | 用户指南 27 | ------------ 28 | 29 | 这一部分文档是枯燥的,以介绍 Flask-WTF 背景信息开始,接着注重说明使用 Flask-WTF 每步的步骤。 30 | 31 | 32 | .. toctree:: 33 | :maxdepth: 2 34 | 35 | install 36 | quickstart 37 | form 38 | csrf 39 | config 40 | 41 | API 文档 42 | ----------------- 43 | 44 | 如果你正在查询某一个特定的函数,类或者方法的信息的话,这一部分正是你所需要的。 45 | 46 | .. toctree:: 47 | :maxdepth: 2 48 | 49 | api 50 | 51 | 其它注意事项 52 | ---------------- 53 | 54 | 法律信息和更新历史的内容在这一部分。 55 | 56 | .. toctree:: 57 | :maxdepth: 2 58 | 59 | upgrade 60 | changelog 61 | authors 62 | license 63 | 64 | .. _Flask: http://flask.pocoo.org 65 | .. _GitHub: http://github.com/lepture/flask-wtf 66 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs/install.rst: -------------------------------------------------------------------------------- 1 | 安装 2 | ============ 3 | 4 | 该部分文档涵盖了 Flask-WTF 安装。使用任何软件包的第一步即是正确安装它。 5 | 6 | 7 | Distribute & Pip 8 | ---------------- 9 | 10 | 用 `pip `_ 安装 Flask-WTF 是十分简单的:: 11 | 12 | $ pip install Flask-WTF 13 | 14 | 或者,使用 `easy_install `_:: 15 | 16 | $ easy_install Flask-WTF 17 | 18 | 但是,你真的 `不应该这样做 `_。 19 | 20 | 21 | 获取源代码 22 | ------------ 23 | 24 | Flask-WTF 在 GitHub 上活跃开发,代码在 GitHub 上 `始终可用 `_。 25 | 26 | 你也可以克隆公开仓库:: 27 | 28 | git clone git://github.com/lepture/flask-wtf.git 29 | 30 | 下载 `tarball `_:: 31 | 32 | $ curl -OL https://github.com/lepture/flask-wtf/tarball/master 33 | 34 | 或者,下载 `zipball `_:: 35 | 36 | $ curl -OL https://github.com/lepture/flask-wtf/zipball/master 37 | 38 | 39 | 当你有一份源码的副本后,你很容易地就可以把它嵌入到你的 Python 包中,或是安装到 site-packages:: 40 | 41 | $ python setup.py install 42 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs/license.rst: -------------------------------------------------------------------------------- 1 | BSD 许可证 2 | =========== 3 | 4 | .. include:: ./LICENSE 5 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs/quickstart.rst: -------------------------------------------------------------------------------- 1 | 快读入门 2 | ========== 3 | 4 | 急于上手?本页对 Flask-WTF 给出了一个详尽的介绍。假设你已经安装了 Flask-WTF,如果还未安装的话,请先浏览 :doc:`install`。 5 | 6 | 7 | 创建表单 8 | -------------- 9 | 10 | Flask-WTF 提供了对 WTForms 的集成。例如:: 11 | 12 | from flask_wtf import Form 13 | from wtforms import StringField 14 | from wtforms.validators import DataRequired 15 | 16 | class MyForm(Form): 17 | name = StringField('name', validators=[DataRequired()]) 18 | 19 | 20 | .. note:: 21 | 22 | 从 0.9.0 版本开始,Flask-WTF 将不会从 wtforms 中导入任何的内容,用户必须自己从 wtforms 中导入字段。 23 | 24 | 另外,隐藏的 CSRF 令牌会被自动地创建。你可以在模板这样地渲染它: 25 | 26 | .. sourcecode:: html+jinja 27 | 28 |
29 | {{ form.csrf_token }} 30 | {{ form.name.label }} {{ form.name(size=20) }} 31 | 32 |
33 | 34 | 尽管如此,为了创建有效的 XHTML/HTML, Form 类有一个 hidden_tag 方法, 它在一个隐藏的 DIV 标签中渲染任何隐藏的字段,包括 CSRF 字段: 35 | 36 | .. sourcecode:: html+jinja 37 | 38 |
39 | {{ form.hidden_tag() }} 40 | {{ form.name.label }} {{ form.name(size=20) }} 41 | 42 |
43 | 44 | 45 | 验证表单 46 | ---------------- 47 | 48 | 在你的视图处理程序中验证请求:: 49 | 50 | @app.route('/submit', methods=('GET', 'POST')) 51 | def submit(): 52 | form = MyForm() 53 | if form.validate_on_submit(): 54 | return redirect('/success') 55 | return render_template('submit.html', form=form) 56 | 57 | 注意你不需要把 ``request.form`` 传给 Flask-WTF;Flask-WTF 会自动加载。便捷的方法 ``validate_on_submit`` 将会检查是否是一个 POST 请求并且请求是否有效。 58 | 59 | 阅读 :doc:`form` 学习更多的关于表单的技巧。 60 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs/upgrade.rst: -------------------------------------------------------------------------------- 1 | 升级到新版本 2 | ================== 3 | 4 | Flask-WTF 像其它软件一样随时间推移而改动。大多数改动是良性的,就是当你升级到新版而无需做出任何改动的良性。 5 | 6 | 尽管如此,每隔一段时间,就会有需要你对代码做出改动或是允许你改善你自己的代码质量来从 Flask-WTF 新特性获益的改动。 7 | 8 | 本节文档列举所有 Flask-WTF 版本中的所有变更以及如何进行无痛苦的升级。 9 | 10 | 如果你想用 pip 命令升级 Flask-WTF,确保传递 -U 参数:: 11 | 12 | $ pip install -U Flask-WTF 13 | 14 | 15 | 版本 0.9.0 16 | ------------- 17 | 18 | 移除 wtforms 的导入是一个重大的改变,这可能会给你带来许多痛苦,但这些导入项难以维护。你需要从原始的 WTForms 中导入 ``Fields`` ,而不是从 Flask-WTF 中导入:: 19 | 20 | from wtforms import TextField 21 | 22 | 配置选项 ``CSRF_ENABLED`` 改为 ``WTF_CSRF_ENABLED`` 。如果你没有设置任何配置选项,那么你无须做任何变动。 23 | 24 | 这个版本有很多的特色功能,如果你不需要他们,他们不会对你的任何代码有影响。 25 | 26 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs_release/AUTHORS: -------------------------------------------------------------------------------- 1 | * Dan Jacob 2 | * Ron DuPlain 3 | * Daniel Lepage 4 | * Anthony Ford 5 | * Hsiaoming Yang 6 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs_release/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 by Dan Jacob. 2 | Copyright (c) 2013 - 2014 by Hsiaoming Yang. 3 | 4 | Some rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions are 8 | met: 9 | 10 | * Redistributions of source code must retain the above copyright 11 | notice, this list of conditions and the following disclaimer. 12 | 13 | * Redistributions in binary form must reproduce the above 14 | copyright notice, this list of conditions and the following 15 | disclaimer in the documentation and/or other materials provided 16 | with the distribution. 17 | 18 | * The names of the contributors may not be used to endorse or 19 | promote products derived from this software without specific 20 | prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 26 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 27 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 28 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 29 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 30 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 32 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs_release/_static/flask-wtf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-WTF-cn/docs_release/_static/flask-wtf.png -------------------------------------------------------------------------------- /Flask-WTF-cn/docs_release/_templates/brand.html: -------------------------------------------------------------------------------- 1 |

关于 Flask-WTF

2 |

Flask 的简单 WTForms 集成,包含 CSRF、文件上传和 Recaptcha 集成。

3 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs_release/_templates/useful-links.html: -------------------------------------------------------------------------------- 1 |

相关链接

2 | 7 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs_release/_themes/README: -------------------------------------------------------------------------------- 1 | Flask Sphinx Styles 2 | =================== 3 | 4 | This repository contains sphinx styles for Flask and Flask related 5 | projects. To use this style in your Sphinx documentation, follow 6 | this guide: 7 | 8 | 1. put this folder as _themes into your docs folder. Alternatively 9 | you can also use git submodules to check out the contents there. 10 | 2. add this to your conf.py: 11 | 12 | sys.path.append(os.path.abspath('_themes')) 13 | html_theme_path = ['_themes'] 14 | html_theme = 'flask' 15 | 16 | The following themes exist: 17 | 18 | - 'flask' - the standard flask documentation theme for large 19 | projects 20 | - 'flask_small' - small one-page theme. Intended to be used by 21 | very small addon libraries for flask. 22 | 23 | The following options exist for the flask_small theme: 24 | 25 | [options] 26 | index_logo = '' filename of a picture in _static 27 | to be used as replacement for the 28 | h1 in the index.rst file. 29 | index_logo_height = 120px height of the index logo 30 | github_fork = '' repository name on github for the 31 | "fork me" badge 32 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs_release/_themes/flask/layout.html: -------------------------------------------------------------------------------- 1 | {%- extends "basic/layout.html" %} 2 | {%- block extrahead %} 3 | {{ super() }} 4 | {% if theme_touch_icon %} 5 | 6 | {% endif %} 7 | 8 | {% endblock %} 9 | {%- block relbar2 %}{% endblock %} 10 | {% block header %} 11 | {{ super() }} 12 | {% if pagename == 'index' %} 13 |
14 | {% endif %} 15 | {% endblock %} 16 | {%- block footer %} 17 | 43 | {%- block innerfooter %}{%- endblock %} 44 | {% if pagename == 'index' %} 45 |
46 | {% endif %} 47 | {%- endblock %} 48 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs_release/_themes/flask/relations.html: -------------------------------------------------------------------------------- 1 |

相关主题

2 | 20 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs_release/_themes/flask/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | pygments_style = flask_theme_support.FlaskyStyle 5 | 6 | [options] 7 | index_logo = 8 | index_logo_height = 120px 9 | touch_icon = 10 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs_release/_themes/flask_theme_support.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-WTF-cn/docs_release/_themes/flask_theme_support.pyc -------------------------------------------------------------------------------- /Flask-WTF-cn/docs_release/api.rst: -------------------------------------------------------------------------------- 1 | 开发者接口 2 | =================== 3 | 4 | 该部分文档涵盖了 Flask-WTF 的全部接口。 5 | 6 | 表单和字段 7 | ---------------- 8 | 9 | .. module:: flask_wtf 10 | 11 | .. autoclass:: Form 12 | :members: 13 | 14 | .. autoclass:: RecaptchaField 15 | 16 | .. autoclass:: Recaptcha 17 | 18 | .. autoclass:: RecaptchaWidget 19 | 20 | .. module:: flask_wtf.file 21 | 22 | .. autoclass:: FileField 23 | :members: 24 | 25 | .. autoclass:: FileAllowed 26 | 27 | .. autoclass:: FileRequired 28 | 29 | .. module:: flask_wtf.html5 30 | 31 | .. autoclass:: SearchInput 32 | 33 | .. autoclass:: SearchField 34 | 35 | .. autoclass:: URLInput 36 | 37 | .. autoclass:: URLField 38 | 39 | .. autoclass:: EmailInput 40 | 41 | .. autoclass:: EmailField 42 | 43 | .. autoclass:: TelInput 44 | 45 | .. autoclass:: TelField 46 | 47 | .. autoclass:: NumberInput 48 | 49 | .. autoclass:: IntegerField 50 | 51 | .. autoclass:: DecimalField 52 | 53 | .. autoclass:: RangeInput 54 | 55 | .. autoclass:: IntegerRangeField 56 | 57 | .. autoclass:: DecimalRangeField 58 | 59 | 60 | CSRF 保护 61 | --------------- 62 | 63 | .. module:: flask_wtf.csrf 64 | 65 | .. autoclass:: CsrfProtect 66 | :members: 67 | 68 | .. autofunction:: generate_csrf 69 | 70 | .. autofunction:: validate_csrf 71 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs_release/authors.rst: -------------------------------------------------------------------------------- 1 | 作者 2 | ======= 3 | 4 | Flask-WTF 是由 Dan Jacob 创建,现在是由 Hsiaoming Yang 维护。 5 | 6 | 贡献者 7 | ------------ 8 | 9 | 贡献过补丁和建议的人们: 10 | 11 | .. include:: ./AUTHORS 12 | 13 | 更多的贡献者可以在 GitHub_ 上找到。 14 | 15 | .. _GitHub: http://github.com/lepture/flask-wtf/contributors 16 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs_release/config.rst: -------------------------------------------------------------------------------- 1 | 配置 2 | ============= 3 | 4 | 这里是所有配置的全表。 5 | 6 | 表单和 CSRF 7 | -------------- 8 | 9 | Flask-WTF 完整的配置清单。通常,你不必配置它们。默认的配置就能正常工作。 10 | 11 | ======================== =============================================== 12 | WTF_CSRF_ENABLED 禁用/开启表单的 CSRF 保护。默认是开启。 13 | WTF_CSRF_CHECK_DEFAULT 默认下启用 CSRF 检查针对所有的视图。 14 | 默认值是 True。 15 | WTF_I18N_ENABLED 禁用/开启 I18N 支持。需要和 Flask-Babel 16 | 配合一起使用。默认是开启。 17 | WTF_CSRF_HEADERS 需要检验的 CSRF 令牌 HTTP 头。默认是 18 | **['X-CSRFToken', 'X-CSRF-Token']** 19 | WTF_CSRF_SECRET_KEY 一个随机字符串生成 CSRF 令牌。 20 | 默认同 SECRET_KEY 一样。 21 | WTF_CSRF_TIME_LIMIT CSRF 令牌过期时间。默认是 **3600** 秒。 22 | WTF_CSRF_SSL_STRICT 使用 SSL 时进行严格保护。这会检查 HTTP Referrer, 23 | 验证是否同源。默认为 True 。 24 | WTF_CSRF_METHODS 使用 CSRF 保护的 HTTP 方法。默认是 25 | **['POST', 'PUT', 'PATCH']** 26 | WTF_HIDDEN_TAG 隐藏的 HTML 标签包装的名称。 27 | 默认是 **div** 28 | WTF_HIDDEN_TAG_ATTRS 隐藏的 HTML 标签包装的标签属性。 29 | 默认是 **{'style': 'display:none;'}** 30 | ======================== =============================================== 31 | 32 | 33 | 验证码 34 | --------- 35 | 36 | 你已经在 :ref:`recaptcha` 中了解了这些配置选项。该表为了方便速查。 37 | 38 | ===================== ============================================== 39 | RECAPTCHA_USE_SSL 允许/禁用 Recaptcha 使用 SSL。默认是 False。 40 | RECAPTCHA_PUBLIC_KEY **必须** 公钥。 41 | RECAPTCHA_PRIVATE_KEY **必须** 私钥。 42 | RECAPTCHA_OPTIONS **可选** 配置选项的字典。 43 | https://www.google.com/recaptcha/admin/create 44 | ===================== ============================================== 45 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs_release/index.rst: -------------------------------------------------------------------------------- 1 | Flask-WTF 2 | ====================================== 3 | 4 | **Flask-WTF** 提供了简单地 WTForms_ 的集成。 5 | 6 | .. _WTForms: http://wtforms.simplecodes.com/docs/ 7 | 8 | .. image:: https://pypip.in/wheel/flask-wtf/badge.svg?style=flat 9 | :target: https://pypi.python.org/pypi/Flask-WTF/ 10 | :alt: Wheel Status 11 | .. image:: https://pypip.in/version/flask-wtf/badge.svg?style=flat 12 | :target: https://pypi.python.org/pypi/Flask-WTF/ 13 | :alt: Latest Version 14 | 15 | 16 | 功能 17 | -------- 18 | 19 | * 集成 wtforms。 20 | * 带有 csrf 令牌的安全表单。 21 | * 全局的 csrf 保护。 22 | * 支持验证码(Recaptcha)。 23 | * 与 Flask-Uploads 一起支持文件上传。 24 | * 国际化集成。 25 | 26 | 用户指南 27 | ------------ 28 | 29 | 这一部分文档是枯燥的,以介绍 Flask-WTF 背景信息开始,接着注重说明使用 Flask-WTF 每步的步骤。 30 | 31 | 32 | .. toctree:: 33 | :maxdepth: 2 34 | 35 | install 36 | quickstart 37 | form 38 | csrf 39 | config 40 | 41 | API 文档 42 | ----------------- 43 | 44 | 如果你正在查询某一个特定的函数,类或者方法的信息的话,这一部分正是你所需要的。 45 | 46 | .. toctree:: 47 | :maxdepth: 2 48 | 49 | api 50 | 51 | 其它注意事项 52 | ---------------- 53 | 54 | 法律信息和更新历史的内容在这一部分。 55 | 56 | .. toctree:: 57 | :maxdepth: 2 58 | 59 | upgrade 60 | changelog 61 | authors 62 | license 63 | 64 | .. _Flask: http://flask.pocoo.org 65 | .. _GitHub: http://github.com/lepture/flask-wtf 66 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs_release/install.rst: -------------------------------------------------------------------------------- 1 | 安装 2 | ============ 3 | 4 | 该部分文档涵盖了 Flask-WTF 安装。使用任何软件包的第一步即是正确安装它。 5 | 6 | 7 | Distribute & Pip 8 | ---------------- 9 | 10 | 用 `pip `_ 安装 Flask-WTF 是十分简单的:: 11 | 12 | $ pip install Flask-WTF 13 | 14 | 或者,使用 `easy_install `_:: 15 | 16 | $ easy_install Flask-WTF 17 | 18 | 但是,你真的 `不应该这样做 `_。 19 | 20 | 21 | 获取源代码 22 | ------------ 23 | 24 | Flask-WTF 在 GitHub 上活跃开发,代码在 GitHub 上 `始终可用 `_。 25 | 26 | 你也可以克隆公开仓库:: 27 | 28 | git clone git://github.com/lepture/flask-wtf.git 29 | 30 | 下载 `tarball `_:: 31 | 32 | $ curl -OL https://github.com/lepture/flask-wtf/tarball/master 33 | 34 | 或者,下载 `zipball `_:: 35 | 36 | $ curl -OL https://github.com/lepture/flask-wtf/zipball/master 37 | 38 | 39 | 当你有一份源码的副本后,你很容易地就可以把它嵌入到你的 Python 包中,或是安装到 site-packages:: 40 | 41 | $ python setup.py install 42 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs_release/license.rst: -------------------------------------------------------------------------------- 1 | BSD 许可证 2 | =========== 3 | 4 | .. include:: ./LICENSE 5 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs_release/quickstart.rst: -------------------------------------------------------------------------------- 1 | 快读入门 2 | ========== 3 | 4 | 急于上手?本页对 Flask-WTF 给出了一个详尽的介绍。假设你已经安装了 Flask-WTF,如果还未安装的话,请先浏览 :doc:`install`。 5 | 6 | 7 | 创建表单 8 | -------------- 9 | 10 | Flask-WTF 提供了对 WTForms 的集成。例如:: 11 | 12 | from flask_wtf import Form 13 | from wtforms import StringField 14 | from wtforms.validators import DataRequired 15 | 16 | class MyForm(Form): 17 | name = StringField('name', validators=[DataRequired()]) 18 | 19 | 20 | .. note:: 21 | 22 | 从 0.9.0 版本开始,Flask-WTF 将不会从 wtforms 中导入任何的内容,用户必须自己从 wtforms 中导入字段。 23 | 24 | 另外,隐藏的 CSRF 令牌会被自动地创建。你可以在模板这样地渲染它: 25 | 26 | .. sourcecode:: html+jinja 27 | 28 |
29 | {{ form.csrf_token }} 30 | {{ form.name.label }} {{ form.name(size=20) }} 31 | 32 |
33 | 34 | 尽管如此,为了创建有效的 XHTML/HTML, Form 类有一个 hidden_tag 方法, 它在一个隐藏的 DIV 标签中渲染任何隐藏的字段,包括 CSRF 字段: 35 | 36 | .. sourcecode:: html+jinja 37 | 38 |
39 | {{ form.hidden_tag() }} 40 | {{ form.name.label }} {{ form.name(size=20) }} 41 | 42 |
43 | 44 | 45 | 验证表单 46 | ---------------- 47 | 48 | 在你的视图处理程序中验证请求:: 49 | 50 | @app.route('/submit', methods=('GET', 'POST')) 51 | def submit(): 52 | form = MyForm() 53 | if form.validate_on_submit(): 54 | return redirect('/success') 55 | return render_template('submit.html', form=form) 56 | 57 | 注意你不需要把 ``request.form`` 传给 Flask-WTF;Flask-WTF 会自动加载。便捷的方法 ``validate_on_submit`` 将会检查是否是一个 POST 请求并且请求是否有效。 58 | 59 | 阅读 :doc:`form` 学习更多的关于表单的技巧。 60 | -------------------------------------------------------------------------------- /Flask-WTF-cn/docs_release/upgrade.rst: -------------------------------------------------------------------------------- 1 | 升级到新版本 2 | ================== 3 | 4 | Flask-WTF 像其它软件一样随时间推移而改动。大多数改动是良性的,就是当你升级到新版而无需做出任何改动的良性。 5 | 6 | 尽管如此,每隔一段时间,就会有需要你对代码做出改动或是允许你改善你自己的代码质量来从 Flask-WTF 新特性获益的改动。 7 | 8 | 本节文档列举所有 Flask-WTF 版本中的所有变更以及如何进行无痛苦的升级。 9 | 10 | 如果你想用 pip 命令升级 Flask-WTF,确保传递 -U 参数:: 11 | 12 | $ pip install -U Flask-WTF 13 | 14 | 15 | 版本 0.9.0 16 | ------------- 17 | 18 | 移除 wtforms 的导入是一个重大的改变,这可能会给你带来许多痛苦,但这些导入项难以维护。你需要从原始的 WTForms 中导入 ``Fields`` ,而不是从 Flask-WTF 中导入:: 19 | 20 | from wtforms import TextField 21 | 22 | 配置选项 ``CSRF_ENABLED`` 改为 ``WTF_CSRF_ENABLED`` 。如果你没有设置任何配置选项,那么你无须做任何变动。 23 | 24 | 这个版本有很多的特色功能,如果你不需要他们,他们不会对你的任何代码有影响。 25 | 26 | -------------------------------------------------------------------------------- /Flask-cache-cn/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | *.pyc 3 | 4 | *.pyc 5 | -------------------------------------------------------------------------------- /Flask-cache-cn/docs/_static/flask-cache.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-cache-cn/docs/_static/flask-cache.png -------------------------------------------------------------------------------- /Flask-cache-cn/docs/_themes/README: -------------------------------------------------------------------------------- 1 | Flask Sphinx Styles 2 | =================== 3 | 4 | This repository contains sphinx styles for Flask and Flask related 5 | projects. To use this style in your Sphinx documentation, follow 6 | this guide: 7 | 8 | 1. put this folder as _themes into your docs folder. Alternatively 9 | you can also use git submodules to check out the contents there. 10 | 2. add this to your conf.py: 11 | 12 | sys.path.append(os.path.abspath('_themes')) 13 | html_theme_path = ['_themes'] 14 | html_theme = 'flask' 15 | 16 | The following themes exist: 17 | 18 | - 'flask' - the standard flask documentation theme for large 19 | projects 20 | - 'flask_small' - small one-page theme. Intended to be used by 21 | very small addon libraries for flask. 22 | 23 | The following options exist for the flask_small theme: 24 | 25 | [options] 26 | index_logo = '' filename of a picture in _static 27 | to be used as replacement for the 28 | h1 in the index.rst file. 29 | index_logo_height = 120px height of the index logo 30 | github_fork = '' repository name on github for the 31 | "fork me" badge 32 | -------------------------------------------------------------------------------- /Flask-cache-cn/docs/_themes/flask/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | pygments_style = flask_theme_support.FlaskyStyle 5 | -------------------------------------------------------------------------------- /Flask-cache-cn/docs/_themes/flask_small/layout.html: -------------------------------------------------------------------------------- 1 | {% extends "basic/layout.html" %} 2 | {% block header %} 3 | {{ super() }} 4 | {% if pagename == 'index' %} 5 |
6 | {% endif %} 7 | {% endblock %} 8 | {% block footer %} 9 | {% if pagename == 'index' %} 10 |
11 | {% endif %} 12 | {% endblock %} 13 | {# do not display relbars #} 14 | {% block relbar1 %}{% endblock %} 15 | {% block relbar2 %} 16 | {% if theme_github_fork %} 17 | Fork me on GitHub 19 | {% endif %} 20 | {% endblock %} 21 | {% block sidebar1 %}{% endblock %} 22 | {% block sidebar2 %}{% endblock %} 23 | -------------------------------------------------------------------------------- /Flask-cache-cn/docs/_themes/flask_small/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | nosidebar = true 5 | pygments_style = flask_theme_support.FlaskyStyle 6 | 7 | [options] 8 | index_logo = '' 9 | index_logo_height = 120px 10 | github_fork = '' 11 | -------------------------------------------------------------------------------- /Flask-cache-cn/docs_release/_static/flask-cache.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-cache-cn/docs_release/_static/flask-cache.png -------------------------------------------------------------------------------- /Flask-cache-cn/docs_release/_themes/README: -------------------------------------------------------------------------------- 1 | Flask Sphinx Styles 2 | =================== 3 | 4 | This repository contains sphinx styles for Flask and Flask related 5 | projects. To use this style in your Sphinx documentation, follow 6 | this guide: 7 | 8 | 1. put this folder as _themes into your docs folder. Alternatively 9 | you can also use git submodules to check out the contents there. 10 | 2. add this to your conf.py: 11 | 12 | sys.path.append(os.path.abspath('_themes')) 13 | html_theme_path = ['_themes'] 14 | html_theme = 'flask' 15 | 16 | The following themes exist: 17 | 18 | - 'flask' - the standard flask documentation theme for large 19 | projects 20 | - 'flask_small' - small one-page theme. Intended to be used by 21 | very small addon libraries for flask. 22 | 23 | The following options exist for the flask_small theme: 24 | 25 | [options] 26 | index_logo = '' filename of a picture in _static 27 | to be used as replacement for the 28 | h1 in the index.rst file. 29 | index_logo_height = 120px height of the index logo 30 | github_fork = '' repository name on github for the 31 | "fork me" badge 32 | -------------------------------------------------------------------------------- /Flask-cache-cn/docs_release/_themes/flask/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | pygments_style = flask_theme_support.FlaskyStyle 5 | -------------------------------------------------------------------------------- /Flask-cache-cn/docs_release/_themes/flask_small/layout.html: -------------------------------------------------------------------------------- 1 | {% extends "basic/layout.html" %} 2 | {% block header %} 3 | {{ super() }} 4 | {% if pagename == 'index' %} 5 |
6 | {% endif %} 7 | {% endblock %} 8 | {% block footer %} 9 | {% if pagename == 'index' %} 10 |
11 | {% endif %} 12 | {% endblock %} 13 | {# do not display relbars #} 14 | {% block relbar1 %}{% endblock %} 15 | {% block relbar2 %} 16 | {% if theme_github_fork %} 17 | Fork me on GitHub 19 | {% endif %} 20 | {% endblock %} 21 | {% block sidebar1 %}{% endblock %} 22 | {% block sidebar2 %}{% endblock %} 23 | -------------------------------------------------------------------------------- /Flask-cache-cn/docs_release/_themes/flask_small/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | nosidebar = true 5 | pygments_style = flask_theme_support.FlaskyStyle 6 | 7 | [options] 8 | index_logo = '' 9 | index_logo_height = 120px 10 | github_fork = '' 11 | -------------------------------------------------------------------------------- /Flask-dashed-cn/.buildinfo: -------------------------------------------------------------------------------- 1 | # Sphinx build info version 1 2 | # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. 3 | config: e744093b1101ba66b42d56f4f475d1d6 4 | tags: fbb0d17656682115ca4d033fb2f83ba1 5 | -------------------------------------------------------------------------------- /Flask-dashed-cn/_images/screen-edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-dashed-cn/_images/screen-edit.png -------------------------------------------------------------------------------- /Flask-dashed-cn/_images/screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-dashed-cn/_images/screen.png -------------------------------------------------------------------------------- /Flask-dashed-cn/_sources/api.txt: -------------------------------------------------------------------------------- 1 | Api 2 | === 3 | 4 | Admin 对象 5 | ------------ 6 | 7 | .. currentmodule:: None 8 | 9 | .. autoclass:: admin.Admin 10 | :members: 11 | 12 | 13 | Admin 模块 14 | ------------- 15 | 16 | .. autofunction:: admin.recursive_getattr 17 | 18 | 19 | .. autoclass:: admin.AdminNode 20 | :members: 21 | 22 | .. autoclass:: admin.AdminModule 23 | :members: 24 | 25 | 26 | SQLAlchemy 扩展 27 | -------------------- 28 | .. autoclass:: ext.sqlalchemy.ModelAdminModule 29 | :members: 30 | -------------------------------------------------------------------------------- /Flask-dashed-cn/_sources/index.txt: -------------------------------------------------------------------------------- 1 | .. Flask_Dashed documentation master file, created by 2 | sphinx-quickstart on Sun Sep 18 03:32:57 2011. 3 | You can adapt this file completely to your liking, but it should at least 4 | contain the root `toctree` directive. 5 | 6 | 欢迎来到 Flask_Dashed 的文档! 7 | ======================================== 8 | 9 | 10 | .. include:: README.rst 11 | 12 | 13 | API 参考 14 | ------------- 15 | 16 | .. toctree:: 17 | :maxdepth: 3 18 | 19 | api 20 | 21 | 索引和表 22 | ================== 23 | 24 | * :ref:`genindex` 25 | * :ref:`modindex` 26 | * :ref:`search` 27 | 28 | -------------------------------------------------------------------------------- /Flask-dashed-cn/_static/ajax-loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-dashed-cn/_static/ajax-loader.gif -------------------------------------------------------------------------------- /Flask-dashed-cn/_static/comment-bright.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-dashed-cn/_static/comment-bright.png -------------------------------------------------------------------------------- /Flask-dashed-cn/_static/comment-close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-dashed-cn/_static/comment-close.png -------------------------------------------------------------------------------- /Flask-dashed-cn/_static/comment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-dashed-cn/_static/comment.png -------------------------------------------------------------------------------- /Flask-dashed-cn/_static/down-pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-dashed-cn/_static/down-pressed.png -------------------------------------------------------------------------------- /Flask-dashed-cn/_static/down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-dashed-cn/_static/down.png -------------------------------------------------------------------------------- /Flask-dashed-cn/_static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-dashed-cn/_static/favicon.ico -------------------------------------------------------------------------------- /Flask-dashed-cn/_static/file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-dashed-cn/_static/file.png -------------------------------------------------------------------------------- /Flask-dashed-cn/_static/minus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-dashed-cn/_static/minus.png -------------------------------------------------------------------------------- /Flask-dashed-cn/_static/plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-dashed-cn/_static/plus.png -------------------------------------------------------------------------------- /Flask-dashed-cn/_static/screen-edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-dashed-cn/_static/screen-edit.png -------------------------------------------------------------------------------- /Flask-dashed-cn/_static/screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-dashed-cn/_static/screen.png -------------------------------------------------------------------------------- /Flask-dashed-cn/_static/up-pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-dashed-cn/_static/up-pressed.png -------------------------------------------------------------------------------- /Flask-dashed-cn/_static/up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-dashed-cn/_static/up.png -------------------------------------------------------------------------------- /Flask-dashed-cn/objects.inv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-dashed-cn/objects.inv -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs/_static/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-debugtoolbar-cn/docs/_static/.gitignore -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs/_static/example.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-debugtoolbar-cn/docs/_static/example.gif -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs/_static/screenshot-config-panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-debugtoolbar-cn/docs/_static/screenshot-config-panel.png -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs/_static/screenshot-headers-panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-debugtoolbar-cn/docs/_static/screenshot-headers-panel.png -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs/_static/screenshot-logger-panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-debugtoolbar-cn/docs/_static/screenshot-logger-panel.png -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs/_static/screenshot-profiler-panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-debugtoolbar-cn/docs/_static/screenshot-profiler-panel.png -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs/_static/screenshot-request-vars-panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-debugtoolbar-cn/docs/_static/screenshot-request-vars-panel.png -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs/_static/screenshot-sqlalchemy-panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-debugtoolbar-cn/docs/_static/screenshot-sqlalchemy-panel.png -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs/_static/screenshot-template-panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-debugtoolbar-cn/docs/_static/screenshot-template-panel.png -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs/_static/screenshot-time-panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-debugtoolbar-cn/docs/_static/screenshot-time-panel.png -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs/_templates/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-debugtoolbar-cn/docs/_templates/.gitignore -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs/_themes/README: -------------------------------------------------------------------------------- 1 | Flask Sphinx Styles 2 | =================== 3 | 4 | This repository contains sphinx styles for Flask and Flask related 5 | projects. To use this style in your Sphinx documentation, follow 6 | this guide: 7 | 8 | 1. put this folder as _themes into your docs folder. Alternatively 9 | you can also use git submodules to check out the contents there. 10 | 2. add this to your conf.py: 11 | 12 | sys.path.append(os.path.abspath('_themes')) 13 | html_theme_path = ['_themes'] 14 | html_theme = 'flask' 15 | 16 | The following themes exist: 17 | 18 | - 'flask' - the standard flask documentation theme for large 19 | projects 20 | - 'flask_small' - small one-page theme. Intended to be used by 21 | very small addon libraries for flask. 22 | 23 | The following options exist for the flask_small theme: 24 | 25 | [options] 26 | index_logo = '' filename of a picture in _static 27 | to be used as replacement for the 28 | h1 in the index.rst file. 29 | index_logo_height = 120px height of the index logo 30 | github_fork = '' repository name on github for the 31 | "fork me" badge 32 | -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs/_themes/flask/layout.html: -------------------------------------------------------------------------------- 1 | {%- extends "basic/layout.html" %} 2 | {%- block extrahead %} 3 | {{ super() }} 4 | {% if theme_touch_icon %} 5 | 6 | {% endif %} 7 | 9 | {% endblock %} 10 | {%- block relbar2 %}{% endblock %} 11 | {%- block footer %} 12 | 16 | {%- endblock %} 17 | -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs/_themes/flask/relations.html: -------------------------------------------------------------------------------- 1 |

Related Topics

2 | 20 | -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs/_themes/flask/static/small_flask.css: -------------------------------------------------------------------------------- 1 | /* 2 | * small_flask.css_t 3 | * ~~~~~~~~~~~~~~~~~ 4 | * 5 | * :copyright: Copyright 2010 by Armin Ronacher. 6 | * :license: Flask Design License, see LICENSE for details. 7 | */ 8 | 9 | body { 10 | margin: 0; 11 | padding: 20px 30px; 12 | } 13 | 14 | div.documentwrapper { 15 | float: none; 16 | background: white; 17 | } 18 | 19 | div.sphinxsidebar { 20 | display: block; 21 | float: none; 22 | width: 102.5%; 23 | margin: 50px -30px -20px -30px; 24 | padding: 10px 20px; 25 | background: #333; 26 | color: white; 27 | } 28 | 29 | div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p, 30 | div.sphinxsidebar h3 a { 31 | color: white; 32 | } 33 | 34 | div.sphinxsidebar a { 35 | color: #aaa; 36 | } 37 | 38 | div.sphinxsidebar p.logo { 39 | display: none; 40 | } 41 | 42 | div.document { 43 | width: 100%; 44 | margin: 0; 45 | } 46 | 47 | div.related { 48 | display: block; 49 | margin: 0; 50 | padding: 10px 0 20px 0; 51 | } 52 | 53 | div.related ul, 54 | div.related ul li { 55 | margin: 0; 56 | padding: 0; 57 | } 58 | 59 | div.footer { 60 | display: none; 61 | } 62 | 63 | div.bodywrapper { 64 | margin: 0; 65 | } 66 | 67 | div.body { 68 | min-height: 0; 69 | padding: 0; 70 | } 71 | -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs/_themes/flask/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | pygments_style = flask_theme_support.FlaskyStyle 5 | 6 | [options] 7 | touch_icon = 8 | -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs/_themes/flask_small/layout.html: -------------------------------------------------------------------------------- 1 | {% extends "basic/layout.html" %} 2 | {% block header %} 3 | {{ super() }} 4 | {% if pagename == 'index' %} 5 |
6 | {% endif %} 7 | {% endblock %} 8 | {% block footer %} 9 | {% if pagename == 'index' %} 10 |
11 | {% endif %} 12 | {% endblock %} 13 | {# do not display relbars #} 14 | {% block relbar1 %}{% endblock %} 15 | {% block relbar2 %} 16 | {% if theme_github_fork %} 17 | Fork me on GitHub 19 | {% endif %} 20 | {% endblock %} 21 | {% block sidebar1 %}{% endblock %} 22 | {% block sidebar2 %}{% endblock %} 23 | -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs/_themes/flask_small/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | nosidebar = true 5 | pygments_style = flask_theme_support.FlaskyStyle 6 | 7 | [options] 8 | 9 | -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs_release/_static/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-debugtoolbar-cn/docs_release/_static/.gitignore -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs_release/_static/example.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-debugtoolbar-cn/docs_release/_static/example.gif -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs_release/_static/screenshot-config-panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-debugtoolbar-cn/docs_release/_static/screenshot-config-panel.png -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs_release/_static/screenshot-headers-panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-debugtoolbar-cn/docs_release/_static/screenshot-headers-panel.png -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs_release/_static/screenshot-logger-panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-debugtoolbar-cn/docs_release/_static/screenshot-logger-panel.png -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs_release/_static/screenshot-profiler-panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-debugtoolbar-cn/docs_release/_static/screenshot-profiler-panel.png -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs_release/_static/screenshot-request-vars-panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-debugtoolbar-cn/docs_release/_static/screenshot-request-vars-panel.png -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs_release/_static/screenshot-sqlalchemy-panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-debugtoolbar-cn/docs_release/_static/screenshot-sqlalchemy-panel.png -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs_release/_static/screenshot-template-panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-debugtoolbar-cn/docs_release/_static/screenshot-template-panel.png -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs_release/_static/screenshot-time-panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-debugtoolbar-cn/docs_release/_static/screenshot-time-panel.png -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs_release/_templates/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-debugtoolbar-cn/docs_release/_templates/.gitignore -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs_release/_themes/README: -------------------------------------------------------------------------------- 1 | Flask Sphinx Styles 2 | =================== 3 | 4 | This repository contains sphinx styles for Flask and Flask related 5 | projects. To use this style in your Sphinx documentation, follow 6 | this guide: 7 | 8 | 1. put this folder as _themes into your docs folder. Alternatively 9 | you can also use git submodules to check out the contents there. 10 | 2. add this to your conf.py: 11 | 12 | sys.path.append(os.path.abspath('_themes')) 13 | html_theme_path = ['_themes'] 14 | html_theme = 'flask' 15 | 16 | The following themes exist: 17 | 18 | - 'flask' - the standard flask documentation theme for large 19 | projects 20 | - 'flask_small' - small one-page theme. Intended to be used by 21 | very small addon libraries for flask. 22 | 23 | The following options exist for the flask_small theme: 24 | 25 | [options] 26 | index_logo = '' filename of a picture in _static 27 | to be used as replacement for the 28 | h1 in the index.rst file. 29 | index_logo_height = 120px height of the index logo 30 | github_fork = '' repository name on github for the 31 | "fork me" badge 32 | -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs_release/_themes/flask/layout.html: -------------------------------------------------------------------------------- 1 | {%- extends "basic/layout.html" %} 2 | {%- block extrahead %} 3 | {{ super() }} 4 | {% if theme_touch_icon %} 5 | 6 | {% endif %} 7 | 9 | {% endblock %} 10 | {%- block relbar2 %}{% endblock %} 11 | {%- block footer %} 12 | 39 | {%- endblock %} 40 | -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs_release/_themes/flask/relations.html: -------------------------------------------------------------------------------- 1 |

Related Topics

2 | 20 | -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs_release/_themes/flask/static/small_flask.css: -------------------------------------------------------------------------------- 1 | /* 2 | * small_flask.css_t 3 | * ~~~~~~~~~~~~~~~~~ 4 | * 5 | * :copyright: Copyright 2010 by Armin Ronacher. 6 | * :license: Flask Design License, see LICENSE for details. 7 | */ 8 | 9 | body { 10 | margin: 0; 11 | padding: 20px 30px; 12 | } 13 | 14 | div.documentwrapper { 15 | float: none; 16 | background: white; 17 | } 18 | 19 | div.sphinxsidebar { 20 | display: block; 21 | float: none; 22 | width: 102.5%; 23 | margin: 50px -30px -20px -30px; 24 | padding: 10px 20px; 25 | background: #333; 26 | color: white; 27 | } 28 | 29 | div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p, 30 | div.sphinxsidebar h3 a { 31 | color: white; 32 | } 33 | 34 | div.sphinxsidebar a { 35 | color: #aaa; 36 | } 37 | 38 | div.sphinxsidebar p.logo { 39 | display: none; 40 | } 41 | 42 | div.document { 43 | width: 100%; 44 | margin: 0; 45 | } 46 | 47 | div.related { 48 | display: block; 49 | margin: 0; 50 | padding: 10px 0 20px 0; 51 | } 52 | 53 | div.related ul, 54 | div.related ul li { 55 | margin: 0; 56 | padding: 0; 57 | } 58 | 59 | div.footer { 60 | display: none; 61 | } 62 | 63 | div.bodywrapper { 64 | margin: 0; 65 | } 66 | 67 | div.body { 68 | min-height: 0; 69 | padding: 0; 70 | } 71 | -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs_release/_themes/flask/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | pygments_style = flask_theme_support.FlaskyStyle 5 | 6 | [options] 7 | touch_icon = 8 | -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs_release/_themes/flask_small/layout.html: -------------------------------------------------------------------------------- 1 | {% extends "basic/layout.html" %} 2 | {% block header %} 3 | {{ super() }} 4 | {% if pagename == 'index' %} 5 |
6 | {% endif %} 7 | {% endblock %} 8 | {% block footer %} 9 | {% if pagename == 'index' %} 10 |
11 | {% endif %} 12 | {% endblock %} 13 | {# do not display relbars #} 14 | {% block relbar1 %}{% endblock %} 15 | {% block relbar2 %} 16 | {% if theme_github_fork %} 17 | Fork me on GitHub 19 | {% endif %} 20 | {% endblock %} 21 | {% block sidebar1 %}{% endblock %} 22 | {% block sidebar2 %}{% endblock %} 23 | -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs_release/_themes/flask_small/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | nosidebar = true 5 | pygments_style = flask_theme_support.FlaskyStyle 6 | 7 | [options] 8 | index_logo = '' 9 | index_logo_height = 120px 10 | github_fork = '' 11 | -------------------------------------------------------------------------------- /Flask-debugtoolbar-cn/docs_release/_themes/flask_theme_support.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-debugtoolbar-cn/docs_release/_themes/flask_theme_support.pyc -------------------------------------------------------------------------------- /Flask-exceptional-cn/.buildinfo: -------------------------------------------------------------------------------- 1 | # Sphinx build info version 1 2 | # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. 3 | config: 05d2eb28f4fe177950c00e66ded810e5 4 | tags: fbb0d17656682115ca4d033fb2f83ba1 5 | -------------------------------------------------------------------------------- /Flask-exceptional-cn/_static/ajax-loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-exceptional-cn/_static/ajax-loader.gif -------------------------------------------------------------------------------- /Flask-exceptional-cn/_static/comment-bright.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-exceptional-cn/_static/comment-bright.png -------------------------------------------------------------------------------- /Flask-exceptional-cn/_static/comment-close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-exceptional-cn/_static/comment-close.png -------------------------------------------------------------------------------- /Flask-exceptional-cn/_static/comment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-exceptional-cn/_static/comment.png -------------------------------------------------------------------------------- /Flask-exceptional-cn/_static/down-pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-exceptional-cn/_static/down-pressed.png -------------------------------------------------------------------------------- /Flask-exceptional-cn/_static/down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-exceptional-cn/_static/down.png -------------------------------------------------------------------------------- /Flask-exceptional-cn/_static/file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-exceptional-cn/_static/file.png -------------------------------------------------------------------------------- /Flask-exceptional-cn/_static/flask-exceptional.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-exceptional-cn/_static/flask-exceptional.png -------------------------------------------------------------------------------- /Flask-exceptional-cn/_static/minus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-exceptional-cn/_static/minus.png -------------------------------------------------------------------------------- /Flask-exceptional-cn/_static/plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-exceptional-cn/_static/plus.png -------------------------------------------------------------------------------- /Flask-exceptional-cn/_static/up-pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-exceptional-cn/_static/up-pressed.png -------------------------------------------------------------------------------- /Flask-exceptional-cn/_static/up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-exceptional-cn/_static/up.png -------------------------------------------------------------------------------- /Flask-exceptional-cn/objects.inv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sixu05202004/Flask-extensions-docs/78fcc40c1f8e0eb1eb08410dcc6e383fec7266ca/Flask-exceptional-cn/objects.inv -------------------------------------------------------------------------------- /Flask-pymongo-cn/.buildinfo: -------------------------------------------------------------------------------- 1 | # Sphinx build info version 1 2 | # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. 3 | config: e84ad7d5c0efe4b9b7cd08bdf21a1c6c 4 | tags: fbb0d17656682115ca4d033fb2f83ba1 5 | -------------------------------------------------------------------------------- /Flask-pymongo-cn/docs/_themes/README: -------------------------------------------------------------------------------- 1 | Flask Sphinx Styles 2 | =================== 3 | 4 | This repository contains sphinx styles for Flask and Flask related 5 | projects. To use this style in your Sphinx documentation, follow 6 | this guide: 7 | 8 | 1. put this folder as _themes into your docs folder. Alternatively 9 | you can also use git submodules to check out the contents there. 10 | 2. add this to your conf.py: 11 | 12 | sys.path.append(os.path.abspath('_themes')) 13 | html_theme_path = ['_themes'] 14 | html_theme = 'flask' 15 | 16 | The following themes exist: 17 | 18 | - 'flask' - the standard flask documentation theme for large 19 | projects 20 | - 'flask_small' - small one-page theme. Intended to be used by 21 | very small addon libraries for flask. 22 | 23 | The following options exist for the flask_small theme: 24 | 25 | [options] 26 | index_logo = '' filename of a picture in _static 27 | to be used as replacement for the 28 | h1 in the index.rst file. 29 | index_logo_height = 120px height of the index logo 30 | github_fork = '' repository name on github for the 31 | "fork me" badge 32 | -------------------------------------------------------------------------------- /Flask-pymongo-cn/docs/_themes/flask_small/layout.html: -------------------------------------------------------------------------------- 1 | {% extends "basic/layout.html" %} 2 | {% block header %} 3 | {{ super() }} 4 | {% if pagename == 'index' %} 5 |
6 | {% endif %} 7 | {% endblock %} 8 | {% block footer %} 9 | {% if pagename == 'index' %} 10 |
11 | {% endif %} 12 | {% endblock %} 13 | {# do not display relbars #} 14 | {% block relbar1 %}{% endblock %} 15 | {% block relbar2 %} 16 | {% if theme_github_fork %} 17 | Fork me on GitHub 19 | {% endif %} 20 | {% endblock %} 21 | {% block sidebar1 %}{% endblock %} 22 | {% block sidebar2 %}{% endblock %} 23 | -------------------------------------------------------------------------------- /Flask-pymongo-cn/docs/_themes/flask_small/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | nosidebar = true 5 | pygments_style = flask_theme_support.FlaskyStyle 6 | 7 | [options] 8 | index_logo = '' 9 | index_logo_height = 120px 10 | github_fork = '' 11 | -------------------------------------------------------------------------------- /Flask-pymongo-cn/docs/requirements.txt: -------------------------------------------------------------------------------- 1 | Flask >= 0.8 2 | pymongo >= 2.1 3 | -------------------------------------------------------------------------------- /Flask-pymongo-cn/docs_release/_themes/README: -------------------------------------------------------------------------------- 1 | Flask Sphinx Styles 2 | =================== 3 | 4 | This repository contains sphinx styles for Flask and Flask related 5 | projects. To use this style in your Sphinx documentation, follow 6 | this guide: 7 | 8 | 1. put this folder as _themes into your docs folder. Alternatively 9 | you can also use git submodules to check out the contents there. 10 | 2. add this to your conf.py: 11 | 12 | sys.path.append(os.path.abspath('_themes')) 13 | html_theme_path = ['_themes'] 14 | html_theme = 'flask' 15 | 16 | The following themes exist: 17 | 18 | - 'flask' - the standard flask documentation theme for large 19 | projects 20 | - 'flask_small' - small one-page theme. Intended to be used by 21 | very small addon libraries for flask. 22 | 23 | The following options exist for the flask_small theme: 24 | 25 | [options] 26 | index_logo = '' filename of a picture in _static 27 | to be used as replacement for the 28 | h1 in the index.rst file. 29 | index_logo_height = 120px height of the index logo 30 | github_fork = '' repository name on github for the 31 | "fork me" badge 32 | -------------------------------------------------------------------------------- /Flask-pymongo-cn/docs_release/_themes/flask/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | pygments_style = flask_theme_support.FlaskyStyle 5 | -------------------------------------------------------------------------------- /Flask-pymongo-cn/docs_release/_themes/flask_small/layout.html: -------------------------------------------------------------------------------- 1 | {% extends "basic/layout.html" %} 2 | {% block header %} 3 | {{ super() }} 4 | {% if pagename == 'index' %} 5 |
6 | {% endif %} 7 | {% endblock %} 8 | {% block footer %} 9 | {% if pagename == 'index' %} 10 |
11 | {% endif %} 12 | {% endblock %} 13 | {# do not display relbars #} 14 | {% block relbar1 %}{% endblock %} 15 | {% block relbar2 %} 16 | {% if theme_github_fork %} 17 | Fork me on GitHub 19 | {% endif %} 20 | {% endblock %} 21 | {% block sidebar1 %}{% endblock %} 22 | {% block sidebar2 %}{% endblock %} 23 | -------------------------------------------------------------------------------- /Flask-pymongo-cn/docs_release/_themes/flask_small/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = flasky.css 4 | nosidebar = true 5 | pygments_style = flask_theme_support.FlaskyStyle 6 | 7 | [options] 8 | index_logo = '' 9 | index_logo_height = 120px 10 | github_fork = '' 11 | -------------------------------------------------------------------------------- /Flask-pymongo-cn/docs_release/requirements.txt: -------------------------------------------------------------------------------- 1 | Flask >= 0.8 2 | pymongo >= 2.1 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | Flask-extensions-dcos 3 | ======================== 4 | 5 | Flask 扩展中文文档合集 6 | 7 | * Flask-Admin-cn: 翻译完成 8 | * Flask-Babel-cn: http://www.pythondoc.com/flask-babel/index.html 9 | * Flask-cache-cn: http://www.pythondoc.com/flask-cache/index.html 10 | * Flask-dashed-cn: http://www.pythondoc.com/flask-dashed/index.html 11 | * Flask-debugtoolbar-cn: http://www.pythondoc.com/flask-debugtoolbar/index.html 12 | * Flask-exceptional-cn: http://www.pythondoc.com/flask-exceptional/index.html 13 | * Flask-Login-cn: http://www.pythondoc.com/flask-login/index.html 14 | * Flask-Mail-cn: http://www.pythondoc.com/flask-mail/index.html 15 | * Flask-pymongo-cn: http://www.pythondoc.com/flask-pymongo/index.html 16 | * Flask-RESTful-cn: http://www.pythondoc.com/Flask-RESTful/index.html 17 | * Flask-SQLAlchemy-cn: http://www.pythondoc.com/flask-sqlalchemy/index.html 18 | * Flask-Testing-cn: http://www.pythondoc.com/flask-testing/index.html 19 | * Flask-WTF-cn: http://www.pythondoc.com/flask-wtf/index.html 20 | * Flask-Script-cn: 暂未翻译完成 21 | 22 | --------------------------------------------------------------------------------