Subversion Repositories SmartDukaan

Rev

Rev 873 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 873 Rev 876
Line 2... Line 2...
2
from shop2020.test.DataService import initialize, session
2
from shop2020.test.DataService import initialize, session
3
from shop2020.test.DataService import UserTable
3
from shop2020.test.DataService import UserTable
4
from shop2020.thriftpy.test.ttypes import Address
4
from shop2020.thriftpy.test.ttypes import Address
5
from sqlalchemy.sql.expression import select
5
from sqlalchemy.sql.expression import select
6
 
6
 
7
 
-
 
8
class TestServiceHandler:
7
class TestServiceHandler:
9
 
8
 
10
        
9
        
11
    def __init__(self):
10
    def __init__(self):
12
        initialize()
11
        initialize()
Line 57... Line 56...
57
        session.commit()
56
        session.commit()
58
        
57
        
59
    def closeSession(self, ):
58
    def closeSession(self, ):
60
        if session.is_active:
59
        if session.is_active:
61
            print "session is active. closing it."
60
            print "session is active. closing it."
62
            session.close()
-
 
63
61
            session.close()
-
 
62