File tree Expand file tree Collapse file tree 10 files changed +50
-19
lines changed
src/design/plone/contenttypes Expand file tree Collapse file tree 10 files changed +50
-19
lines changed Original file line number Diff line number Diff line change 6
6
strategy :
7
7
fail-fast : false
8
8
matrix :
9
- python-version : [3.8 ]
9
+ python-version : [3.11 ]
10
10
11
11
steps :
12
12
# git checkout
13
- - uses : actions/checkout@v2
13
+ - uses : actions/checkout@v4
14
14
15
15
# python setup
16
16
- name : Set up Python ${{ matrix.python-version }}
17
- uses : actions/setup-python@v1
17
+ uses : actions/setup-python@v5
18
18
with :
19
19
python-version : ${{ matrix.python-version }}
20
20
21
21
# python cache
22
- - uses : actions/cache@v1
22
+ - uses : actions/cache@v4
23
23
with :
24
24
path : ~/.cache/pip
25
25
key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
Original file line number Diff line number Diff line change 6
6
strategy :
7
7
fail-fast : false
8
8
matrix :
9
- python-version : [3.8 ]
9
+ python-version : [3.11 ]
10
10
11
11
steps :
12
12
# git checkout
13
- - uses : actions/checkout@v2
13
+ - uses : actions/checkout@v4
14
14
15
15
# python setup
16
16
- name : Set up Python ${{ matrix.python-version }}
17
- uses : actions/setup-python@v1
17
+ uses : actions/setup-python@v5
18
18
with :
19
19
python-version : ${{ matrix.python-version }}
20
20
21
21
# python cache
22
- - uses : actions/cache@v1
22
+ - uses : actions/cache@v4
23
23
with :
24
24
path : ~/.cache/pip
25
25
key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
Original file line number Diff line number Diff line change @@ -15,19 +15,19 @@ jobs:
15
15
# [Python version, tox env]
16
16
# - ["2.7", "py27-plone52"]
17
17
# - ["3.7", "py37-plone52"]
18
- - ["3.8", "py38-plone60"]
18
+ # - ["3.8", "py38-plone60"]
19
19
- ["3.9", "py39-plone60"]
20
20
- ["3.10", "py310-plone60"]
21
21
- ["3.11", "py311-plone60"]
22
22
name : ${{ matrix.config[1] }}
23
23
steps :
24
- - uses : actions/checkout@v3
24
+ - uses : actions/checkout@v4
25
25
- name : Set up Python
26
- uses : actions/setup-python@v3
26
+ uses : actions/setup-python@v5
27
27
with :
28
28
python-version : ${{ matrix.config[0] }}
29
29
- name : Pip cache
30
- uses : actions/cache@v3
30
+ uses : actions/cache@v4
31
31
with :
32
32
path : |
33
33
~/.cache/pip
Original file line number Diff line number Diff line change 6
6
strategy :
7
7
fail-fast : false
8
8
matrix :
9
- python-version : [3.8 ]
9
+ python-version : [3.11 ]
10
10
11
11
steps :
12
12
# git checkout
13
- - uses : actions/checkout@v2
13
+ - uses : actions/checkout@v4
14
14
15
15
# python setup
16
16
- name : Set up Python ${{ matrix.python-version }}
17
- uses : actions/setup-python@v1
17
+ uses : actions/setup-python@v5
18
18
with :
19
19
python-version : ${{ matrix.python-version }}
20
20
21
21
# python cache
22
- - uses : actions/cache@v1
22
+ - uses : actions/cache@v4
23
23
with :
24
24
path : ~/.cache/pip
25
25
key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ Changelog
6
6
7
7
- Added the metadata preview_caption and image_caption. An upgrade step is not necessary because the metadata will primarily be used for new content.
8
8
[mamico]
9
+ - add SEO behavior to File
10
+ [mamico]
9
11
10
12
6.3.1 (2024-12-12)
11
13
------------------
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<metadata >
3
- <version >7309 </version >
3
+ <version >7310 </version >
4
4
<dependencies >
5
5
<dependency >profile-redturtle.bandi:default</dependency >
6
6
<dependency >profile-collective.venue:default</dependency >
Original file line number Diff line number Diff line change
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 =" File"
5
+ i18n : domain =" plone"
6
+ >
7
+ <property name =" behaviors" purge =" False" >
8
+ <element value =" kitconcept.seo" />
9
+ </property >
10
+ </object >
Original file line number Diff line number Diff line change 920
920
destination =" 7309"
921
921
handler =" .to_730x.to_7309"
922
922
/>
923
-
923
+ <genericsetup : upgradeStep
924
+ title =" add kitconcept.seo to File"
925
+ profile =" design.plone.contenttypes:default"
926
+ source =" 7309"
927
+ destination =" 7310"
928
+ handler =" .to_730x.to_7310"
929
+ />
924
930
</configure >
Original file line number Diff line number Diff line change @@ -170,3 +170,16 @@ def to_7309(context):
170
170
ps .unsetLastVersionForProfile ("eea.api.taxonomy:default" )
171
171
logger .info ("Install blocksfield" )
172
172
installOrReinstallProduct (api .portal .get (), "collective.volto.blocksfield" )
173
+
174
+
175
+ def to_7310 (context ):
176
+ logger .info ("Enable kitconcept.seo behavior to File" )
177
+ portal_types = api .portal .get_tool (name = "portal_types" )
178
+ behavior = "kitconcept.seo"
179
+ for ct in ["File" ]:
180
+ portal_type = portal_types .get (ct , None )
181
+ if portal_type :
182
+ behaviors = list (portal_type .behaviors )
183
+ if behavior not in behaviors :
184
+ behaviors .append (behavior )
185
+ portal_type .behaviors = tuple (behaviors )
Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ extends =
7
7
8
8
[versions]
9
9
collective.volto.blocksfield = 2.2.0
10
- collective.taxonomy = 3.1.5
10
+ collective.taxonomy = 3.1.5
You can’t perform that action at this time.
0 commit comments