plone / guillotina

Python AsyncIO data API to manage billions of resources
https://guillotina.readthedocs.io/en/latest/
Other
190 stars 51 forks source link

Change application configuration syntax #556

Open vangheem opened 5 years ago

vangheem commented 5 years ago

Right now, configuration is a globally registered. We register configuration and guillotina detects the module it is in and uses that to decide if it should be configured.

We should move to application specific configuration, something like this maybe:

from guillotina import configure
config = configure.Application('my_app')
@config.utility(provides=IMyUtil)
async def my_util():
    pass
vangheem commented 5 years ago

@masipcat we had talked about this. Should this be targeted for G6 as well?

masipcat commented 5 years ago

Maybe, but not in the asgi branch!! :P

bloodbare commented 4 years ago

Still active?