Skip to content

Commit

Permalink
removed deprecated usage of 'transactional' parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
zopyx committed Aug 4, 2009
1 parent 4602854 commit f2cf50e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/z3c/sqlalchemy/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(self, dsn, model=None, transactional=True, twophase=False,

self._model = util.getModel(self.metadata)

elif callable(model):
elif callable(model):
self._model = model(self.metadata)

else:
Expand Down Expand Up @@ -135,7 +135,7 @@ def model(self):
def _createEngine(self):
self._engine = create_engine(self.dsn, **self.engine_options)
self._sessionmaker = scoped_session(sessionmaker(bind=self._engine,
transactional=True,
autocommit=not self.transactional,
twophase=self.twophase,
autoflush=True,
extension=ZopeTransactionExtension(**self.extension_options),
Expand Down

0 comments on commit f2cf50e

Please sign in to comment.