Commit Graph

2371 Commits (7cc8d1e6934fe20b309582d755a69d3d37f112e3)

Author SHA1 Message Date
Ozzie Isaacs e64a504bb1 Working Locale and default language selection in user table edit 3 years ago
jvoisin bc876a159e Declare variables before using them
It should fix the following stacktrace:

```
[2021-02-18 14:46:14,771] ERROR {cps:1891} Exception on / [GET]
Traceback (most recent call last):
  File "/opt/calibre/vendor/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/opt/calibre/vendor/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/opt/calibre/vendor/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/opt/calibre/vendor/flask/_compat.py", line 39, in reraise
    raise value
  File "/opt/calibre/vendor/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/opt/calibre/vendor/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/opt/calibre/cps/usermanagement.py", line 38, in decorated_view
    return login_required(func)(*args, **kwargs)
  File "/opt/calibre/vendor/flask_login/utils.py", line 272, in decorated_view
    return func(*args, **kwargs)
  File "/opt/calibre/cps/web.py", line 719, in index
    return render_books_list("newest", sort_param, 1, page)
  File "/opt/calibre/cps/web.py", line 422, in render_books_list
    entries, random, pagination = calibre_db.fill_indexpage(page, 0, db.Books, True, order)
  File "/opt/calibre/cps/db.py", line 610, in fill_indexpage
    return self.fill_indexpage_with_archived_books(page, pagesize, database, db_filter, order, False, *join)
  File "/opt/calibre/cps/db.py", line 635, in fill_indexpage_with_archived_books
    #    book = self.order_authors(book)
UnboundLocalError: local variable 'entries' referenced before assignment
```
3 years ago
Ozzieisaacs 4aa1a838ed Removed f-strings, making it compatible with python 3.5 3 years ago
Ozzieisaacs 095a51edd0 Convert tabs to spaces in server.py (related to #1862) 3 years ago
Ozzie Isaacs a3a11bdf3f Changed checkbox states are saved on server 3 years ago
Ozzie Isaacs 70b503f3d4 Merge branch 'master' into development
# Conflicts:
#	test/Calibre-Web TestSummary_Linux.html
3 years ago
Ozzie Isaacs bbf609b880 Fix #1859 (Upload of jpg files without installed imagemagick doesn't work) 3 years ago
Ozzie Isaacs 0992bafe30 Bulk User management 3 years ago
Ozzie Isaacs 3c1b06872d Updated testresults
Changed optional-requirements
Prevent redirect 308 on /<data> routes (#1854)
3 years ago
Ozzie Isaacs cefdd2f66c suppress asyncio message always on restart or shutdown 3 years ago
Ozzie Isaacs 5dac13b1da Revert change in ub.py 3 years ago
Ozzie Isaacs 8aebf48193 Update handling for package data 3 years ago
Ozzie Isaacs fbb905957b Prevent redirect 308 on /<data> routes 3 years ago
Ozzie Isaacs e0ce135838 Move "create_engine" call 3 years ago
Ozzie Isaacs 60497c60c1 Update creating Home_Config variable for packaging support, added .HOMEDIR to ignored filename during update 3 years ago
Ozzie Isaacs 251a77c8b4 Merge branch 'master' into Development
Improved packaging support
3 years ago
Ozzie Isaacs e6fb460071 New restart routine for executable files
Fix log in updater
New source option updater available
3 years ago
Ozzie Isaacs 6137fdeb33 Version bump 4 years ago
Ozzie Isaacs 4a4d02ea6a Added translations 4 years ago
Ozzie Isaacs be26e5f152 Update Teststatus
Update Version
4 years ago
Ozzie Isaacs 127bfba135 fix wrong path in get_update_status js function 4 years ago
Ozzie Isaacs 7efae3c125 Renamed "Recently Added" to "Books" 4 years ago
Ozzie Isaacs 1e5af21000 Fix #1843 (get path to script via html file and known js file instead of randomly picking last one) 4 years ago
Ozzie Isaacs 33a0a4c173 Changed function for getting path in js file 4 years ago
Ozzie Isaacs eeb7974e05 User table:
Added button for single user edit
Added delete-trash-icon (not working)
Roles are displayed correct per user
Guest user is not visible if anonymous browsing is disabled
4 years ago
Ozzie Isaacs f45ea1a31c Merge branch 'master' into development 4 years ago
Ozzie Isaacs a866dbaa80 Fix mimetype in comic reader 4 years ago
Ozzie Isaacs 62447d6b89 Basic User edit in tables 4 years ago
Ozzie Isaacs ff16afbf0b Merge branch 'master' into development 4 years ago
Ozzie Isaacs 9d7ef25062 Fix Kobo sync & Update Teststatus 4 years ago
Ozzie Isaacs 88078d65e9 Fix #1482 (do not shorten title in book detail page) 4 years ago
Ozzie Isaacs b07a97c17e Merge remote-tracking branch 'webp/comic-webp' into master 4 years ago
Ozzie Isaacs 41e7d65e2a Merge remote-tracking branch 'caliblur/master' into master 4 years ago
Ozzie Isaacs 7fa5865cf6 Merge remote-tracking branch 'autoconv/kepub_autoconv' into development
# Conflicts:
#	cps/kobo.py
#	cps/kobo_auth.py
4 years ago
Ozzie Isaacs 4a11dd1e16 Fix mistyping "option" 4 years ago
Ozzie Isaacs 34a474101f Fix #1838 (Log message on failed OPDS login) 4 years ago
Ozzie Isaacs e6799e7a04 Improved detection of invalid email addresses (#1831) upon registering 4 years ago
Ozzie Isaacs 0f83f9992c Added swipe support for epub reader (fixes #925)
Cleaned reader js include files
4 years ago
Ozzie Isaacs d2ad78eb40 Added swipe support for comic reader and txt reader (#925)
Bugfix for txt file not present on serving file
4 years ago
Ozzie Isaacs 0b32738f4e Fix Store UI settings in flask session for guest user (#1820)
Updated testresults
Fix Filepicker (absolute instead of abs)
4 years ago
Ozzie Isaacs a9cedb3fca Add logger to db.py 4 years ago
Ozzie Isaacs 51f9cd4bb4 Fix english language names 4 years ago
Ozzie Isaacs a1668e2411 Version Bump 4 years ago
Ozzie Isaacs 9418045a2c Updated Translation
Version bump
Fixed errors in requirements file(s)
4 years ago
Ozzie Isaacs a7da6d210a Added hint for python 2 4 years ago
Ozzie Isaacs e09f2c9beb Added Password change on cli 4 years ago
Ozzie Isaacs 4bc3c8d9ac Added missing mimetype (fix #1811) 4 years ago
Ozzie Isaacs 9acea8adf4 Fixed logging of exception in debug_or_exception handler for python version <3.8 4 years ago
Ozzie Isaacs e5f754ed0e improved session handling 4 years ago
Ozzie Isaacs 263a8f9048 Added catching of missing invalid_request 4 years ago
Ozzie Isaacs 6f9e52792a No autoflush on metadata.db change 4 years ago
Ozzie Isaacs 4a9b01e93b Added IntegrityError to catched error 4 years ago
Ozzie Isaacs b7de23e895 Merge remote-tracking branch 'fix/unused_imports' into master 4 years ago
jvoisin b8ab66369e Remove some unused imports 4 years ago
jvoisin 54a78d5565 Remove duplicate id from the search form 4 years ago
mmonkey b4324cd685 Merge remote-tracking branch 'upstream/master' into master 4 years ago
Ozzieisaacs ca212c8737 Kobo sync limit set to 100
Remove python2 support from readme
4 years ago
Ozzieisaacs a659f2e49d Improved logging for emails
Removed private data from debug export
4 years ago
OzzieIsaacs 760fbbb357 Fix shelf time_created vs. time_last_modified 4 years ago
OzzieIsaacs 56388145b5 Fixes from testrun 4 years ago
Ozzieisaacs cd60db417c Code refactor shelf handling 4 years ago
Ozzieisaacs 5cce01215f Code refactoring ub.session.commit()
Code cosmentics admin.py
4 years ago
mmonkey bc8bdfe385 Merge remote-tracking branch 'upstream/master' into master 4 years ago
Ozzieisaacs 4578af7a6d Fix export of logfiles (#1794) 4 years ago
Ozzieisaacs 9e1cdd8f57 Merge remote-tracking branch 'it/patch-20' into master
# Conflicts:
#	cps/translations/it/LC_MESSAGES/messages.po
4 years ago
OzzieIsaacs 682c3b834f Revert unrar5 experiment 4 years ago
OzzieIsaacs 9b50114852 Fixes from testrun 4 years ago
Ozzieisaacs b100d198e8 Merge branch 'master' into Develop
Remove relate to referrer for tag/custom column allow / deny dialog
4 years ago
Ozzieisaacs 7849f2fb4b Remove relate to referrer for tag/custom column allow / deny dialog 4 years ago
Ozzieisaacs b35ecddde3 Added Id on Filechooser dialog for testability 4 years ago
Ozzieisaacs bde7921016 Fix modal path id for calibre db filepicker
Fix SyncToken last-Book-id missing
4 years ago
Ozzieisaacs d33b0587cb Advanced search tags are now multiselects (#1240) 4 years ago
Ozzieisaacs 7e0ed537b7 irst steps Advanced search with mulitselects 4 years ago
Ozzieisaacs 1e351eb01d Search for read status 4 years ago
Ozzieisaacs 1a83bddf8c Merge bubble read status 4 years ago
Ozzieisaacs 2a63c35743 Activate serverside filepicker with parameter in unconfigured state 4 years ago
Ozzieisaacs 27dcbcd7e1 paged and orderable shelfs
Fix for non writable settings db with non configured calibre-web
4 years ago
mmonkey 0cf4c7b7b7 Merge remote-tracking branch 'upstream/master' into master 4 years ago
ElQuimm 623372387d
Update italian message.po
Merry Christmas and Happy Holidays :-)
4 years ago
OzzieIsaacs abf0f4d699 Updated Testresult
Fixed delete book call
4 years ago
Ozzieisaacs 2bea447de5 Fix show archived books 4 years ago
Ozzieisaacs f6538b6110 New delete user button
refactored confirm dialogs
4 years ago
Ozzieisaacs 2d3ae71a3d Fixed button for email config (Fix #1766) 4 years ago
Ozzieisaacs 9a20faf640 Revert accidentally deleted lines in caliblur! theme 4 years ago
andylizi 123493ee59
Fix #1255 (support webp in comic viewer) 4 years ago
mmonkey 2d498dd138 Preserve publisher links, and fix formatting in custom columns for CaliBlur theme. 4 years ago
Ozzieisaacs 62da469fd1 Shelfs are now paginated (sorting buttons are disabled)
Changed gevent dependencys
4 years ago
Ozzieisaacs d64009e23e preparation for filtered and ordered shelfs 4 years ago
Ozzieisaacs fd8b642d64 Code cosmetics css
Code cosmetics js
Fixes for links with remote_login
4 years ago
OzzieIsaacs d5ed5cd665 Fixes from tests 4 years ago
OzzieIsaacs fa95d064ff Fix get_sidebar_config 4 years ago
Ozzieisaacs 1905e0ee6f refactoring to prevent web.py being the middle of the universe 4 years ago
Ozzieisaacs 96b18faea1 Merge remote-tracking branch 'nl/master' into master 4 years ago
Ozzieisaacs 0d7f2e157a Update Download Debug package
- include config
- bugfix for stream logger
4 years ago
Marcel 2d66936d8b NL translation update
NL translation update
4 years ago
Ozzieisaacs b637a63e71 Refactored exception logging 4 years ago
Ozzieisaacs 1ae778d81e Fix #1753 (errorhandling on route serve_book) 4 years ago
Ozzieisaacs f4412ee96b Fix #1753 (errorhandling on route serve_book) 4 years ago
Ozzieisaacs 9130aceb5a Changed admin page 4 years ago
Ozzieisaacs b8336c03c3 Changed admin page 4 years ago
Ozzieisaacs 76c3ade394 Changed logging in worker thread 4 years ago
Ozzieisaacs d9b22fd513 log exceptions only in debug mode 4 years ago
Ozzieisaacs 88ea998f8b Only register gdrive callback if gdrive is enabled
With enabled gdrive return on change if no watch callback is configured, instead of send request to google drive
4 years ago
Ozzie Isaacs db91577485 Use calibre-web folder in tempdir on upload cover and metadata backup
fix upload cover on windows (slash vs. backslash)
4 years ago
Ozzie Isaacs 5d9404863d Fix detection and removal of metadata.db ending in calibre-directory
Update requirements
4 years ago
Ozzieisaacs d3986ca14a Server side file browser 4 years ago
Ozzieisaacs 2508c1abb2 Started implement server side filechooser 4 years ago
OzzieIsaacs 983e3b2274 Bugfix allowed formats for comics
Bugfix editing archived books
4 years ago
Ozzieisaacs 72a02e087c Update optional pydrive requirement
Bugfix cover url download for Wand insted of Pillow
Fix for gdrive with unknown certificates
4 years ago
Ozzieisaacs 352b4a0b73 Remove Pillow as dependency 4 years ago
Ozzieisaacs d957b2d20f Fix detect correct encoding for txt-reader 4 years ago
Ozzieisaacs dcab8af8ab Fixes for kobo sync 4 years ago
OzzieIsaacs e1987c34d9 Revert expire on commit 4 years ago
OzzieIsaacs a80a8aab1c Fix LDAP import user 4 years ago
OzzieIsaacs d6fbcdb09d Fix merge problem (ub prefix in ub.py) 4 years ago
OzzieIsaacs d39b28b011 Fix for existing book format with gdrive 4 years ago
OzzieIsaacs 8f36128fe3 Merge branch 'session' into Develop 4 years ago
OzzieIsaacs 986d4c99bd Fix oauth ub session 4 years ago
Ozzieisaacs f677dcb1f4 Fix missing optional parameter initSession 4 years ago
Ozzieisaacs 1a9b220ec2 Session no longer expires on commit (only in worker thread) 4 years ago
Ozzieisaacs d15d252af7 Session no longer expires on commit 4 years ago
Ozzieisaacs 5e3618716d Fix missing session rollback on commit error 4 years ago
Ozzieisaacs f13522559d Fixed problems on startup with config session 4 years ago
Ozzieisaacs 777c2726d3 Changed session_handing 4 years ago
Ozzieisaacs c25afdc203 Chunked sync 4 years ago
Ozzieisaacs c25f6d7c38 Prefer kepub in kobo sync 4 years ago
Ozzieisaacs 388e46ee81 Merge remote-tracking branch 'prefer_kepub/prefer-kepub' into master (send kepub instead of epub) 4 years ago
Ozzieisaacs 242866948f Merge branch 'master' into Develop 4 years ago
Ozzieisaacs 15bb0ce990 Fix for #1439 (send kepub file instead of epub for kobo epub3 request)
Fix archived books are editable
4 years ago
Ozzieisaacs a82911ea5d Fixed missing variable exception 4 years ago
Ozzieisaacs 9a8f20317b Update ldap import user -> improve error messages 4 years ago
Ozzieisaacs b605a0f622 Update error message LDAP import user 4 years ago
Ozzieisaacs 046a074c3a Catch attribute error on ldap import user
Fixes for Login with Windows AD
4 years ago
Ozzieisaacs 7c96fac95c Removed unnecessary parameters 4 years ago
Ozzieisaacs a3ef53102d Fix warning message on ldap import 4 years ago
Ozzieisaacs 68513b775b Wording 4 years ago
Ozzieisaacs a79dcc93f6 Fixed description for LDAP filter 4 years ago
Ozzieisaacs 7aabfc573b Merge branch 'master' into Develop
# Conflicts:
#	cps/admin.py
#	cps/config_sql.py
#	cps/templates/config_edit.html
#	cps/web.py
4 years ago
Ozzieisaacs 56505457eb Merge remote-tracking branch 'ldap_import/feat/ldap-import-user-identifier' into master
# Conflicts:
#	cps/admin.py
4 years ago
Ozzieisaacs 5930c6d5fb remove parenthesis in LDAP Message 4 years ago
Ozzieisaacs c3b9888b31 Fix #1739 (opds download with anonymous browsing enabled) -> download rights of guest user are now respected again 4 years ago
Ozzieisaacs cb8dfdde4c Fix #1739 (opds download with anonymous browsing enabled) 4 years ago
Ozzieisaacs 8eb4b6288a Added id's for testablility 4 years ago
Ozzieisaacs f18836be90 Fix for #1435 (download not allowed with for opds links, with ldap login and a cookie in the download request) 4 years ago
Ozzieisaacs 3372070a58 Fix change title regex
Merge branch 'Develop' into master
4 years ago
Ozzieisaacs f99e2ebd13 Changed wording for tooltips 4 years ago
Ozzieisaacs 4feb26eefb Added series order option (#1715)
Added authors order option (#1301)
Added tooltips for ordering options
Fixed ratings, formats, languages order option
4 years ago
Ozzieisaacs 2da7cd2064 Merge remote-tracking branch 'it/patch-18' into master 4 years ago
Ozzieisaacs 9d7daf7afd Kobo links to /v1/products/books/external are responded
Merge remote-tracking branch 'kobo/patch-1' into master
4 years ago
Ozzieisaacs cb1ebc1cd0 Drag 'n drop for files 4 years ago