feat: begin integrating WuttaWeb as upstream dependency
the bare minimum, just to get the relationship established. mostly it's calling upstream subscriber / event hooks where applicable. this also overhauls the docs config to use furo theme etc.
This commit is contained in:
parent
e531f98079
commit
ce156d6278
6 changed files with 112 additions and 318 deletions
|
@ -30,7 +30,9 @@ import warnings
|
|||
import sqlalchemy as sa
|
||||
from sqlalchemy.orm import sessionmaker, scoped_session
|
||||
|
||||
from rattail.config import make_config, parse_list
|
||||
from wuttjamaican.util import parse_list
|
||||
|
||||
from rattail.config import make_config
|
||||
from rattail.exceptions import ConfigurationError
|
||||
from rattail.db.types import GPCType
|
||||
|
||||
|
@ -61,6 +63,9 @@ def make_rattail_config(settings):
|
|||
rattail_config = make_config(path)
|
||||
settings['rattail_config'] = rattail_config
|
||||
|
||||
# nb. this is for compaibility with wuttaweb
|
||||
settings['wutta_config'] = rattail_config
|
||||
|
||||
# configure database sessions
|
||||
if hasattr(rattail_config, 'rattail_engine'):
|
||||
tailbone.db.Session.configure(bind=rattail_config.rattail_engine)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue