merging: deletion of IroSession devel
authorSandro Knauß <knauss@netzguerilla.net>
Thu, 29 Mar 2012 17:28:13 +0200
branchdevel
changeset 261 6b28b135a919
parent 259 5d9c24c2cb8d (current diff)
parent 260 4a03119a98c1 (diff)
child 262 212a69cc4d44
merging: deletion of IroSession
iro/model/session.py
iro/model/utils.py
--- a/iro/model/session.py	Thu Mar 29 17:21:46 2012 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-from sqlalchemy.orm.session import Session
-
-class IroSession(Session):
-    pass
--- a/iro/model/utils.py	Thu Mar 29 17:21:46 2012 +0200
+++ b/iro/model/utils.py	Thu Mar 29 17:28:13 2012 +0200
@@ -1,6 +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):
@@ -14,7 +13,6 @@
         self.autocommit=autocommit
     
     def __enter__(self):
-        self.session = sessionmaker(bind=self.engine, class_ = IroSession)()
         """returns a vaild session object"""
         self.session = sessionmaker(bind=self.engine)()
         return self.session