Added OpenID registration and login.
[zzz-floof.git] / floof / model / __init__.py
1 """The application's model objects"""
2 import sqlalchemy as sa
3 from sqlalchemy import orm
4
5 from floof.model import meta
6
7 # Tables are defined in separate files and imported to here
8 from floof.model.users import *
9
10 def init_model(engine):
11 """Call me before using any of the tables or classes in the model"""
12 ## Reflected tables must be defined and mapped here
13 #global reflected_table
14 #reflected_table = sa.Table("Reflected", meta.metadata, autoload=True,
15 # autoload_with=engine)
16 #orm.mapper(Reflected, reflected_table)
17 #
18 meta.Session.configure(bind=engine)
19 meta.engine = engine
20