1 from collections import namedtuple
3 FormConfig = namedtuple('FormConfig', ['book', 'parent', 'product_form', 'product_form_detail'])
6 ('html', FormConfig(True, False, 'EC', 'E105')),
7 ('txt', FormConfig(True, False, 'EB', 'E112')),
8 ('pdf', FormConfig(True, True, 'EB', 'E107')),
9 ('epub', FormConfig(True, True, 'ED', 'E101')),
10 ('mobi', FormConfig(True, True, 'ED', 'E127')),
11 ('mp3', FormConfig(False, False, 'AN', 'A103')),
12 ('paperback', FormConfig(False, False, 'BC', '')),