diff options
| author | Chris McDonough <chrism@plope.com> | 2010-12-15 12:18:58 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-12-15 12:18:58 -0500 |
| commit | 0570a39ac4f046956ec83b0b900ebfe86cd3af76 (patch) | |
| tree | 24e8b83ea62e8b0ef9be54e06b84b8f2dd1a1884 /docs/tutorials | |
| parent | 73b432d9c9bf353ebee7e090685b4cea6abdce8d (diff) | |
| download | pyramid-0570a39ac4f046956ec83b0b900ebfe86cd3af76.tar.gz pyramid-0570a39ac4f046956ec83b0b900ebfe86cd3af76.tar.bz2 pyramid-0570a39ac4f046956ec83b0b900ebfe86cd3af76.zip | |
closes #66
Diffstat (limited to 'docs/tutorials')
| -rw-r--r-- | docs/tutorials/wiki2/definingmodels.rst | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/docs/tutorials/wiki2/definingmodels.rst b/docs/tutorials/wiki2/definingmodels.rst index c25eb2864..b710e1396 100644 --- a/docs/tutorials/wiki2/definingmodels.rst +++ b/docs/tutorials/wiki2/definingmodels.rst @@ -29,10 +29,7 @@ we're not going to use it. Then, we'll add a ``Page`` class. Because this is a SQLAlchemy application, this class should inherit from an instance of :class:`sqlalchemy.ext.declarative.declarative_base`. Declarative -SQLAlchemy models are easier to use than directly-mapped ones. The -code generated by our ``routesalchemy`` paster template does not use -declarative SQLAlchemy syntax, so we'll need to change various things -to begin to use declarative syntax. +SQLAlchemy models are easier to use than directly-mapped ones. Our ``Page`` class will have a class level attribute ``__tablename__`` which equals the string ``pages``. This means that SQLAlchemy will store our wiki |
