sc.voltolighttheme 1.0.0a1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sc/voltolighttheme/__init__.py +14 -0
- sc/voltolighttheme/behaviors/__init__.py +0 -0
- sc/voltolighttheme/behaviors/configure.zcml +21 -0
- sc/voltolighttheme/behaviors/footer.py +38 -0
- sc/voltolighttheme/behaviors/settings.py +70 -0
- sc/voltolighttheme/configure.zcml +27 -0
- sc/voltolighttheme/content/__init__.py +0 -0
- sc/voltolighttheme/controlpanels/__init__.py +0 -0
- sc/voltolighttheme/controlpanels/configure.zcml +10 -0
- sc/voltolighttheme/dependencies.zcml +9 -0
- sc/voltolighttheme/indexers/__init__.py +0 -0
- sc/voltolighttheme/indexers/configure.zcml +7 -0
- sc/voltolighttheme/interfaces.py +7 -0
- sc/voltolighttheme/locales/__init__.py +0 -0
- sc/voltolighttheme/locales/__main__.py +69 -0
- sc/voltolighttheme/locales/de/LC_MESSAGES/sc.voltolighttheme.mo +0 -0
- sc/voltolighttheme/locales/de/LC_MESSAGES/sc.voltolighttheme.po +15 -0
- sc/voltolighttheme/locales/en/LC_MESSAGES/sc.voltolighttheme.mo +0 -0
- sc/voltolighttheme/locales/en/LC_MESSAGES/sc.voltolighttheme.po +15 -0
- sc/voltolighttheme/locales/es/LC_MESSAGES/sc.voltolighttheme.mo +0 -0
- sc/voltolighttheme/locales/es/LC_MESSAGES/sc.voltolighttheme.po +15 -0
- sc/voltolighttheme/locales/it/LC_MESSAGES/sc.voltolighttheme.mo +0 -0
- sc/voltolighttheme/locales/it/LC_MESSAGES/sc.voltolighttheme.po +15 -0
- sc/voltolighttheme/locales/pt_BR/LC_MESSAGES/sc.voltolighttheme.mo +0 -0
- sc/voltolighttheme/locales/pt_BR/LC_MESSAGES/sc.voltolighttheme.po +15 -0
- sc/voltolighttheme/locales/sc.voltolighttheme.pot +18 -0
- sc/voltolighttheme/permissions.zcml +5 -0
- sc/voltolighttheme/profiles/default/browserlayer.xml +6 -0
- sc/voltolighttheme/profiles/default/catalog.xml +13 -0
- sc/voltolighttheme/profiles/default/controlpanel.xml +8 -0
- sc/voltolighttheme/profiles/default/diff_tool.xml +6 -0
- sc/voltolighttheme/profiles/default/metadata.xml +8 -0
- sc/voltolighttheme/profiles/default/registry/.gitkeep +0 -0
- sc/voltolighttheme/profiles/default/registry/main.xml +8 -0
- sc/voltolighttheme/profiles/default/registry/plone.base.interfaces.controlpanel.INavigationSchema.xml +13 -0
- sc/voltolighttheme/profiles/default/repositorytool.xml +6 -0
- sc/voltolighttheme/profiles/default/rolemap.xml +6 -0
- sc/voltolighttheme/profiles/default/types/.gitkeep +0 -0
- sc/voltolighttheme/profiles/default/types/Plone_Site.xml +27 -0
- sc/voltolighttheme/profiles/default/types.xml +10 -0
- sc/voltolighttheme/profiles/initial/metadata.xml +4 -0
- sc/voltolighttheme/profiles/uninstall/browserlayer.xml +6 -0
- sc/voltolighttheme/profiles.zcml +41 -0
- sc/voltolighttheme/serializers/__init__.py +0 -0
- sc/voltolighttheme/serializers/configure.zcml +10 -0
- sc/voltolighttheme/serializers/summary.py +10 -0
- sc/voltolighttheme/setuphandlers/__init__.py +17 -0
- sc/voltolighttheme/setuphandlers/examplecontent/.gitignore +4 -0
- sc/voltolighttheme/setuphandlers/examplecontent/.gitkeep +0 -0
- sc/voltolighttheme/setuphandlers/examplecontent/content/44c771797b6c41d0865b4b98e05f4b00/data.json +39 -0
- sc/voltolighttheme/setuphandlers/examplecontent/content/44c771797b6c41d0865b4b98e05f4b00/image/Geirangerfjord +0 -0
- sc/voltolighttheme/setuphandlers/examplecontent/content/59b6ff7e80f545cba398e326a4d6e680/data.json +39 -0
- sc/voltolighttheme/setuphandlers/examplecontent/content/59b6ff7e80f545cba398e326a4d6e680/image/Konzerthaus Berlin +0 -0
- sc/voltolighttheme/setuphandlers/examplecontent/content/613381b396b049efba9174174503abe5/data.json +87 -0
- sc/voltolighttheme/setuphandlers/examplecontent/content/6c46de92b5b74add82d55f033619f8a7/data.json +147 -0
- sc/voltolighttheme/setuphandlers/examplecontent/content/6f64faaec60345bcb2caf4051f5533b9/data.json +39 -0
- sc/voltolighttheme/setuphandlers/examplecontent/content/6f64faaec60345bcb2caf4051f5533b9/image/Simples Consultoria +379 -0
- sc/voltolighttheme/setuphandlers/examplecontent/content/754ef7ee3e714687bac5920e92944a74/data.json +135 -0
- sc/voltolighttheme/setuphandlers/examplecontent/content/78bf604e5165465baf78e6ff5f1507e9/data.json +87 -0
- sc/voltolighttheme/setuphandlers/examplecontent/content/843f25d577bc4ed0b45c6c3b032e2fbd/data.json +118 -0
- sc/voltolighttheme/setuphandlers/examplecontent/content/967f87e7335e4b048feed0f456fd2674/data.json +39 -0
- sc/voltolighttheme/setuphandlers/examplecontent/content/967f87e7335e4b048feed0f456fd2674/image/Catedral Bras/303/255lia +0 -0
- sc/voltolighttheme/setuphandlers/examplecontent/content/__metadata__.json +233 -0
- sc/voltolighttheme/setuphandlers/examplecontent/content/a720393b3c0240e5bd27c43fcd2cfd1e/data.json +91 -0
- sc/voltolighttheme/setuphandlers/examplecontent/content/b60c9fa629bf4496b99cbd732db8212d/data.json +139 -0
- sc/voltolighttheme/setuphandlers/examplecontent/content/db01c9ef00814e0cb6c4be324e004ec3/data.json +131 -0
- sc/voltolighttheme/setuphandlers/examplecontent/content/e63d37034939457e8a51fc22a5218000/data.json +39 -0
- sc/voltolighttheme/setuphandlers/examplecontent/content/e63d37034939457e8a51fc22a5218000/image/Lombard Street +0 -0
- sc/voltolighttheme/setuphandlers/examplecontent/content/f98ff2810c6e4a44b94bb26c2dd6f934/data.json +39 -0
- sc/voltolighttheme/setuphandlers/examplecontent/content/f98ff2810c6e4a44b94bb26c2dd6f934/image/Olympiastadion (Munich) +0 -0
- sc/voltolighttheme/setuphandlers/examplecontent/content/fe7df55df725423a9267ecffd8b15750/data.json +163 -0
- sc/voltolighttheme/setuphandlers/examplecontent/content/plone_site_root/data.json +265 -0
- sc/voltolighttheme/setuphandlers/examplecontent/content/plone_site_root/footer_logo/logo-simples-reverse.svg +379 -0
- sc/voltolighttheme/setuphandlers/examplecontent/content/plone_site_root/logo/logo-simples.svg +379 -0
- sc/voltolighttheme/setuphandlers/examplecontent/discussions.json +1 -0
- sc/voltolighttheme/setuphandlers/examplecontent/portlets.json +67 -0
- sc/voltolighttheme/setuphandlers/examplecontent/principals.json +38 -0
- sc/voltolighttheme/setuphandlers/examplecontent/redirects.json +1 -0
- sc/voltolighttheme/setuphandlers/examplecontent/relations.json +37 -0
- sc/voltolighttheme/setuphandlers/examplecontent/translations.json +1 -0
- sc/voltolighttheme/setuphandlers/initial.py +16 -0
- sc/voltolighttheme/testing.py +56 -0
- sc/voltolighttheme/upgrades/__init__.py +0 -0
- sc/voltolighttheme/upgrades/configure.zcml +21 -0
- sc/voltolighttheme/vocabularies/__init__.py +0 -0
- sc/voltolighttheme/vocabularies/configure.zcml +5 -0
- sc_voltolighttheme-1.0.0a1.dist-info/METADATA +127 -0
- sc_voltolighttheme-1.0.0a1.dist-info/RECORD +92 -0
- sc_voltolighttheme-1.0.0a1.dist-info/WHEEL +4 -0
- sc_voltolighttheme-1.0.0a1.dist-info/entry_points.txt +2 -0
- sc_voltolighttheme-1.0.0a1.dist-info/licenses/LICENSE.GPL +339 -0
- sc_voltolighttheme-1.0.0a1.dist-info/licenses/LICENSE.md +15 -0
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<configure
|
|
2
|
+
xmlns="http://namespaces.zope.org/zope"
|
|
3
|
+
xmlns:browser="http://namespaces.zope.org/browser"
|
|
4
|
+
xmlns:plone="http://namespaces.plone.org/plone"
|
|
5
|
+
xmlns:zcml="http://namespaces.zope.org/zcml"
|
|
6
|
+
i18n_domain="sc.voltolighttheme"
|
|
7
|
+
>
|
|
8
|
+
|
|
9
|
+
<adapter
|
|
10
|
+
factory=".settings.SchemaCleanupPlugin"
|
|
11
|
+
name="sc.voltolighttheme.schema_cleanup"
|
|
12
|
+
/>
|
|
13
|
+
|
|
14
|
+
<plone:behavior
|
|
15
|
+
name="sc.voltolighttheme.footer"
|
|
16
|
+
title="sc.voltolighttheme specific footer customizations"
|
|
17
|
+
description="Set of fields to customize sc.voltolighttheme's distributions sites and subsites"
|
|
18
|
+
provides=".footer.ISCFooter"
|
|
19
|
+
/>
|
|
20
|
+
|
|
21
|
+
</configure>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
from plone.autoform.interfaces import IFormFieldProvider
|
|
2
|
+
from plone.supermodel import model
|
|
3
|
+
from sc.voltolighttheme import _
|
|
4
|
+
from zope.interface import provider
|
|
5
|
+
from zope.schema import Text
|
|
6
|
+
from zope.schema import TextLine
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@provider(IFormFieldProvider)
|
|
10
|
+
class ISCFooter(model.Schema):
|
|
11
|
+
"""Site/Subsite footer properties behavior."""
|
|
12
|
+
|
|
13
|
+
model.fieldset(
|
|
14
|
+
"footer",
|
|
15
|
+
label=_("Footer customizations"),
|
|
16
|
+
fields=[
|
|
17
|
+
"footer_brand_slogan",
|
|
18
|
+
"footer_brand_message",
|
|
19
|
+
],
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
footer_brand_slogan = TextLine(
|
|
23
|
+
title=_("Brand slogan"),
|
|
24
|
+
description=_(
|
|
25
|
+
"The brand slogan that appears below the footer logo in the"
|
|
26
|
+
" first footer column."
|
|
27
|
+
),
|
|
28
|
+
required=False,
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
footer_brand_message = Text(
|
|
32
|
+
title=_("Brand message"),
|
|
33
|
+
description=_(
|
|
34
|
+
"The footer brand message that appears below the footer slogan in the"
|
|
35
|
+
" first footer column."
|
|
36
|
+
),
|
|
37
|
+
required=False,
|
|
38
|
+
)
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
from kitconcept.voltolighttheme.behaviors import customizations as vlt
|
|
2
|
+
from kitconcept.voltolighttheme.behaviors import footer as footer
|
|
3
|
+
from plone.autoform.interfaces import OMITTED_KEY
|
|
4
|
+
from plone.supermodel.interfaces import ISchema
|
|
5
|
+
from plone.supermodel.interfaces import ISchemaPlugin
|
|
6
|
+
from zope.component import adapter
|
|
7
|
+
from zope.interface import implementer
|
|
8
|
+
from zope.interface import Interface
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
#: Foreign behavior schema -> field names we want to hide on every form.
|
|
12
|
+
FIELDS_TO_OMIT = {
|
|
13
|
+
vlt.ISiteHeaderCustomizationSettings: (
|
|
14
|
+
"has_intranet_header",
|
|
15
|
+
"intranet_flag",
|
|
16
|
+
"header_actions",
|
|
17
|
+
"complementary_logo",
|
|
18
|
+
),
|
|
19
|
+
vlt.ISiteThemeCustomizationSettings: (
|
|
20
|
+
"header_foreground",
|
|
21
|
+
"accent_foreground_color",
|
|
22
|
+
"accent_color",
|
|
23
|
+
"secondary_foreground_color",
|
|
24
|
+
"secondary_color",
|
|
25
|
+
),
|
|
26
|
+
footer.IKitconceptVoltoFooterSettings: (
|
|
27
|
+
"footer_address",
|
|
28
|
+
"post_footer_logo",
|
|
29
|
+
"post_footer_logo_link",
|
|
30
|
+
),
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
@adapter(ISchema)
|
|
35
|
+
@implementer(ISchemaPlugin)
|
|
36
|
+
class SchemaCleanupPlugin:
|
|
37
|
+
"""Hide fields declared by third-party (Volto Light Theme) behaviors.
|
|
38
|
+
|
|
39
|
+
Registered as an :class:`~plone.supermodel.interfaces.ISchemaPlugin`, this
|
|
40
|
+
runs for every supermodel schema during ``finalizeSchemas`` -- the
|
|
41
|
+
``z3c.zcmlhook`` action that fires once *after* all ZCML (including this
|
|
42
|
+
adapter) is loaded. For each foreign schema listed in
|
|
43
|
+
:data:`FIELDS_TO_OMIT` it appends ``plone.autoform`` omit directives.
|
|
44
|
+
|
|
45
|
+
:ivar schema: the schema being finalized, passed by the plugin machinery.
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
#: Run after the stock supermodel plugins.
|
|
49
|
+
order = 1000
|
|
50
|
+
|
|
51
|
+
def __init__(self, schema):
|
|
52
|
+
self.schema = schema
|
|
53
|
+
|
|
54
|
+
def __call__(self) -> None:
|
|
55
|
+
"""Append omit directives for the configured fields, if any.
|
|
56
|
+
|
|
57
|
+
``plone.autoform`` stores omit directives as a list of
|
|
58
|
+
``(form_interface, field_name, "true"/"false")`` tuples;
|
|
59
|
+
:data:`~zope.interface.Interface` as the form interface means "omit on
|
|
60
|
+
every form". We merge with whatever the schema already declares instead
|
|
61
|
+
of overwriting it, and stay idempotent across repeated finalizations.
|
|
62
|
+
"""
|
|
63
|
+
if not (fields := FIELDS_TO_OMIT.get(self.schema)):
|
|
64
|
+
return
|
|
65
|
+
omitted = list(self.schema.queryTaggedValue(OMITTED_KEY, []))
|
|
66
|
+
already = {(iface, name) for iface, name, _ in omitted}
|
|
67
|
+
for name in fields:
|
|
68
|
+
if (Interface, name) not in already:
|
|
69
|
+
omitted.append((Interface, name, "true"))
|
|
70
|
+
self.schema.setTaggedValue(OMITTED_KEY, omitted)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<configure
|
|
2
|
+
xmlns="http://namespaces.zope.org/zope"
|
|
3
|
+
xmlns:i18n="http://namespaces.zope.org/i18n"
|
|
4
|
+
i18n_domain="sc.voltolighttheme"
|
|
5
|
+
>
|
|
6
|
+
|
|
7
|
+
<i18n:registerTranslations directory="locales" />
|
|
8
|
+
|
|
9
|
+
<include
|
|
10
|
+
package="Products.CMFCore"
|
|
11
|
+
file="permissions.zcml"
|
|
12
|
+
/>
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
<include file="dependencies.zcml" />
|
|
16
|
+
<include file="profiles.zcml" />
|
|
17
|
+
<include file="permissions.zcml" />
|
|
18
|
+
|
|
19
|
+
<include package=".behaviors" />
|
|
20
|
+
<include package=".controlpanels" />
|
|
21
|
+
<include package=".indexers" />
|
|
22
|
+
<include package=".serializers" />
|
|
23
|
+
<include package=".vocabularies" />
|
|
24
|
+
|
|
25
|
+
<!-- -*- extra stuff goes here -*- -->
|
|
26
|
+
|
|
27
|
+
</configure>
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<configure xmlns="http://namespaces.zope.org/zope">
|
|
2
|
+
|
|
3
|
+
<!-- List all packages you depend here -->
|
|
4
|
+
<include package="plone.restapi" />
|
|
5
|
+
<include package="plone.volto" />
|
|
6
|
+
<include package="kitconcept.voltolighttheme" />
|
|
7
|
+
<include package="plonegovbr.socialmedia" />
|
|
8
|
+
|
|
9
|
+
</configure>
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"""Update locales."""
|
|
2
|
+
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
|
|
5
|
+
import logging
|
|
6
|
+
import re
|
|
7
|
+
import subprocess
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
logger = logging.getLogger("i18n")
|
|
11
|
+
logger.setLevel(logging.DEBUG)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
PATTERN = r"^[a-z]{2}.*"
|
|
15
|
+
|
|
16
|
+
locale_path = Path(__file__).parent.resolve()
|
|
17
|
+
target_path = locale_path.parent.resolve()
|
|
18
|
+
domains = [path.name[:-4] for path in locale_path.glob("*.pot")]
|
|
19
|
+
|
|
20
|
+
i18ndude = "uvx i18ndude"
|
|
21
|
+
|
|
22
|
+
# ignore node_modules files resulting in errors
|
|
23
|
+
excludes = '"*.html *json-schema*.xml"'
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def locale_folder_setup(domain: str):
|
|
27
|
+
languages = [path for path in locale_path.glob("*") if path.is_dir()]
|
|
28
|
+
for lang_folder in languages:
|
|
29
|
+
lc_messages_path = lang_folder / "LC_MESSAGES"
|
|
30
|
+
lang = lang_folder.name
|
|
31
|
+
if lc_messages_path.exists():
|
|
32
|
+
continue
|
|
33
|
+
elif re.match(PATTERN, lang):
|
|
34
|
+
lc_messages_path.mkdir()
|
|
35
|
+
cmd = (
|
|
36
|
+
f"msginit --locale={lang} "
|
|
37
|
+
f"--input={locale_path}/{domain}.pot "
|
|
38
|
+
f"--output={locale_path}/{lang}/LC_MESSAGES/{domain}.po"
|
|
39
|
+
)
|
|
40
|
+
subprocess.call(cmd, shell=True) # noQA: S602
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def _rebuild(domain: str):
|
|
44
|
+
cmd = (
|
|
45
|
+
f"{i18ndude} rebuild-pot --pot {locale_path}/{domain}.pot "
|
|
46
|
+
f"--exclude {excludes} "
|
|
47
|
+
f"--create {domain} {target_path}"
|
|
48
|
+
)
|
|
49
|
+
subprocess.call(cmd, shell=True) # noQA: S602
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def _sync(domain: str):
|
|
53
|
+
cmd = (
|
|
54
|
+
f"{i18ndude} sync --pot {locale_path}/{domain}.pot "
|
|
55
|
+
f"{locale_path}/*/LC_MESSAGES/{domain}.po"
|
|
56
|
+
)
|
|
57
|
+
subprocess.call(cmd, shell=True) # noQA: S602
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
def main():
|
|
61
|
+
for domain in domains:
|
|
62
|
+
logger.info(f"Updating translations for {domain}")
|
|
63
|
+
locale_folder_setup(domain)
|
|
64
|
+
_rebuild(domain)
|
|
65
|
+
_sync(domain)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
if __name__ == "__main__":
|
|
69
|
+
main()
|
|
Binary file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: PACKAGE VERSION\n"
|
|
4
|
+
"POT-Creation-Date: 2022-05-25 17:12+0000\n"
|
|
5
|
+
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
|
|
6
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
7
|
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
8
|
+
"MIME-Version: 1.0\n"
|
|
9
|
+
"Content-Type: text/plain; charset=utf-8\n"
|
|
10
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
11
|
+
"Plural-Forms: nplurals=1; plural=0\n"
|
|
12
|
+
"Language-Code: de\n"
|
|
13
|
+
"Language-Name: English\n"
|
|
14
|
+
"Preferred-Encodings: utf-8 latin1\n"
|
|
15
|
+
"Domain: DOMAIN\n"
|
|
Binary file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: PACKAGE VERSION\n"
|
|
4
|
+
"POT-Creation-Date: 2022-05-25 17:12+0000\n"
|
|
5
|
+
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
|
|
6
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
7
|
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
8
|
+
"MIME-Version: 1.0\n"
|
|
9
|
+
"Content-Type: text/plain; charset=utf-8\n"
|
|
10
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
11
|
+
"Plural-Forms: nplurals=1; plural=0\n"
|
|
12
|
+
"Language-Code: en\n"
|
|
13
|
+
"Language-Name: English\n"
|
|
14
|
+
"Preferred-Encodings: utf-8 latin1\n"
|
|
15
|
+
"Domain: DOMAIN\n"
|
|
Binary file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: PACKAGE VERSION\n"
|
|
4
|
+
"POT-Creation-Date: 2022-05-25 17:12+0000\n"
|
|
5
|
+
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
|
|
6
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
7
|
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
8
|
+
"MIME-Version: 1.0\n"
|
|
9
|
+
"Content-Type: text/plain; charset=utf-8\n"
|
|
10
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
11
|
+
"Plural-Forms: nplurals=1; plural=0\n"
|
|
12
|
+
"Language-Code: es\n"
|
|
13
|
+
"Language-Name: English\n"
|
|
14
|
+
"Preferred-Encodings: utf-8 latin1\n"
|
|
15
|
+
"Domain: DOMAIN\n"
|
|
Binary file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: PACKAGE VERSION\n"
|
|
4
|
+
"POT-Creation-Date: 2022-05-25 17:12+0000\n"
|
|
5
|
+
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
|
|
6
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
7
|
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
8
|
+
"MIME-Version: 1.0\n"
|
|
9
|
+
"Content-Type: text/plain; charset=utf-8\n"
|
|
10
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
11
|
+
"Plural-Forms: nplurals=1; plural=0\n"
|
|
12
|
+
"Language-Code: it\n"
|
|
13
|
+
"Language-Name: English\n"
|
|
14
|
+
"Preferred-Encodings: utf-8 latin1\n"
|
|
15
|
+
"Domain: DOMAIN\n"
|
|
Binary file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: PACKAGE VERSION\n"
|
|
4
|
+
"POT-Creation-Date: 2022-05-25 17:12+0000\n"
|
|
5
|
+
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
|
|
6
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
7
|
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
8
|
+
"MIME-Version: 1.0\n"
|
|
9
|
+
"Content-Type: text/plain; charset=utf-8\n"
|
|
10
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
11
|
+
"Plural-Forms: nplurals=1; plural=0\n"
|
|
12
|
+
"Language-Code: pt_BR\n"
|
|
13
|
+
"Language-Name: English\n"
|
|
14
|
+
"Preferred-Encodings: utf-8 latin1\n"
|
|
15
|
+
"Domain: DOMAIN\n"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#--- PLEASE EDIT THE LINES BELOW CORRECTLY ---
|
|
2
|
+
#SOME DESCRIPTIVE TITLE.
|
|
3
|
+
#FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
|
4
|
+
msgid ""
|
|
5
|
+
msgstr ""
|
|
6
|
+
"Project-Id-Version: PACKAGE VERSION\n"
|
|
7
|
+
"POT-Creation-Date: 2022-05-25 17:12+0000\n"
|
|
8
|
+
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
|
|
9
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
10
|
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
11
|
+
"MIME-Version: 1.0\n"
|
|
12
|
+
"Content-Type: text/plain; charset=utf-8\n"
|
|
13
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
14
|
+
"Plural-Forms: nplurals=1; plural=0\n"
|
|
15
|
+
"Language-Code: en\n"
|
|
16
|
+
"Language-Name: English\n"
|
|
17
|
+
"Preferred-Encodings: utf-8 latin1\n"
|
|
18
|
+
"Domain: sc.voltolighttheme\n"
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<object name="portal_catalog">
|
|
3
|
+
<!-- Index
|
|
4
|
+
<index meta_type="FieldIndex"
|
|
5
|
+
name="industry"
|
|
6
|
+
>
|
|
7
|
+
<indexed_attr value="industry" />
|
|
8
|
+
</index>
|
|
9
|
+
-->
|
|
10
|
+
<!-- Metadata
|
|
11
|
+
<column value="industry" />
|
|
12
|
+
-->
|
|
13
|
+
</object>
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<registry>
|
|
3
|
+
<records interface="plone.base.interfaces.controlpanel.INavigationSchema"
|
|
4
|
+
prefix="plone"
|
|
5
|
+
>
|
|
6
|
+
<value key="displayed_types">
|
|
7
|
+
<element>Link</element>
|
|
8
|
+
<element>Folder</element>
|
|
9
|
+
<element>Document</element>
|
|
10
|
+
<element>Collection</element>
|
|
11
|
+
</value>
|
|
12
|
+
</records>
|
|
13
|
+
</registry>
|
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<object xmlns:i18n="http://xml.zope.org/namespaces/i18n"
|
|
3
|
+
meta_type="Dexterity FTI"
|
|
4
|
+
name="Plone Site"
|
|
5
|
+
i18n:domain="plone"
|
|
6
|
+
>
|
|
7
|
+
|
|
8
|
+
<!-- Enabled behaviors -->
|
|
9
|
+
<property name="behaviors"
|
|
10
|
+
purge="true"
|
|
11
|
+
>
|
|
12
|
+
<element value="voltolighttheme.header" />
|
|
13
|
+
<element value="voltolighttheme.theme" />
|
|
14
|
+
<element value="kitconcept.footer" />
|
|
15
|
+
<element value="sc.voltolighttheme.footer" />
|
|
16
|
+
<element value="voltolighttheme.footer" />
|
|
17
|
+
<element value="plonegovbr.socialmedia.settings" />
|
|
18
|
+
<element value="volto.preview_image_link" />
|
|
19
|
+
<element value="plone.dublincore" />
|
|
20
|
+
<element value="plone.relateditems" />
|
|
21
|
+
<element value="plone.locking" />
|
|
22
|
+
<element value="plone.excludefromnavigation" />
|
|
23
|
+
<element value="volto.blocks" />
|
|
24
|
+
</property>
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</object>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<configure
|
|
2
|
+
xmlns="http://namespaces.zope.org/zope"
|
|
3
|
+
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
|
|
4
|
+
i18n_domain="sc.voltolighttheme"
|
|
5
|
+
>
|
|
6
|
+
|
|
7
|
+
<genericsetup:registerProfile
|
|
8
|
+
name="default"
|
|
9
|
+
title="Simples Consultoria VLT: Install"
|
|
10
|
+
description="Opinionated enhancements for @kitconcept/volto-light-theme"
|
|
11
|
+
provides="Products.GenericSetup.interfaces.EXTENSION"
|
|
12
|
+
directory="profiles/default"
|
|
13
|
+
/>
|
|
14
|
+
|
|
15
|
+
<genericsetup:registerProfile
|
|
16
|
+
name="initial"
|
|
17
|
+
title="Simples Consultoria VLT: Example content"
|
|
18
|
+
description="Create example content to showcase this addon."
|
|
19
|
+
provides="Products.GenericSetup.interfaces.EXTENSION"
|
|
20
|
+
directory="profiles/initial"
|
|
21
|
+
pre_handler=".setuphandlers.initial.create_example_content"
|
|
22
|
+
/>
|
|
23
|
+
|
|
24
|
+
<genericsetup:registerProfile
|
|
25
|
+
name="uninstall"
|
|
26
|
+
title="Simples Consultoria VLT: Uninstall"
|
|
27
|
+
description="Uninstall Simples Consultoria VLT setup."
|
|
28
|
+
provides="Products.GenericSetup.interfaces.EXTENSION"
|
|
29
|
+
directory="profiles/uninstall"
|
|
30
|
+
/>
|
|
31
|
+
|
|
32
|
+
<!-- Hide Uninstall Profile-->
|
|
33
|
+
<utility
|
|
34
|
+
factory=".setuphandlers.HiddenProfiles"
|
|
35
|
+
name="sc.voltolighttheme"
|
|
36
|
+
/>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<include package=".upgrades" />
|
|
40
|
+
|
|
41
|
+
</configure>
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from plone.restapi.interfaces import IJSONSummarySerializerMetadata
|
|
2
|
+
from zope.interface import implementer
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
@implementer(IJSONSummarySerializerMetadata)
|
|
6
|
+
class JSONSummarySerializerMetadata:
|
|
7
|
+
"""Additional metadata to be exposed on listings."""
|
|
8
|
+
|
|
9
|
+
def default_metadata_fields(self):
|
|
10
|
+
return {"image_field", "image_scales", "effective", "Subject"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from plone.base.interfaces.installable import INonInstallable
|
|
2
|
+
from zope.interface import implementer
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
@implementer(INonInstallable)
|
|
6
|
+
class HiddenProfiles:
|
|
7
|
+
def getNonInstallableProfiles(self):
|
|
8
|
+
"""Hide uninstall profile from site-creation and quickinstaller."""
|
|
9
|
+
return [
|
|
10
|
+
"sc.voltolighttheme:uninstall",
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
def getNonInstallableProducts(self):
|
|
14
|
+
"""Hide the upgrades package from site-creation and quickinstaller."""
|
|
15
|
+
return [
|
|
16
|
+
"sc.voltolighttheme.upgrades",
|
|
17
|
+
]
|