comparison piecrust/__init__.py @ 584:9ccc933ac2c7

internal: Refactor the app configuration class. * Moved to its own module. * More extensible validation. * Allow easier setup of defaults so `showconfig` shows more useful stuff.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 01 Jan 2016 23:18:26 -0800
parents 0e9a94b7fdfa
children 99112a431de9
comparison
equal deleted inserted replaced
583:1eda551ee681 584:9ccc933ac2c7
15 DEFAULT_DATE_FORMAT = '%b %d, %Y' 15 DEFAULT_DATE_FORMAT = '%b %d, %Y'
16 DEFAULT_THEME_SOURCE = 'http://bitbucket.org/ludovicchabant/' 16 DEFAULT_THEME_SOURCE = 'http://bitbucket.org/ludovicchabant/'
17 17
18 PIECRUST_URL = 'http://bolt80.com/piecrust/' 18 PIECRUST_URL = 'http://bolt80.com/piecrust/'
19 19
20 CACHE_VERSION = 22
21
20 try: 22 try:
21 from piecrust.__version__ import APP_VERSION 23 from piecrust.__version__ import APP_VERSION
22 except ImportError: 24 except ImportError:
23 APP_VERSION = 'unknown' 25 APP_VERSION = 'unknown'
24 26