Changeset 5762

Show
Ignore:
Timestamp:
11/24/08 10:32:25 (2 months ago)
Author:
Gustavo
Message:

Updated the SQLAlchemy docs that mention repoze.what

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • docs/2.0/docs/main/SQLAlchemy.rst

    r5616 r5762  
    2222 
    2323* `__init__.py`: This is where the database access is setup. Your tables should be imported into this module, and you're highly encouaged to define them in a separate module - `entities`, for example. 
    24 * `auth.py`: This file will be created if you enabled authentication and authorization in the quickstart. It defines the three tables :mod:`tgext.authorization.quickstart` relies on: `User` (for the registered members in your website), `Group` (for the teams a member may belong to, and to which you can assign permissions) and `Permission` (a permission granted to one or more groups); it also defines two intermediary tables: One for the many-to-many relationship between the groups and the permissions, and another one for the many-to-many relationship between the users and the groups. 
     24* `auth.py`: This file will be created if you enabled authentication and authorization in the quickstart. It defines the three tables :mod:`repoze.what.quickstart` relies on: `User` (for the registered members in your website), `Group` (for the teams a member may belong to, and to which you can assign permissions) and `Permission` (a permission granted to one or more groups); it also defines two intermediary tables: One for the many-to-many relationship between the groups and the permissions, and another one for the many-to-many relationship between the users and the groups. 
    2525 
    2626Auto-reflection of tables has to happen after all the configuration is read, and the app is setup, so we provide simple init_model method (defined in `model/__init__.py`) that is not called until after everything is setup for you. 
     
    130130------------------------------------------------ 
    131131 
    132 If you don't want to use the default names for your auth-related classes, it's easy to replace them. 
    133 Please check the documentation for :mod:`tgext.authorization.quickstart` to 
     132If you don't want to use the default names for your auth-related classes, it's  
     133easy to replace them. Please check the documentation for :mod:`repoze.what` to 
    134134learn how to do it. 
    135135