- The ``__name__`` value assigned to the returned object in the
``bfg_alchemy`` application template's ``MyApp`` model was an
integer. This was incorrect. It is now a string.
| | |
| | | Next release |
| | | ============ |
| | | |
| | | Bug Fixes |
| | | --------- |
| | | |
| | | - Defer conditional import of IPython to avoid breakage under mod_wsgi. |
| | | http://bugs.repoze.org/issue138 |
| | | |
| | | - The ``__name__`` value assigned to the returned object in the |
| | | ``bfg_alchemy`` application template's ``MyApp`` model was an |
| | | integer. This was incorrect. It is now a string. |
| | | |
| | | 1.2 (2010-02-10) |
| | | ================ |
| | | |
| | |
| | | |
| | | Bug Fixes |
| | | --------- |
| | | |
| | | - Defer conditional import of IPython to avoid breakage under mod_wsgi. |
| | | http://bugs.repoze.org/issue138 |
| | | |
| | | - More correct conversion of provided ``renderer`` values to resource |
| | | specification values (internal). |
| | |
| | | def __getitem__(self, key): |
| | | session= DBSession() |
| | | try: |
| | | key = int(key) |
| | | id = int(key) |
| | | except (ValueError, TypeError): |
| | | raise KeyError(key) |
| | | query = session.query(MyModel).filter_by(id=key) |
| | | |
| | | query = session.query(MyModel).filter_by(id=id) |
| | | |
| | | try: |
| | | item = query.one() |
| | | item.__parent__ = self |