mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-04-18 12:03:33 +02:00
Initial import
This commit is contained in:
30
ebook_converter/library/catalogs/__init__.py
Normal file
30
ebook_converter/library/catalogs/__init__.py
Normal file
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/env python2
|
||||
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
|
||||
from __future__ import absolute_import, division, print_function, unicode_literals
|
||||
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2012, Kovid Goyal <kovid@kovidgoyal.net>'
|
||||
__docformat__ = 'restructuredtext en'
|
||||
|
||||
|
||||
FIELDS = ['all', 'title', 'title_sort', 'author_sort', 'authors', 'comments',
|
||||
'cover', 'formats','id', 'isbn', 'library_name','ondevice', 'pubdate', 'publisher',
|
||||
'rating', 'series_index', 'series', 'size', 'tags', 'timestamp',
|
||||
'uuid', 'languages', 'identifiers']
|
||||
|
||||
# Allowed fields for template
|
||||
TEMPLATE_ALLOWED_FIELDS = ['author_sort', 'authors', 'id', 'isbn', 'pubdate', 'title_sort',
|
||||
'publisher', 'series_index', 'series', 'tags', 'timestamp', 'title', 'uuid']
|
||||
|
||||
|
||||
class AuthorSortMismatchException(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class EmptyCatalogException(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class InvalidGenresSourceFieldException(Exception):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user