django-authority/docs/index.txt

89 lines
2.1 KiB
Text
Raw Normal View History

.. _index:
2009-07-10 19:28:46 +00:00
============================================
Welcome to django-authority's documentation!
============================================
2009-07-12 14:24:25 +00:00
django-authority is a powerful layer between Django's basic permission system
(provided through ``django.contrib.auth``) and your application:
2009-07-10 19:28:46 +00:00
2009-07-12 08:48:21 +00:00
.. image:: .static/authority-scheme-layer.png
2009-07-12 19:31:00 +00:00
This application provides three abilities:
2009-07-12 08:48:21 +00:00
2009-07-12 19:31:00 +00:00
1. It gives you the ability to add permissions like Django's generic
permissions to any kind of model without having to add them to the model's
Meta class.
2009-07-12 08:48:21 +00:00
2009-07-12 14:24:25 +00:00
2. It provides a very simple way to create per-object-permissions. You might
be more familiar with the term *row level permissions*.
2009-07-12 19:31:00 +00:00
2009-07-12 08:48:21 +00:00
3. It wraps Django's generic permissions so you can use the same syntax as
2009-07-12 19:31:00 +00:00
for the options above. But note that django-authority does not add any
voodoo-code to Django's ``contrib.auth`` system, it keeps your existing
permission system intact!
2009-07-12 14:24:25 +00:00
django-authority uses a cache that is stored on the user object to help improve
performance. However, if the ``Permission`` table changes the cache will need
to be invalidated. More information about this can be found in the tips and
tricks section.
2009-07-12 14:24:25 +00:00
.. warning:: We have just started with the documentation and it's far from
being perfect. If you find glitches, errors or just have feedback, please
contact the team: :ref:`support`.
2009-07-12 19:31:00 +00:00
Documentation
=============
2009-07-12 15:44:06 +00:00
.. note:: The create-permission topics are based on each other. If you are new
to django-authority we encourage to read from top to bottom.
**Installation topics:**
.. toctree::
:maxdepth: 1
2011-02-21 17:04:31 +00:00
2009-07-10 19:28:46 +00:00
installation
configuration
2009-07-12 08:48:21 +00:00
2009-07-12 14:24:25 +00:00
**Create and check permissions:**
2011-02-21 17:04:31 +00:00
.. toctree::
:maxdepth: 1
2011-02-21 17:04:31 +00:00
create_basic_permission
create_per_object_permission
create_custom_permission
2009-07-12 08:48:21 +00:00
2009-07-12 15:44:06 +00:00
**Permission checks in detail**
.. toctree::
:maxdepth: 2
2011-02-21 17:04:31 +00:00
check_python
check_decorator
check_templates
2009-07-12 15:44:06 +00:00
**Permission assigning and handling**
.. toctree::
:maxdepth: 1
2011-02-21 17:04:31 +00:00
handling_python
handling_admin
handling_template
2009-07-12 15:44:06 +00:00
Other pages
===========
2011-02-21 17:04:31 +00:00
2009-07-10 19:28:46 +00:00
* :ref:`search`
* :ref:`genindex`
.. toctree::
:maxdepth: 1
:glob:
2011-02-21 17:04:31 +00:00
tips_tricks
support
2009-07-12 20:04:26 +00:00
documentation_guidelines