15 lines
296 B
Python
15 lines
296 B
Python
# -*- coding: utf-8; -*-
|
|
"""
|
|
Web Database Sessions
|
|
"""
|
|
|
|
from sqlalchemy.orm import sessionmaker, scoped_session
|
|
from zope.sqlalchemy import register
|
|
|
|
|
|
CoreSession = scoped_session(sessionmaker())
|
|
register(CoreSession)
|
|
|
|
CoreTransSession = scoped_session(sessionmaker())
|
|
register(CoreTransSession)
|