-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #526 from plone/erral-starter-subtemplate
add a starter template
- Loading branch information
Showing
10 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from bobtemplates.plone.base import base_prepare_renderer | ||
from bobtemplates.plone.base import git_commit | ||
from bobtemplates.plone.base import git_support | ||
|
||
|
||
def prepare_renderer(configurator): | ||
"""Prepare rendering.""" | ||
configurator = base_prepare_renderer(configurator) | ||
|
||
configurator.target_directory = configurator.variables["package_folder"] | ||
|
||
|
||
def post_renderer(configurator): | ||
"""Post rendering.""" | ||
if git_support(configurator): | ||
git_commit(configurator, "Add Plone site initialization configuration") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[questions] | ||
subtemplate_warning.question = Please commit your changes, before using a sub-template! Continue anyway? [N/y] | ||
subtemplate_warning.required = True | ||
subtemplate_warning.default = n | ||
subtemplate_warning.pre_ask_question = bobtemplates.plone.base:git_clean_state_check | ||
subtemplate_warning.post_ask_question = mrbob.hooks:validate_choices bobtemplates.plone.base:subtemplate_warning_post_question | ||
subtemplate_warning.choices = y|n | ||
subtemplate_warning.choices_delimiter = | | ||
|
||
language.question = Enter the 2 letter language code for your site | ||
language.help = Shold be something like 'en' | ||
language.required = True | ||
language.default = 'en' | ||
|
||
site_name.question = Enter the name of your site | ||
site_name.help = Should be something like 'My new site' | ||
site_name.required = True | ||
site_name.default = New Plone Site | ||
|
||
|
||
[template] | ||
post_ask = bobtemplates.plone.base:set_global_vars | ||
pre_render = bobtemplates.plone.site_initialization:prepare_renderer | ||
post_render = bobtemplates.plone.site_initialization:post_renderer |
6 changes: 6 additions & 0 deletions
6
...lization/profiles/default/registry/plone.base.interfaces.controlpanel.IMailSchema.xml.bob
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<registry> | ||
<records interface="plone.base.interfaces.controlpanel.IMailSchema" prefix="plone" purge="false"> | ||
<value key="email_from_name">{{{ site_name }}}</value> | ||
</records> | ||
</registry> |
6 changes: 6 additions & 0 deletions
6
...lization/profiles/default/registry/plone.base.interfaces.controlpanel.ISiteSchema.xml.bob
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<registry> | ||
<records interface="plone.base.interfaces.controlpanel.ISiteSchema" prefix="plone" purge="false"> | ||
<value key="site_title">{{{ site_name }}}</value> | ||
</records> | ||
</registry> |
9 changes: 9 additions & 0 deletions
9
...te_initialization/profiles/default/registry/plone.i18n.interfaces.ILanguageSchema.xml.bob
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<registry> | ||
<records interface="plone.i18n.interfaces.ILanguageSchema" prefix="plone" purge="false"> | ||
<value key="available_languages"> | ||
<element>{{{ language }}}</element> | ||
</value> | ||
<value key="default_language">{{{ language }}}</value> | ||
</records> | ||
</registry> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters