1 # -*- coding: utf-8 -*-
4 from django.conf import settings
6 # this is where the end user puts new files
8 NEW_PATH = settings.ARCHIVE_NEW_PATH
10 NEW_PATH = os.path.abspath(os.path.join(settings.MEDIA_ROOT,
13 # here the application keeps its managed files
15 FILES_PATH = settings.ARCHIVE_FILES_PATH
16 except AttributeError:
17 FILES_PATH = os.path.abspath(os.path.join(settings.MEDIA_ROOT,
20 _media_root = os.path.abspath(settings.MEDIA_ROOT)
21 if FILES_PATH.startswith(_media_root):
22 FILES_SAVE_PATH = FILES_PATH[len(_media_root):].lstrip('/')
25 # here the app keeps the unmanaged (archive) files
27 UNMANAGED_PATH = settings.ARCHIVE_UNMANAGED_PATH
28 except AttributeError:
29 UNMANAGED_PATH = os.path.abspath(os.path.join(settings.MEDIA_ROOT,
33 # here the app keeps the resulting (published) files
35 FINAL_PATH = settings.ARCHIVE_FINAL_PATH
36 except AttributeError:
37 FINAL_PATH = os.path.abspath(os.path.join(settings.MEDIA_ROOT,
41 # here the app keeps temporary build files
43 BUILD_PATH = settings.ARCHIVE_BUILD_PATH
44 except AttributeError:
45 BUILD_PATH = os.path.abspath(os.path.join(settings.MEDIA_ROOT,
56 PROJECT = settings.ARCHIVE_PROJECT
57 except AttributeError:
58 PROJECT = u'Wolne Lektury'
61 LICENSE = settings.ARCHIVE_LICENSE
62 except AttributeError:
63 LICENSE = u'http://creativecommons.org/licenses/by-sa/3.0/deed.pl'
66 ORGANIZATION = settings.ARCHIVE_ORGANIZATION
67 except AttributeError:
68 ORGANIZATION = u'Fundacja Nowoczesna Polska'
71 ADVERT = settings.ARCHIVE_ADVERT
72 except AttributeError:
74 Przekaż 1% podatku na rozwój Wolnych Lektur:
75 Fundacja Nowoczesna Polska
77 http://nowoczesnapolska.org.pl/wesprzyj_nas/
81 COVER_IMAGE = settings.ARCHIVE_COVER_IMAGE
82 except AttributeError:
83 COVER_IMAGE = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'cover.png')