File tree Expand file tree Collapse file tree 8 files changed +49
-48
lines changed
Expand file tree Collapse file tree 8 files changed +49
-48
lines changed Original file line number Diff line number Diff line change 11language : python
22python :
3+ - " 2.5"
34 - " 2.6"
45 - " 2.7"
56env :
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
2+ from __future__ import with_statement
23from cms .test_utils .util .context_managers import SettingsOverride
34from cms .utils .i18n import get_default_language
45from django .conf import settings
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22from 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
512class 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 )
Original file line number Diff line number Diff line change @@ -9,6 +9,20 @@ Welcome to django CMS's documentation!
99
1010This 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***************
1327Getting 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
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ What's new in 2.3.2
77*******************
88
99Google map plugin
10- ===================
10+ =================
1111
1212Google map plugin now supports width and height fields so that plugin size
1313can be modified in the page admin or frontend editor.
Original file line number Diff line number Diff line change 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.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments