old gnuviechadmin web interface code that is not developed anymore
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
441 B

import sqlalchemy as sa
from sqlalchemy import orm
from gnuviechadminweb.model import meta
def init_model(engine):
"""Call me before using any of the tables or classes in the model."""
sm = orm.sessionmaker(autoflush=True, transactional=True, bind=engine)
meta.engine = engine
meta.Session = orm.scoped_session(sm)
from gnuviechadminweb.model import menu
from gnuviechadminweb.model.menu import Menu, User, Role