Skip to content

Commit

Permalink
returning ConnectionFairy proxy instead of low-level connection
Browse files Browse the repository at this point in the history
  • Loading branch information
zopyx committed Mar 16, 2008
1 parent 62bcbd5 commit 62afd8f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/z3c/sqlalchemy/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def __init__(self, dsn, model=None, transactional=True, engine_options={}, sessi
'transactional' - True|False, only used by SQLAlchemyDA,
*don't touch it*
"""

self.dsn = dsn
self.url = make_url(dsn)
self.host = self.url.host
Expand Down Expand Up @@ -99,7 +98,7 @@ def session(self):

@property
def connection(self):
return self.session.connection()._Connection__connection.connection
return self.session.connection().connection

def registerMapper(self, mapper, name):
self._mappers.registerMapper(mapper, name)
Expand Down

0 comments on commit 62afd8f

Please sign in to comment.