Skip to content

Commit

Permalink
Update docs and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Wright committed Oct 10, 2012
1 parent 6b80aae commit a269930
Show file tree
Hide file tree
Showing 15 changed files with 824 additions and 506 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ python:

install:
- pip install . --quiet --use-mirrors
- "if [[ $TRAVIS_PYTHON_VERSION != '2.7' ]]; then pip install importlib simplejson --quiet --use-mirrors; fi"
- pip install nose Flask-SQLAlchemy Flask-MongoEngine Flask-Mail py-bcrypt MySQL-python --quiet --use-mirrors
- "if [[ $TRAVIS_PYTHON_VERSION != '2.7' ]]; then pip install importlib --quiet --use-mirrors; fi"
- pip install nose simplejson Flask-SQLAlchemy Flask-MongoEngine Flask-Mail py-bcrypt MySQL-python --quiet --use-mirrors

before_script:
- mysql -e 'create database flask_security_test;'
Expand Down
297 changes: 297 additions & 0 deletions artwork/logo-helmet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/logo-full.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/logo-helmet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions docs/_templates/sidebarintro.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<h3>About</h3>
<p>
Flask-Security is an opinionated Flask extension which adds basic
security and authentication features to your Flask apps quickly
and easily. Flask-Social can also be used to add "social" or OAuth
login and connection management.
</p>
<h3>Useful Links</h3>
<ul>
<li><a href="http://pypi.python.org/pypi/Flask-Security">Flask-Security @ PyPI</a></li>
<li><a href="http://github.com/mattupstate/flask-security">Flask-Security @ github</a></li>
<li><a href="http://github.com/jfinkels/flask-security/issues">Issue Tracker</a></li>
</ul>
<ul>
<li><a href="http://pypi.python.org/pypi/Flask-Social">Flask-Social</a></li>
<li><a href="http://github.com/mattupstate/flask-social">Flask-Social @ github</a></li>
</ul>
3 changes: 3 additions & 0 deletions docs/_templates/sidebarlogo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p class="logo"><a href="{{ pathto(master_doc) }}">
<img class="logo" src="{{ pathto('_static/logo-helmet.png', 1) }}" alt="Logo"/>
</a></p>
21 changes: 0 additions & 21 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,6 @@ Datastores
:inherited-members:


Exceptions
----------
.. autoexception:: flask_security.exceptions.BadCredentialsError

.. autoexception:: flask_security.exceptions.AuthenticationError

.. autoexception:: flask_security.exceptions.UserNotFoundError

.. autoexception:: flask_security.exceptions.RoleNotFoundError

.. autoexception:: flask_security.exceptions.UserDatastoreError

.. autoexception:: flask_security.exceptions.UserCreationError

.. autoexception:: flask_security.exceptions.RoleCreationError

.. autoexception:: flask_security.exceptions.ConfirmationError

.. autoexception:: flask_security.exceptions.ResetPasswordError


Signals
-------
See the documentation for the signals provided by the Flask-Login and
Expand Down
8 changes: 7 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@
html_theme_options = {
#'github_fork': 'mattupstate/flask-security',
#'index_logo': False
'touch_icon': 'touch-icon.png',
'index_logo': 'logo-full.png'
}

# Add any paths that contain custom themes here, relative to this directory.
Expand Down Expand Up @@ -135,7 +137,11 @@
#html_use_smartypants = True

# Custom sidebar templates, maps document names to template names.
#html_sidebars = {}
html_sidebars = {
'index': ['sidebarintro.html', 'sourcelink.html', 'searchbox.html'],
'**': ['sidebarlogo.html', 'localtoc.html', 'relations.html',
'sourcelink.html', 'searchbox.html']
}

# Additional templates that should be rendered to pages, maps page names to
# template names.
Expand Down
1 change: 0 additions & 1 deletion docs/contents.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Contents
.. toctree::
:maxdepth: 1

overview
features
configuration
quickstart
Expand Down
31 changes: 30 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,36 @@
Flask-Security
==============

Flask-Security quickly adds security features to your Flask application.
Flask-Security allows you to quickly add common security mechanisms to your
Flask application. They include:

1. Session based authentication
2. Role management
3. Password encryption
4. Basic HTTP authentication
5. Token based authentication
6. Token based account activation (optional)
7. Token based password recovery/resetting (optional)
8. User registration (optional)
9. Login tracking (optional)

Many of these features are made possible by integrating various Flask extensions
and libraries. They include:

1. `Flask-Login <http://packages.python.org/Flask-Login/>`_
2. `Flask-Mail <http://packages.python.org/Flask-Mail/>`_
3. `Flask-Principal <http://packages.python.org/Flask-Principal/>`_
4. `Flask-Script <http://packages.python.org/Flask-Script/>`_
5. `Flask-WTF <http://packages.python.org/Flask-Mail/>`_
6. `itsdangerous <http://packages.python.org/itsdangerous/>`_
7. `passlib <http://packages.python.org/passlib/>`_

Additionally, it assumes you'll be using a common library for your database
connections and model definitions. Flask-Security supports the following Flask
extensions out of the box for data persistance:

1. `Flask-SQLAlchemy <http://packages.python.org/Flask-SQLAlchemy/>`_
2. `Flask-MongoEngine <http://packages.python.org/Flask-MongoEngine/>`_


.. include:: contents.rst.inc
33 changes: 0 additions & 33 deletions docs/overview.rst

This file was deleted.

2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ source-dir = docs/
build-dir = docs/_build

[upload_sphinx]
upload-dir = docs/_build/html
upload-dir = docs/_build
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
install_requires=[
'Flask>=0.9',
'Flask-Login>=0.1.3',
'Flask-Mail>=0.6.1',
'Flask-Mail>=0.7.0',
'Flask-Principal>=0.3',
'Flask-WTF>=0.5.4',
'itsdangerous>=0.15',
Expand All @@ -47,7 +47,8 @@
'nose',
'Flask-SQLAlchemy',
'Flask-MongoEngine',
'py-bcrypt'
'py-bcrypt',
'simplejson'
],
classifiers=[
'Development Status :: 4 - Beta',
Expand Down
Loading

0 comments on commit a269930

Please sign in to comment.