diff --git a/cps/__init__.py b/cps/__init__.py index 27be8451..eaef75e6 100755 --- a/cps/__init__.py +++ b/cps/__init__.py @@ -25,9 +25,6 @@ except ImportError: import pickle as cPickle - - - mimetypes.init() mimetypes.add_type('application/xhtml+xml', '.xhtml') mimetypes.add_type('application/epub+zip', '.epub') @@ -56,7 +53,6 @@ lm.anonymous_user = ub.Anonymous ub.init_db() config = Config() - import db with open(os.path.join(config.get_main_dir, 'cps/translations/iso639.pickle'), 'rb') as f: @@ -90,8 +86,8 @@ def create_app(): app.logger.setLevel(config.config_log_level) app.logger.info('Starting Calibre Web...') - logging.getLogger("book_formats").addHandler(file_handler) - logging.getLogger("book_formats").setLevel(config.config_log_level) + # logging.getLogger("uploader").addHandler(file_handler) + # logging.getLogger("uploader").setLevel(config.config_log_level) Principal(app) lm.init_app(app) app.secret_key = os.getenv('SECRET_KEY', 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT') diff --git a/cps/admin.py b/cps/admin.py index 32b60e55..b250d78c 100644 --- a/cps/admin.py +++ b/cps/admin.py @@ -494,7 +494,7 @@ def configuration_helper(origin): flash(_(u"Calibre-Web configuration updated"), category="success") config.loadSettings() app.logger.setLevel(config.config_log_level) - logging.getLogger("uploader").setLevel(config.config_log_level) + # logging.getLogger("uploader").setLevel(config.config_log_level) except Exception as e: flash(e, category="error") return render_title_template("config_edit.html", content=config, origin=origin, diff --git a/cps/static/css/style.css b/cps/static/css/style.css index 9e2e82b3..e08eb946 100644 --- a/cps/static/css/style.css +++ b/cps/static/css/style.css @@ -103,6 +103,16 @@ input.pill:not(:checked) + label .glyphicon { .tags_click, .serie_click, .language_click {margin-right: 5px;} +#meta-info { + height:600px; + overflow-y:scroll; +} +.media-list { + padding-right:15px; +} +.media-body p { + text-align: justify; +} #meta-info img { max-height: 150px; max-width: 100px; cursor: pointer; } .padded-bottom { margin-bottom: 15px; } diff --git a/cps/templates/book_edit.html b/cps/templates/book_edit.html index 664a5b4f..289cfd9a 100644 --- a/cps/templates/book_edit.html +++ b/cps/templates/book_edit.html @@ -219,7 +219,7 @@ -