Skip to content

Commit 726b74c

Browse files
committed
Merge branch 'release/0.6.4'
2 parents 56dbf3d + a1ef837 commit 726b74c

File tree

7 files changed

+33
-5
lines changed

7 files changed

+33
-5
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
### 0.6.4
2+
3+
(July 7th, 2015)
4+
5+
##### Fixes
6+
7+
- [#11](https://github.com/sdispater/orator/issues/11) Paginator.resolve_current_page() raises and error on Python 2.7.
8+
9+
110
### 0.6.3
211

312
(June 30th, 2015)

docs/_static/orator-logo-80.png

5.92 KB
Loading

docs/_static/theme_overrides.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,15 @@ article ul li {
6666
color: #7A7A7A;
6767
}
6868

69+
.wy-side-nav-search a.icon.icon-home {
70+
visibility: collapse;
71+
}
72+
73+
.wy-side-nav-search a.icon.icon-home img.logo {
74+
visibility: visible;
75+
margin-top: -0.85em;
76+
}
77+
6978
.wy-menu-vertical ul {
7079
font-family: "Open Sans", "Roboto", sans-serif;
7180
margin-right: 1em;
@@ -762,6 +771,7 @@ tt.code .integer, code.code .integer { color: #F4BC87 }
762771
.highlight .nx { color: #7BB } /* Name.Other */
763772
.highlight .py { color: #7BB } /* Name.Property */
764773
.highlight .nb { color: #E3AB83 } /* Name.Builtin */
774+
.highlight .p { color: #8A8A8A } /* Punctuation */
765775

766776
/* Inline code */
767777

docs/conf.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# The short X.Y version.
5656
version = '0.6'
5757
# The full version, including alpha/beta/rc tags.
58-
release = '0.6.2'
58+
release = '0.6.4'
5959

6060
# The language for content autogenerated by Sphinx. Refer to documentation
6161
# for a list of supported languages.
@@ -105,7 +105,9 @@
105105
# Theme options are theme-specific and customize the look and feel of a theme
106106
# further. For a list of options available for each theme, see the
107107
# documentation.
108-
#html_theme_options = {}
108+
html_theme_options = {
109+
'logo_only': True
110+
}
109111

110112
# Add any paths that contain custom themes here, relative to this directory.
111113
#html_theme_path = []
@@ -119,7 +121,7 @@
119121

120122
# The name of an image file (relative to this directory) to place at the top
121123
# of the sidebar.
122-
#html_logo = None
124+
html_logo = 'orator-logo-80.png'
123125

124126
# The name of an image file (within the static path) to use as favicon of the
125127
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32

orator/pagination/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def resolve_current_page(cls, default=1):
8989

9090
@classmethod
9191
def current_page_resolver(cls, resolver):
92-
cls._current_page_resolver = resolver
92+
cls._current_page_resolver = staticmethod(resolver)
9393

9494
def __len__(self):
9595
return self.count()

orator/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# -*- coding: utf-8 -*-
22

3-
VERSION = '0.6.3'
3+
VERSION = '0.6.4'

tests/pagination/test_paginator.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@ def test_returns_relevant_context(self):
2020
self.assertEqual(4, p.last_item)
2121

2222
self.assertEqual('item4', p[1])
23+
24+
def test_current_page_resolver(self):
25+
def current_page_resolver():
26+
return 7
27+
28+
Paginator.current_page_resolver(current_page_resolver)
29+
self.assertEqual(7, Paginator.resolve_current_page())

0 commit comments

Comments
 (0)