- def _more_DONT_BUILD(self, value):
- for format_ in ['cover', 'pdf', 'epub', 'mobi', 'fb2', 'txt']:
- attname = 'NO_BUILD_%s' % format_.upper()
- if hasattr(settings, attname):
- logging.warn("%s is deprecated, use CATALOGUE_DONT_BUILD instead", attname)
- if getattr(settings, attname):
- value.add(format_)
- else:
- value.remove(format_)
- return value
-
- def _more_FORMAT_ZIPS(self, value):
- for format_ in ['epub', 'pdf', 'mobi', 'fb2']:
- attname = 'ALL_%s_ZIP' % format_.upper()
- if hasattr(settings, attname):
- logging.warn("%s is deprecated, use CATALOGUE_FORMAT_ZIPS[%s] instead", attname, format_)
- value[format_] = getattr(settings, attname)
- return value