iro/model/utils.py
branchdevel
changeset 260 4a03119a98c1
parent 122 b55754aa4f96
child 261 6b28b135a919
--- a/iro/model/utils.py	Sun Mar 25 20:11:34 2012 +0200
+++ b/iro/model/utils.py	Thu Mar 29 17:25:14 2012 +0200
@@ -1,7 +1,5 @@
 from sqlalchemy.orm import sessionmaker
 
-from .session import IroSession
-
 class WithSession(object):
     '''a with statement for a database session connection'''
     def __init__(self, engine, autocommit=False):
@@ -9,7 +7,7 @@
         self.autocommit=autocommit
     
     def __enter__(self):
-        self.session = sessionmaker(bind=self.engine, class_ = IroSession)()
+        self.session = sessionmaker(bind=self.engine)()
         return self.session
     
     def __exit__(self,exc_type, exc_value, traceback):