Changeset 1347:df2adf8afbfb
- Timestamp:
- 04/26/10 05:54:42 (2 years ago)
- Branch:
- default
- File:
-
- 1 edited
-
zine/database.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
zine/database.py
r1285 r1347 150 150 """ 151 151 152 impl = sqlalchemy. Binary152 impl = sqlalchemy.LargeBinary 153 153 154 154 def process_bind_param(self, value, dialect): … … 236 236 237 237 #: forward some session methods to the module as well 238 for name in 'delete', 'save', 'flush', 'execute', 'begin', 'mapper', \239 'commit', 'rollback', 'clear', 'refresh', 'expire', \240 'query_property':238 for name in ('delete', 'flush', 'execute', 'begin', 'mapper', 239 'commit', 'rollback', 'refresh', 'expire', 240 'query_property'): 241 241 setattr(db, name, getattr(session, name)) 242 243 # Some things changed names with SQLAlchemy 0.6.0 244 db.save = session.add 245 db.clear = session.expunge_all 242 246 243 247 #: and finally hook our own implementations of various objects in
Note: See TracChangeset
for help on using the changeset viewer.