Changeset - cb3ec17e75e3
[Not reviewed]
0 1 0
Lance Edgar (lance) - 2 months ago 2024-08-23 21:26:18
lance@edbob.org
fix: avoid legacy config methods within `make_config()`

in case factory is WuttaConfig
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rattail/config.py
Show inline comments
 
@@ -755,7 +755,7 @@ def make_config(
 
    # make config object
 
    config = wutta_make_config(files=files, plus_files=plus_files, **kwargs)
 

	
 
    if config.getbool('rattail', 'suppress_psycopg2_wheel_warning', usedb=False):
 
    if config.get_bool('rattail.suppress_psycopg2_wheel_warning', usedb=False):
 
        # TODO: revisit this, does it require action from us?
 
        # suppress this warning about psycopg2 wheel; not sure what it means yet
 
        # exactly but it's causing frequent noise for us...
 
@@ -776,7 +776,7 @@ def make_config(
 
        configure_versioning(config)
 

	
 
    # maybe set "future" behavior for SQLAlchemy
 
    if config.getbool('rattail.db', 'sqlalchemy_future_mode', usedb=False):
 
    if config.get_bool('rattail.db.sqlalchemy_future_mode', usedb=False):
 
        from rattail.db import Session
 
        if Session:
 
            Session.configure(future=True)
0 comments (0 inline, 0 general)