+class KMLUCover(LogoWLCover):
+ gradient_logo_height = 58
+ gradient_logo_spacing = 25
+ gradient_logos = [
+ 'res/kmlu-logo-white.png',
+ 'res/wl-logo-white.png',
+ 'res/fnp-logo-white.png',
+ ]
+
+
+class MPWCover(LogoWLCover):
+ gradient_logo_height = 58
+ gradient_logo_spacing = 25
+ gradient_logos = [
+ 'res/mpw-logo-white.png',
+ 'res/wl-logo-white.png',
+ 'res/fnp-logo-white.png',
+ ]
+
+
+COVER_CLASSES = {
+ 'default': LogoWLCover,
+ 'kmlu': KMLUCover,
+ 'mpw': MPWCover,
+}
+
+
+def make_cover(book_info, *args, **kwargs):
+ cover_class = COVER_CLASSES[book_info.cover_class]
+ return cover_class(book_info, *args, **kwargs)