- The ``pyramid_routesalchemy`` and ``pyramid_alchemy`` scaffolds
inappropriately used ``DBSession.rollback()`` instead of
``transaction.abort()`` in one place.
- Wiki2 (SQLAlchemy + URL Dispatch) tutorial ``models.initialize_sql`` didn't
match the ``pyramid_routesalchemy`` scaffold function of the same name; it
didn't get synchronized when it was changed in the scaffold.
| | |
| | | second route with the name of a previously added name or c) use a |
| | | Configurator that works in ``autocommit`` mode. |
| | | |
| | | - The ``pyramid_routesalchemy`` and ``pyramid_alchemy`` scaffolds |
| | | inappropriately used ``DBSession.rollback()`` instead of |
| | | ``transaction.abort()`` in one place. |
| | | |
| | | Documentation |
| | | ------------- |
| | | |
| | | - Wiki2 (SQLAlchemy + URL Dispatch) tutorial ``models.initialize_sql`` didn't |
| | | match the ``pyramid_routesalchemy`` scaffold function of the same name; it |
| | | didn't get synchronized when it was changed in the scaffold. |
| | | |
| | | 1.1b1 (2011-07-10) |
| | | ================== |
| | | |
| | |
| | | Pyramid TODOs |
| | | ============= |
| | | |
| | | Must-Have |
| | | --------- |
| | | |
| | | - tutorial models.initialize_sql doesn't match scaffold |
| | | (DBSession.rollback()/transaction.abort() in scaffold vs. "pass" in |
| | | tutorial) |
| | | |
| | | Should-Have |
| | | ----------- |
| | | |
| | |
| | | transaction.commit() |
| | | except IntegrityError: |
| | | # already created |
| | | pass |
| | | transaction.abort() |
| | | |
| | | class RootFactory(object): |
| | | __acl__ = [ (Allow, Everyone, 'view'), |
| | |
| | | try: |
| | | populate() |
| | | except IntegrityError: |
| | | pass |
| | | transaction.abort() |
| | |
| | | transaction.commit() |
| | | except IntegrityError: |
| | | # already created |
| | | pass |
| | | transaction.abort() |
| | |
| | | transaction.commit() |
| | | except IntegrityError: |
| | | # already created |
| | | pass |
| | | transaction.abort() |
| | | |
| | | class RootFactory(object): |
| | | __acl__ = [ (Allow, Everyone, 'view'), |
| | |
| | | transaction.commit() |
| | | except IntegrityError: |
| | | # already created |
| | | pass |
| | | transaction.abort() |
| | |
| | | try: |
| | | populate() |
| | | except IntegrityError: |
| | | DBSession.rollback() |
| | | transaction.abort() |
| | | return DBSession |
| | | |
| | | def appmaker(engine): |
| | |
| | | try: |
| | | populate() |
| | | except IntegrityError: |
| | | DBSession.rollback() |
| | | transaction.abort() |