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

refactor: __build_app function clean-up and make all modules accessible #1232

Closed

Conversation

phorward
Copy link
Member

@phorward phorward commented Aug 8, 2024

This is both a refactor and a fix for the Modulename.html = True default that was removed with viur-core 3.6.

The error AttributeError: 'Index' object has no attribute '<modulename>' is fixed with this improvement, and the workaround of conf.main_app.vi.modulename is not neccessary anymore.

Belongs to #1229.

…ible

This is both a refactor and a fix for the `Modulename.html = True` default that was removed with viur-core 3.6.

The error `AttributeError: 'Index' object has no attribute '<modulename>'` is fixed with this improvement, and the workaround of `conf.main_app.vi.modulename` is not neccessary anymore.
@phorward phorward added bug(fix) Something isn't working or address a specific issue or vulnerability refactoring Pull requests that refactor code but do not change its behavior. labels Aug 8, 2024
@phorward phorward added this to the ViUR-core v3.7 milestone Aug 8, 2024
@phorward phorward added the viur-meeting Issues to discuss in the next ViUR meeting label Aug 12, 2024
@phorward
Copy link
Member Author

We think about putting this into main branch v3.6

@phorward phorward removed the viur-meeting Issues to discuss in the next ViUR meeting label Aug 18, 2024
@phorward
Copy link
Member Author

Replaced by #1240

@phorward phorward closed this Aug 18, 2024
phorward added a commit that referenced this pull request Aug 20, 2024
This is a back port of #1231 to core-3.6, as #1232 should become part of
v3.6.

This is also a better implementation, as the previous checked for module
name, but the kind name is the important one!
phorward added a commit that referenced this pull request Aug 21, 2024
…ible (#1240)

This is both a refactor and a fix for the `Modulename.html = True`
default that was removed with viur-core 3.6.

The error `AttributeError: 'Index' object has no attribute
'<modulename>'` is fixed with this improvement, and the workaround of
`conf.main_app.vi.modulename` is not neccessary anymore.

Belongs to #1229, replaces #1232.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug(fix) Something isn't working or address a specific issue or vulnerability refactoring Pull requests that refactor code but do not change its behavior.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant