Changeset 5762
- Timestamp:
- 11/24/08 10:32:25 (2 months ago)
- Files:
-
- docs/2.0/docs/main/SQLAlchemy.rst (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
docs/2.0/docs/main/SQLAlchemy.rst
r5616 r5762 22 22 23 23 * `__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. 25 25 26 26 Auto-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. … … 130 130 ------------------------------------------------ 131 131 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` to132 If you don't want to use the default names for your auth-related classes, it's 133 easy to replace them. Please check the documentation for :mod:`repoze.what` to 134 134 learn how to do it. 135 135