Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add get_settings used by c2cwsgiutils #6465

Merged
merged 1 commit into from
Jun 4, 2020
Merged

Add get_settings used by c2cwsgiutils #6465

merged 1 commit into from
Jun 4, 2020

Conversation

sbrunner
Copy link
Member

@sbrunner sbrunner commented Jun 3, 2020

Currently, I get on update-po:

Traceback (most recent call last):
  File "/usr/local/bin/pot-create", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/dist-packages/lingua/extract.py", line 336, in main
    for message in extractor(real_filename, options):
  File "/opt/c2cgeoportal_geoportal/c2cgeoportal_geoportal/lib/lingua_extractor.py", line 218, in __call__
    return self._collect_app_config(filename)
  File "/opt/c2cgeoportal_geoportal/c2cgeoportal_geoportal/lib/lingua_extractor.py", line 247, in _collect_app_config
    init_dbsessions(settings, config_)
  File "/opt/c2cgeoportal_geoportal/c2cgeoportal_geoportal/__init__.py", line 689, in init_dbsessions
    config, 'sqlalchemy', slave_prefix, force_master=master_paths, force_slave=slave_paths)
  File "/opt/c2cwsgiutils/c2cwsgiutils/db.py", line 65, in setup_session
    ro_engine = sqlalchemy.engine_from_config(config.get_settings(), slave_prefix + ".")
AttributeError: 'C' object has no attribute 'get_settings'

Copy link
Member

@arnaud-morvan arnaud-morvan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants