Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:divio/django-cms into release-2.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ojii committed Sep 21, 2012
2 parents ddea09b + a323e28 commit 7147e1a
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 48 deletions.
1 change: 1 addition & 0 deletions .travis.yml
@@ -1,5 +1,6 @@
language: python
python:
- "2.5"
- "2.6"
- "2.7"
env:
Expand Down
1 change: 1 addition & 0 deletions cms/middleware/multilingual.py
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import with_statement
from cms.test_utils.util.context_managers import SettingsOverride
from cms.utils.i18n import get_default_language
from django.conf import settings
Expand Down
8 changes: 4 additions & 4 deletions cms/models/placeholdermodel.py
Expand Up @@ -126,8 +126,7 @@ def _get_attached_models(self):
"""
return [field.model for field in self._get_attached_fields()]

@property
def page(self):
def page_getter(self):
if not hasattr(self, '_page'):
from cms.models.pagemodel import Page
try:
Expand All @@ -136,10 +135,11 @@ def page(self):
self._page = None
return self._page

@page.setter
def page(self, value):
def page_setter(self, value):
self._page = value

page = property(page_getter, page_setter)

def get_plugins_list(self):
return list(self.get_plugins())

Expand Down
11 changes: 9 additions & 2 deletions cms/sitemaps/cms_sitemap.py
@@ -1,6 +1,13 @@
# -*- coding: utf-8 -*-
from django.contrib.sitemaps import Sitemap
import itertools

def from_iterable(iterables):
"""
Backport of itertools.chain.from_iterable
"""
for it in iterables:
for element in it:
yield element

class CMSSitemap(Sitemap):
changefreq = "monthly"
Expand All @@ -15,7 +22,7 @@ def items(self):
def lastmod(self, page):
modification_dates = [page.changed_date, page.publication_date]
plugins_for_placeholder = lambda placeholder: placeholder.cmsplugin_set.all()
plugins = itertools.chain.from_iterable(map(plugins_for_placeholder, page.placeholders.all()))
plugins = from_iterable(map(plugins_for_placeholder, page.placeholders.all()))
plugin_modification_dates = map(lambda plugin: plugin.changed_date, plugins)
modification_dates.extend(plugin_modification_dates)
return max(modification_dates)
Expand Down
16 changes: 14 additions & 2 deletions docs/index.rst
Expand Up @@ -9,6 +9,20 @@ Welcome to django CMS's documentation!

This document refers to version |release|

*******
Install
*******

.. toctree::
:maxdepth: 1

getting_started/installation
upgrade/2.3.3
upgrade/2.3.2
upgrade/2.3
upgrade/2.2
upgrade/2.1

***************
Getting Started
***************
Expand All @@ -17,8 +31,6 @@ Getting Started
:maxdepth: 2
:numbered:

getting_started/installation
upgrade/index
getting_started/tutorial
getting_started/using_south
getting_started/configuration
Expand Down
2 changes: 1 addition & 1 deletion docs/upgrade/2.3.2.rst
Expand Up @@ -7,7 +7,7 @@ What's new in 2.3.2
*******************

Google map plugin
===================
=================

Google map plugin now supports width and height fields so that plugin size
can be modified in the page admin or frontend editor.
Expand Down
19 changes: 19 additions & 0 deletions docs/upgrade/2.3.3.rst
@@ -0,0 +1,19 @@
###################
2.3.3 release notes
###################

*******************
What's new in 2.3.3
*******************

Restored Python 2.5 support
===========================

2.3.3 restores Python 2.5 suppport for the django CMS.


********************
Pending deprecations
********************

Python 2.5 support will be dropped in django CMS 2.4.
39 changes: 0 additions & 39 deletions docs/upgrade/index.rst

This file was deleted.

0 comments on commit 7147e1a

Please sign in to comment.