Skip to content

Commit f57d516

Browse files
committed
Merge branch 'develop' of github.com:fsbraun/django-cms into fsbraun-develop
# Conflicts: # CHANGELOG.rst # cms/static/cms/js/dist/3.11.1/bundle.admin.base.min.js # cms/static/cms/js/dist/3.11.1/bundle.admin.pagetree.min.js # package-lock.json
2 parents 6833976 + ceadcaa commit f57d516

File tree

17 files changed

+178
-80
lines changed

17 files changed

+178
-80
lines changed

.github/workflows/codeql.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ "develop", "develop-4", "release/0.10.x", "release/2.1.x", "release/2.2.x", "release/2.3.x", "release/2.4.x", "release/3.0.x", "release/3.1.x", "release/3.2.x", "release/3.3.x", "release/3.4.x", "release/3.5.x", "release/3.6.x", "release/3.7.x", "release/3.8.x", "release/3.9.x", "release/3.10.x", "release/3.11.x", "release/4.0.x", "release/4.0.0.x", "release/4.0.1.x", "release/4.1.x" ]
6+
pull_request:
7+
branches: [ "develop" ]
8+
schedule:
9+
- cron: "40 4 * * 6"
10+
11+
jobs:
12+
analyze:
13+
name: Analyze
14+
runs-on: ubuntu-latest
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
language: [ python, javascript ]
24+
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v3
28+
29+
- name: Initialize CodeQL
30+
uses: github/codeql-action/init@v2
31+
with:
32+
languages: ${{ matrix.language }}
33+
queries: +security-and-quality
34+
35+
- name: Autobuild
36+
uses: github/codeql-action/autobuild@v2
37+
if: ${{ matrix.language == 'python' || matrix.language == 'javascript' }}
38+
39+
- name: Perform CodeQL Analysis
40+
uses: github/codeql-action/analyze@v2
41+
with:
42+
category: "/language:${{ matrix.language }}"

.github/workflows/make-release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Create a django CMS release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Version number to create, e.g., "3.11.1rc1"'
8+
required: true
9+
type: string
10+
branches:
11+
- 'develop*'
12+
- 'release/**'
13+
14+
jobs:
15+
make-release:
16+
if: github.actor == 'marksweb' || github.actor == 'fsbraun'
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Check out
20+
uses: actions/checkout@v3
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v3
23+
- name: Start building version ${{ inputs.version }}
24+
env:
25+
BUILD_BRANCH: release/build
26+
TX_TOKEN: ${{ secrets.TX_TOKEN }}
27+
run: ./scripts/make-release ${{ inputs.version }} ${GITHUB_REF}

.tx/config

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
[main]
22
host = https://www.transifex.com
33

4-
[django-cms.js]
4+
[o:divio:p:django-cms:r:core]
5+
file_filter = cms/locale/<lang>/LC_MESSAGES/django.po
6+
source_file = cms/locale/en/LC_MESSAGES/django.po
7+
source_lang = en
8+
9+
[o:divio:p:django-cms:r:js]
510
file_filter = cms/locale/<lang>/LC_MESSAGES/djangojs.po
611
source_file = cms/locale/en/LC_MESSAGES/djangojs.po
712
source_lang = en
813

9-
[django-cms.core]
10-
file_filter = cms/locale/<lang>/LC_MESSAGES/django.po
11-
source_file = cms/locale/en/LC_MESSAGES/django.po
12-
source_lang = en

cms/locale/nl/LC_MESSAGES/django.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,10 @@ msgid "User guide"
416416
msgstr "Gebruikershandleiding"
417417

418418
msgid "Support Forum"
419-
msgstr ""
419+
msgstr "Helpforum"
420420

421421
msgid "Support Slack"
422-
msgstr ""
422+
msgstr "Help bij Slack"
423423

424424
msgid "What's new"
425425
msgstr "Wat is nieuw"
@@ -1588,7 +1588,7 @@ msgid "Add plugin to %(plugin_name)s"
15881588
msgstr "Voeg plugin toe aan %(plugin_name)s"
15891589

15901590
msgid "Community forum"
1591-
msgstr ""
1591+
msgstr "Gemeenschapsforum"
15921592

15931593
msgid "Getting started"
15941594
msgstr "Aan de slag"
@@ -1614,7 +1614,7 @@ msgstr "Deze placeholder bevat al het maximale aantal (%(limit)s) van toegestane
16141614

16151615
#, python-format
16161616
msgid "This placeholder already has the maximum number of child plugins (%s)."
1617-
msgstr ""
1617+
msgstr "Deze placeholder bevat al het maximale aantal (%s) van toegestane plugins."
16181618

16191619
#, python-brace-format
16201620
msgid "Unable to find the specified CMS_REQUEST_IP_RESOLVER module: \"{0}\"."

cms/models/pluginmodel.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import inspect
12
import json
23
import os
34
import warnings
@@ -310,6 +311,11 @@ def copy_plugin(self, target_placeholder, target_language, parent_cache, no_sign
310311
then overwriting its ID at step 5, the ORM will copy the custom
311312
fields for us.
312313
"""
314+
315+
warnings.warn(f"{inspect.stack()[0][3]} is deprecated and will be removed in django CMS 4.1. "
316+
f"From version 4 on, please use cms.utils.copy_plugins_to_placeholder instead.",
317+
DeprecationWarning, stacklevel=2)
318+
313319
try:
314320
plugin_instance, cls = self.get_plugin_instance()
315321
except KeyError: # plugin type not found anymore
Binary file not shown.

cms/static/cms/js/dist/3.11.1/bundle.admin.base.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cms/static/cms/js/dist/3.11.1/bundle.admin.pagetree.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cms/static/cms/sass/components/_toolbar.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@
362362
margin: 0;
363363
padding: $messages-padding;
364364
border-radius: 0 0 $messages-border-radius $messages-border-radius;
365-
background: rgba($messages-bgcolor, 0.74);
365+
background: $messages-bgcolor;
366366
transition: top $speed-base;
367367
* {
368368
color: $messages-color;
@@ -578,7 +578,6 @@
578578
width: 100%;
579579
height: 100%;
580580
background-color: $screenblock-bgcolor;
581-
background: rgba($screenblock-bgcolor, 0.9);
582581
}
583582

584583
.cms-screenblock-inner {

cms/utils/moderator.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
import inspect
2+
import warnings
13

24

35
def use_draft(request):
6+
warnings.warn(f"{inspect.stack()[0][3]} is deprecated and will be removed in django CMS 4.1",
7+
DeprecationWarning, stacklevel=2)
48
is_staff = (request.user.is_authenticated and request.user.is_staff)
59
return is_staff and not request.session.get('cms_preview')
610

@@ -9,6 +13,8 @@ def get_model_queryset(model, request=None):
913
"""Decision function used in frontend - says which model should be used.
1014
Public models are used unless looking at preview or edit versions of the page.
1115
"""
16+
warnings.warn(f"{inspect.stack()[0][3]} is deprecated and will be removed in django CMS 4.1",
17+
DeprecationWarning, stacklevel=2)
1218
if request and use_draft(request):
1319
return model.objects.drafts()
1420
return model.objects.public()
@@ -17,10 +23,14 @@ def get_model_queryset(model, request=None):
1723
def get_title_queryset(request=None):
1824
from cms.models import Title
1925

26+
warnings.warn(f"{inspect.stack()[0][3]} is deprecated and will be removed in django CMS 4.1",
27+
DeprecationWarning, stacklevel=2)
2028
return Title.objects.all()
2129

2230

2331
def get_cmsplugin_queryset(request=None):
2432
from cms.models import CMSPlugin
2533

34+
warnings.warn(f"{inspect.stack()[0][3]} is deprecated and will be removed in django CMS 4.1",
35+
DeprecationWarning, stacklevel=2)
2636
return CMSPlugin.objects.all()

0 commit comments

Comments
 (0)