Skip to content

Commit

Permalink
Apply David's suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Nov 11, 2024
1 parent 191d45e commit b97f360
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions backend-volto/scripts/create_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def asbool(s):
"title": "Plone 6 Demo Site",
"profile_id": _DEFAULT_PROFILE,
"distribution_name": "default",
"extension_ids": ["plone6.demo:default", "plone6.demo:initial", "plone.volto:demo"],
"setup_content": False,
"default_language": "en",
"portal_timezone": "UTC",
Expand All @@ -61,7 +60,7 @@ def asbool(s):
transaction.commit()

portal_setup: SetupTool = site.portal_setup
portal_setup.runAllImportStepsFromProfile("profile-plone6.demo:default")
portal_setup.runAllImportStepsFromProfile("profile-plone6.demo:initial")
transaction.commit()

app._p_jar.sync()
4 changes: 4 additions & 0 deletions backend-volto/src/plone6/demo/profiles/initial/metadata.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<metadata>
<version>1000</version>
<dependencies>
<dependency>profile-plone6.demo:default</dependency>
<dependency>profile-plone.volto:demo</dependency>
</dependencies>
</metadata>
4 changes: 0 additions & 4 deletions backend/scripts/create_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,4 @@ def asbool(s):
site = addPloneSite(app, site_id, **payload)
transaction.commit()

portal_setup: SetupTool = site.portal_setup
portal_setup.runAllImportStepsFromProfile("profile-plone6.demo:default")
transaction.commit()

app._p_jar.sync()

0 comments on commit b97f360

Please sign in to comment.