Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 2e6a545

Browse files
author
Greg Turner
committed
Merge branch 'develop' of github.com:ic-labs/django-icekit into develop
2 parents 57b67de + f86615c commit 2e6a545

File tree

25 files changed

+112
-121
lines changed

25 files changed

+112
-121
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ end_of_line = crlf
1515
indent_size = 2
1616
indent_style = tab
1717

18-
[*.py]
18+
[*.{md,py}]
1919
indent_style = space
2020

2121
[*.sh]

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ WORKDIR /opt/django-icekit/
4343
RUN wget -nv -O - https://bootstrap.pypa.io/get-pip.py | python
4444

4545
COPY requirements.txt setup.py /opt/django-icekit/
46-
RUN pip install --no-cache-dir -r requirements.txt
46+
RUN pip install --no-cache-dir -r requirements.txt -U
4747
RUN touch requirements-local.txt
4848
RUN md5sum requirements.txt requirements-local.txt > requirements.md5
4949

docs/changelog.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@
88
content plugin available (which renders a grid of thumbnails into a
99
lightbox).
1010

11+
Breaking changes:
12+
13+
* The initial migration for `icekit.plugins.slideshow` had the wrong database
14+
table name, which meant that the `0004_auto_20160821_2140` migration would
15+
not have correctly renamed the database table when upgrading to `>=0.10`
16+
from an earlier version.
17+
18+
To fix this, run the following SQL manually:
19+
20+
ALTER TABLE "slideshow_slideshow" RENAME TO "icekit_plugins_slideshow_slideshow";
21+
22+
If you have yet to upgrade from `<0.10`, you don't need to do anything.
23+
1124
## 0.15 (27 September 2016)
1225

1326
* Improvements to publishing to make it accomodate more types of content.

icekit/bin/entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ export BASE_SETTINGS_MODULE="${BASE_SETTINGS_MODULE:-develop}"
8080
# Get number of CPU cores, so we know how many processes to run.
8181
export CPU_CORES=$(python -c 'import multiprocessing; print multiprocessing.cpu_count();')
8282

83+
# Place GPG home directory in project directory.
84+
export GNUPGHOME="$ICEKIT_PROJECT_DIR/.gnupg"
85+
8386
# Get absolute directory for the `icekit` package.
8487
export ICEKIT_DIR=$(python -c 'import icekit, os; print os.path.abspath(os.path.dirname(icekit.__file__));')
8588

icekit/bin/setup-git-secret.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ set -e
1111

1212
cd "$ICEKIT_PROJECT_DIR"
1313

14-
# Place GPG home directory in project directory.
15-
export GNUPGHOME="$ICEKIT_PROJECT_DIR/.gnupg"
16-
1714
# Derive a fictitious email address for the encryption key.
1815
export GPG_EMAIL="${GPG_EMAIL:-git-secret@$ICEKIT_PROJECT_NAME.icekit.interaction.net.au}"
1916

icekit/bin/transfer.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ set -e
44

55
if [ $# -eq 0 ]; then
66
cat <<-EOF
7-
Usage:
8-
$(basename "$0") /tmp/test.md
9-
cat /tmp/test.md | $(basename "$0") test.md
10-
EOF
7+
Usage:
8+
$(basename "$0") /tmp/test.md
9+
cat /tmp/test.md | $(basename "$0") test.md
10+
EOF
1111
exit 1
1212
fi
1313

icekit/layouts/templates/icekit/layouts/home.html

Lines changed: 0 additions & 7 deletions
This file was deleted.

icekit/layouts/templates/icekit/layouts/sidebar.html

Lines changed: 0 additions & 12 deletions
This file was deleted.

icekit/plugins/slideshow/migrations/0001_initial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Migration(migrations.Migration):
1919
('show_title', models.BooleanField(default=False, help_text='Should the title of the slide show be displayed?')),
2020
],
2121
options={
22-
'db_table': 'icekit_plugins_slideshow_slideshow'
22+
'db_table': 'slideshow_slideshow'
2323
},
2424
bases=(models.Model,),
2525
),
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
from django.conf import settings
22

33

4-
def environment(request):
4+
def environment(request=None):
55
"""
6-
Add ``COMPRESS_ENABLED`` to the context.
6+
Return ``COMPRESS_ENABLED``, ``SITE_NAME``, and any settings listed
7+
in ``ICEKIT_CONTEXT_PROCESSOR_SETTINGS`` as context.
78
"""
89
context = {
910
'COMPRESS_ENABLED': settings.COMPRESS_ENABLED,
1011
'SITE_NAME': settings.SITE_NAME,
1112
}
13+
for key in settings.ICEKIT_CONTEXT_PROCESSOR_SETTINGS:
14+
context[key] = getattr(settings, key, None)
1215
return context

0 commit comments

Comments
 (0)