1 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
4 from datetime import date
6 from .paths import VAR_DIR
8 # limit number of filtering tags
13 CATALOGUE_DEFAULT_LANGUAGE = 'pol'
14 PUBLISH_PLAN_FEED = 'http://redakcja.wolnelektury.pl/documents/track/editor-proofreading/?published=false'
16 # limit rate for ebooks creation
17 CATALOGUE_CUSTOMPDF_RATE_LIMIT = '1/m'
19 # set to 'new' or 'old' to skip time-consuming test
20 # for TeX morefloats library version
21 LIBRARIAN_PDF_MOREFLOATS = None
23 LATEST_BLOG_POSTS = "https://fundacja.wolnelektury.pl/feed/?cat=-135"
25 CATALOGUE_COUNTERS_FILE = os.path.join(VAR_DIR, 'catalogue_counters.p')
27 CATALOGUE_MIN_INITIALS = 60
29 PICTURE_PAGE_SIZE = 20
33 'client_secret': '2ee86a66e5d97e3fadc400c9f19b065d',
34 'secondary_key': 'b6ca15b0d1020e8094d9b5f8d163db54',
39 CLUB_PAYU_POS = '300746'
40 CLUB_PAYU_RECURRING_POS = '300746'
43 CLUB_RETRIES_START = date(2022, 4, 20)
44 CLUB_RETRY_DAYS_MAX = 90
45 CLUB_RETRY_DAYS_DAILY = 3
48 CLUB_CONTACT_EMAIL = 'darowizny@wolnelektury.pl'
50 MESSAGING_MIN_DAYS = 2
52 NEWSLETTER_PHPLIST_SUBSCRIBE_URL = None
63 CIVICRM_ACTIVITIES = {
64 'Contribution': 'Wpłata',
65 'Recurring contribution': 'Wpłata cykliczna',
66 'Failed contribution': 'Nieudana wpłata',
69 EXPERIMENTS_LAYOUT = 1
71 EXPERIMENTS_SEARCH = 0