Skip to content

Commit 7147e1a

Browse files
committed
Merge branch 'develop' of github.com:divio/django-cms into release-2.3.3
2 parents ddea09b + a323e28 commit 7147e1a

File tree

8 files changed

+49
-48
lines changed

8 files changed

+49
-48
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
language: python
22
python:
3+
- "2.5"
34
- "2.6"
45
- "2.7"
56
env:

cms/middleware/multilingual.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
from __future__ import with_statement
23
from cms.test_utils.util.context_managers import SettingsOverride
34
from cms.utils.i18n import get_default_language
45
from django.conf import settings

cms/models/placeholdermodel.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ def _get_attached_models(self):
126126
"""
127127
return [field.model for field in self._get_attached_fields()]
128128

129-
@property
130-
def page(self):
129+
def page_getter(self):
131130
if not hasattr(self, '_page'):
132131
from cms.models.pagemodel import Page
133132
try:
@@ -136,10 +135,11 @@ def page(self):
136135
self._page = None
137136
return self._page
138137

139-
@page.setter
140-
def page(self, value):
138+
def page_setter(self, value):
141139
self._page = value
142140

141+
page = property(page_getter, page_setter)
142+
143143
def get_plugins_list(self):
144144
return list(self.get_plugins())
145145

cms/sitemaps/cms_sitemap.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# -*- coding: utf-8 -*-
22
from django.contrib.sitemaps import Sitemap
3-
import itertools
3+
4+
def from_iterable(iterables):
5+
"""
6+
Backport of itertools.chain.from_iterable
7+
"""
8+
for it in iterables:
9+
for element in it:
10+
yield element
411

512
class CMSSitemap(Sitemap):
613
changefreq = "monthly"
@@ -15,7 +22,7 @@ def items(self):
1522
def lastmod(self, page):
1623
modification_dates = [page.changed_date, page.publication_date]
1724
plugins_for_placeholder = lambda placeholder: placeholder.cmsplugin_set.all()
18-
plugins = itertools.chain.from_iterable(map(plugins_for_placeholder, page.placeholders.all()))
25+
plugins = from_iterable(map(plugins_for_placeholder, page.placeholders.all()))
1926
plugin_modification_dates = map(lambda plugin: plugin.changed_date, plugins)
2027
modification_dates.extend(plugin_modification_dates)
2128
return max(modification_dates)

docs/index.rst

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,20 @@ Welcome to django CMS's documentation!
99

1010
This document refers to version |release|
1111

12+
*******
13+
Install
14+
*******
15+
16+
.. toctree::
17+
:maxdepth: 1
18+
19+
getting_started/installation
20+
upgrade/2.3.3
21+
upgrade/2.3.2
22+
upgrade/2.3
23+
upgrade/2.2
24+
upgrade/2.1
25+
1226
***************
1327
Getting Started
1428
***************
@@ -17,8 +31,6 @@ Getting Started
1731
:maxdepth: 2
1832
:numbered:
1933

20-
getting_started/installation
21-
upgrade/index
2234
getting_started/tutorial
2335
getting_started/using_south
2436
getting_started/configuration

docs/upgrade/2.3.2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ What's new in 2.3.2
77
*******************
88

99
Google map plugin
10-
===================
10+
=================
1111

1212
Google map plugin now supports width and height fields so that plugin size
1313
can be modified in the page admin or frontend editor.

docs/upgrade/2.3.3.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
###################
2+
2.3.3 release notes
3+
###################
4+
5+
*******************
6+
What's new in 2.3.3
7+
*******************
8+
9+
Restored Python 2.5 support
10+
===========================
11+
12+
2.3.3 restores Python 2.5 suppport for the django CMS.
13+
14+
15+
********************
16+
Pending deprecations
17+
********************
18+
19+
Python 2.5 support will be dropped in django CMS 2.4.

docs/upgrade/index.rst

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

0 commit comments

Comments
 (0)