Nathan Yergler
5ffbf907de
Create new formatting context dict instead of using self.__dict__
...
Using self.__dict__ is fine, but when its mutated it changes the
object's state. Creating a new dict avoids needing to think about
that, and doesn't introduce Python 3 issues (ie, where self.number is
accidentally set to '').
2013-08-03 13:49:43 -07:00
Nathan Yergler
74c7c72fb3
Use six.u instead of unicode.
2013-07-31 21:31:08 -07:00
Nathan Yergler
95890a2a61
Allow definition of pagination rules by page index.
2013-07-29 08:10:28 -04:00
Ross McFarland
71e83635ea
remove u prefix from string literal, using unicode_literals
2013-07-29 08:09:45 -04:00
Ross McFarland
0caa101ec7
use six.string_types for python 3 compat
2013-07-29 08:09:44 -04:00
Ross McFarland
e07b39dfcb
more robust PAGINATION_(URL|SAVE_AS) support
...
- add base_name and number_seperator to context to give more flexibility
when naming things
2013-07-29 08:09:44 -04:00
Ross McFarland
c5eecd23eb
PAGINATION_URL/PAGINATION_SAVE_AS implementation
...
allows the use of custom urls for pagination similar to *_URLS
2013-07-29 08:09:44 -04:00
Dirk Makowski
71995d5e1b
Port pelican to python 3.
...
Stays compatible with 2.x series, thanks to an unified codebase.
2013-01-11 03:20:09 +01:00
Alexis Metaireau
6cde7fd27a
PEP8-ify.
...
Wrap to 80 chars, sanitize imports.
2012-03-09 16:21:38 +01:00
Skami18
b909e4aac3
Removed a division by zero
2011-03-26 17:46:31 +01:00
Laureline Guerin
4111acd1c1
Pagination added for index and tag/category pages
2011-02-14 16:24:54 +01:00