cubicweb #16059402 CubicWebNoAppConfiguration._load_site_cubicweb() still loads the "cubes.<cubename>" module [validation pending]

which can leads to reloading a (already loaded) module.

The problem can be shown using current head of cubicweb-celery (ie. after the layout of the cube is moved to new standards). Running a celery worker is started by:

celery -A cubicweb_celery

which load the cubicweb_celery as "cubicweb_celery" module name. Then, the _load_site_cubicweb() tries to load the site_cubicweb module via the "old style cube" (ie. cubes.celery.site_cubicweb ) which makes cw reload the same cubicweb_celery package (since cubes.celery is not in sys.modules).

prioritynormal
typebug
done in3.24.0
load left0.000
closed by#b455460630a0 [config] fix the load_site_cubicweb() method for to 'new-style' cubes (closes #16059402)
patch[config] fix the load_site_cubicweb() method for to 'new-style' cubes (closes #16059402) [applied]