Skip to content

Commit d914902

Browse files
committed
Rename Location criterion to Path
1 parent af281c5 commit d914902

File tree

10 files changed

+67
-5
lines changed

10 files changed

+67
-5
lines changed

backend/news/222.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Rename Location criterion to Path. @davisagli

backend/src/kitconcept/core/locales/de/LC_MESSAGES/kitconcept.core.po

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: PACKAGE VERSION\n"
4-
"POT-Creation-Date: 2025-09-18 06:46+0000\n"
4+
"POT-Creation-Date: 2025-12-09 17:11+0000\n"
55
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
66
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
77
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -50,6 +50,10 @@ msgstr "Generisches Setup-Profil mit Kernabhängigkeiten, die von CMF benötigt
5050
msgid "Generic setup profile with dependencies used by kitconcept projects."
5151
msgstr "Generisches Setup-Profil mit Abhängigkeiten, die von kitconcept-Projekten verwendet werden."
5252

53+
#: kitconcept/core/profiles/dependencies/registry/querystring.xml
54+
msgid "Path"
55+
msgstr "Pfad"
56+
5357
#: kitconcept/core/behaviors/configure.zcml:27
5458
msgid "Person: Additional contact information"
5559
msgstr "Person: Zusätzliche Kontaktinformationen"
@@ -66,6 +70,10 @@ msgstr "Person: Bild"
6670
msgid "Simple attribute-based image field for persons portraits."
6771
msgstr "Einfaches attributbasiertes Bildfeld für Personenporträts."
6872

73+
#: kitconcept/core/profiles/dependencies/registry/querystring.xml
74+
msgid "The path of an item"
75+
msgstr "Der Pfad eines Inhalts"
76+
6977
#: kitconcept/core/behaviors/configure.zcml:19
7078
msgid "Through The Web blocks configuration"
7179
msgstr "Blockkonfiguration durch die Weboberfläche"

backend/src/kitconcept/core/locales/en/LC_MESSAGES/kitconcept.core.po

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: PACKAGE VERSION\n"
4-
"POT-Creation-Date: 2025-09-18 06:46+0000\n"
4+
"POT-Creation-Date: 2025-12-09 17:11+0000\n"
55
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
66
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
77
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -50,6 +50,10 @@ msgstr ""
5050
msgid "Generic setup profile with dependencies used by kitconcept projects."
5151
msgstr ""
5252

53+
#: kitconcept/core/profiles/dependencies/registry/querystring.xml
54+
msgid "Path"
55+
msgstr ""
56+
5357
#: kitconcept/core/behaviors/configure.zcml:27
5458
msgid "Person: Additional contact information"
5559
msgstr ""
@@ -66,6 +70,10 @@ msgstr ""
6670
msgid "Simple attribute-based image field for persons portraits."
6771
msgstr ""
6872

73+
#: kitconcept/core/profiles/dependencies/registry/querystring.xml
74+
msgid "The path of an item"
75+
msgstr ""
76+
6977
#: kitconcept/core/behaviors/configure.zcml:19
7078
msgid "Through The Web blocks configuration"
7179
msgstr ""

backend/src/kitconcept/core/locales/kitconcept.core.pot

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
msgid ""
55
msgstr ""
66
"Project-Id-Version: PACKAGE VERSION\n"
7-
"POT-Creation-Date: 2025-09-18 06:46+0000\n"
7+
"POT-Creation-Date: 2025-12-09 17:11+0000\n"
88
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
99
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1010
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -53,6 +53,10 @@ msgstr ""
5353
msgid "Generic setup profile with dependencies used by kitconcept projects."
5454
msgstr ""
5555

56+
#: kitconcept/core/profiles/dependencies/registry/querystring.xml
57+
msgid "Path"
58+
msgstr ""
59+
5660
#: kitconcept/core/behaviors/configure.zcml:27
5761
msgid "Person: Additional contact information"
5862
msgstr ""
@@ -69,6 +73,10 @@ msgstr ""
6973
msgid "Simple attribute-based image field for persons portraits."
7074
msgstr ""
7175

76+
#: kitconcept/core/profiles/dependencies/registry/querystring.xml
77+
msgid "The path of an item"
78+
msgstr ""
79+
7280
#: kitconcept/core/behaviors/configure.zcml:19
7381
msgid "Through The Web blocks configuration"
7482
msgstr ""
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<metadata>
3-
<version>20250917001</version>
3+
<version>20251209001</version>
44
</metadata>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<registry xmlns:i18n="http://xml.zope.org/namespaces/i18n"
3+
i18n:domain="kitconcept.core"
4+
>
5+
6+
<!-- Rename Location -> Path -->
7+
<records interface="plone.app.querystring.interfaces.IQueryField"
8+
prefix="plone.app.querystring.field.path"
9+
>
10+
<value key="title"
11+
i18n:translate=""
12+
>Path</value>
13+
<value key="description"
14+
i18n:translate=""
15+
>The path of an item</value>
16+
</records>
17+
18+
</registry>

backend/src/kitconcept/core/upgrades/configure.zcml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
<include package=".v20250915001" />
99
<include package=".v20250916001" />
1010
<include package=".v20250917001" />
11+
<include package=".v20251209001" />
1112

1213
</configure>

backend/src/kitconcept/core/upgrades/v20251209001/__init__.py

Whitespace-only changes.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<configure
2+
xmlns="http://namespaces.zope.org/zope"
3+
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
4+
>
5+
6+
<genericsetup:upgradeSteps
7+
profile="kitconcept.core:base"
8+
source="20250917001"
9+
destination="20251209001"
10+
>
11+
<genericsetup:upgradeDepends
12+
title="Rename Location criterion to Path"
13+
import_profile="kitconcept.core:dependencies"
14+
import_steps="plone.app.registry"
15+
/>
16+
</genericsetup:upgradeSteps>
17+
18+
</configure>

backend/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def current_versions() -> CurrentVersions:
3232
from kitconcept.core import __version__
3333

3434
return CurrentVersions(
35-
base="20250917001",
35+
base="20251209001",
3636
dependencies="1000",
3737
package=__version__,
3838
)

0 commit comments

Comments
 (0)