@@ -353,7 +353,9 @@ def template_variables(self) -> typing.Dict[str, typing.Any]:
353353 if domain .fqn == "applications.plone" :
354354 template = dict (
355355 name = "plone-site" ,
356- settings = dict (distribution = "volto" , extension_ids = "plone.volto:default" ),
356+ settings = dict (
357+ distribution = "volto" , extension_ids = "plone.volto:default"
358+ ),
357359 )
358360 mxmake_templates .append (template )
359361 return dict (mxmake_templates = mxmake_templates , mxmake_env = mxmake_env )
@@ -514,15 +516,17 @@ def template_variables(self):
514516 site .setdefault ("setup_content" , False )
515517 site .setdefault ("default_language" , "en" )
516518 site .setdefault ("portal_timezone" , "UTC" )
517- site .setdefault ("extension_ids" , "" )
518519 site .update (** self .settings )
519520 if "distribution" in site :
520521 vars ["distribution" ] = site .pop ("distribution" )
521522
522523 # handle extension ids
523- site ["extension_ids" ] = [
524- eid .strip () for eid in site ["extension_ids" ].split ("\n " ) if eid .strip ()
525- ]
524+ if site .get ("extension_ids" , None ) is not None :
525+ site ["extension_ids" ] = [
526+ eid .strip () for eid in site ["extension_ids" ].split ("\n " ) if eid .strip ()
527+ ]
528+ else :
529+ site ["extension_ids" ] = []
526530 return vars
527531
528532
0 commit comments