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.

17 lines
500B

  1. import sqlalchemy as sa
  2. from sqlalchemy import orm
  3. from gnuviechadminweb.model import meta
  4. def init_model(engine):
  5. """Call me before using any of the tables or classes in the model."""
  6. sm = orm.sessionmaker(autoflush=True, transactional=True, bind=engine)
  7. meta.engine = engine
  8. meta.Session = orm.scoped_session(sm)
  9. from gnuviechadminweb.model.user import Group, Role, User
  10. from gnuviechadminweb.model.GVAUsers import GVAUsers
  11. from gnuviechadminweb.model.menu import Menu