Pylons / pyramid_tutorials

Tutorials for Pyramid
https://docs.pylonsproject.org/projects/pyramid/en/latest/
89 stars 63 forks source link

sqladdcontent.rst corrections #79

Closed stevepiercy closed 8 years ago

stevepiercy commented 9 years ago

On behalf of Robert Daniels. See: https://groups.google.com/d/msg/pylons-discuss/O6QPYl7YXFo/WEeG7EPI1YAJ

In https://github.com/Pylons/pyramid_tutorials/blob/master/quick_traversal/sqladdcontent.rst

Step 2 - has a typo in "sqltraveral.py", should be "sqltraversal.py"

Since the code is started from copying from the sqlroot project (step 1), you end up inheriting an __init__.py that has a bad reference :

from .models import (
     DBSession,
     Base,
     root_factory
     )

which now lives in the new file squtraversal.py

So the necessary changes to __init__.py are missing on that last tutorial.

stevepiercy commented 9 years ago

Step 2 - has a typo in "sqltraveral.py", should be "sqltraversal.py"

Fixed in https://github.com/stevepiercy/pyramid_tutorials/commit/18f851fcc3110cb5e3aa518b83da9778e11c66ee