diff --git a/cps/admin.py b/cps/admin.py
index 328ee606..03b306a8 100644
--- a/cps/admin.py
+++ b/cps/admin.py
@@ -636,7 +636,7 @@ def pathchooser():
"parentdir": parentdir,
"type": browse_for,
"oldfile": oldfile,
- "absolute": abs,
+ "absolute": absolute,
}
return json.dumps(context)
diff --git a/cps/ub.py b/cps/ub.py
index f342e356..1969ef53 100644
--- a/cps/ub.py
+++ b/cps/ub.py
@@ -227,9 +227,6 @@ class Anonymous(AnonymousUserMixin, UserBase):
self.denied_column_value = data.denied_column_value
self.allowed_column_value = data.allowed_column_value
self.view_settings = data.view_settings
- # Initialize flask_session once
- if 'view' not in flask_session:
- flask_session['view']={}
def role_admin(self):
@@ -248,14 +245,18 @@ class Anonymous(AnonymousUserMixin, UserBase):
return False
def get_view_property(self, page, prop):
- if not flask_session['view'].get(page):
- return None
- return flask_session['view'][page].get(prop)
+ if 'view' in flask_session:
+ if not flask_session['view'].get(page):
+ return None
+ return flask_session['view'][page].get(prop)
+ return None
def set_view_property(self, page, prop, value):
- if not flask_session['view'].get(page):
- flask_session['view'][page] = dict()
- flask_session['view'][page][prop] = value
+ if 'view' in flask_session:
+ if not flask_session['view'].get(page):
+ flask_session['view'][page] = dict()
+ flask_session['view'][page][prop] = value
+ return None
# Baseclass representing Shelfs in calibre-web in app.db
diff --git a/test/Calibre-Web TestSummary_Linux.html b/test/Calibre-Web TestSummary_Linux.html
index 5949373d..e0c802ef 100644
--- a/test/Calibre-Web TestSummary_Linux.html
+++ b/test/Calibre-Web TestSummary_Linux.html
@@ -37,20 +37,20 @@
-
Start Time: 2021-01-10 18:12:04
+
Start Time: 2021-01-23 19:48:56
-
Stop Time: 2021-01-10 20:39:46
+
Stop Time: 2021-01-23 22:16:21
-
Duration: 1h 59 min
+
Duration: 2h 0 min
@@ -611,15 +611,15 @@
-
+
TestEbookConvertGDriveKepubify |
- 5 |
- 1 |
- 1 |
+ 3 |
3 |
0 |
+ 0 |
+ 0 |
- Detail
+ Detail
|
@@ -634,126 +634,20 @@
-
+
TestEbookConvertGDriveKepubify - test_convert_only
|
-
-
-
-
-
-
-
- |
+ PASS |
-
-
- TestEbookConvertGDriveKepubify - test_convert_only
- |
-
-
-
-
-
-
-
- |
-
-
-
-
-
+
TestEbookConvertGDriveKepubify - test_convert_wrong_excecutable
|
-
-
-
-
-
-
-
- |
-
-
-
-
-
-
- TestEbookConvertGDriveKepubify - test_convert_wrong_excecutable
- |
-
-
-
-
-
-
-
- |
+ PASS |
@@ -1593,48 +1487,51 @@ selenium.common.exceptions.TimeoutException: Message:
-
- TestSetupGdrive |
+
+ TestFilePicker |
+ 3 |
+ 2 |
1 |
0 |
0 |
- 1 |
- 0 |
- Detail
+ Detail
|
-
+
- TestSetupGdrive - test_config_gdrive
+ TestFilePicker - test_filepicker_all_file
+ |
+ PASS |
+
+
+
+
+
+
+ TestFilePicker - test_filepicker_limited_file
|
-
+
- |
+
+
+
+ TestFilePicker - test_filepicker_new_file
+ |
+ PASS |
+
+
+
+
+
+
+ TestSetupGdrive |
+ 1 |
+ 1 |
+ 0 |
+ 0 |
+ 0 |
+
+ Detail
+ |
+
+
+
+
+
+
+ TestSetupGdrive - test_config_gdrive
+ |
+ PASS |
+
+
+
@@ -1653,13 +1583,13 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
0 |
0 |
- Detail
+ Detail
|
-
+
TestGoodreads - test_author_page
|
@@ -1668,7 +1598,7 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
-
+
TestGoodreads - test_author_page_invalid
|
@@ -1677,7 +1607,7 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
-
+
TestGoodreads - test_goodreads_about
|
@@ -1695,13 +1625,13 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
0 |
0 |
- Detail
+ Detail
|
-
+
TestKoboSync - test_book_download
|
@@ -1710,7 +1640,7 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
-
+
TestKoboSync - test_kobo_about
|
@@ -1719,7 +1649,7 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
-
+
TestKoboSync - test_shelves_add_remove_books
|
@@ -1728,7 +1658,7 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
-
+
TestKoboSync - test_sync_changed_book
|
@@ -1737,7 +1667,7 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
-
+
TestKoboSync - test_sync_invalid
|
@@ -1746,7 +1676,7 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
-
+
TestKoboSync - test_sync_reading_state
|
@@ -1755,7 +1685,7 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
-
+
TestKoboSync - test_sync_shelf
|
@@ -1764,7 +1694,7 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
-
+
TestKoboSync - test_sync_unchanged
|
@@ -1773,7 +1703,7 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
-
+
TestKoboSync - test_sync_upload
|
@@ -1791,13 +1721,13 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
0 |
0 |
- Detail
+ Detail
|
-
+
TestLdapLogin - test_LDAP_SSL
|
@@ -1806,7 +1736,7 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
-
+
TestLdapLogin - test_LDAP_SSL_CERTIFICATE
|
@@ -1815,7 +1745,7 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
-
+
TestLdapLogin - test_LDAP_STARTTLS
|
@@ -1824,7 +1754,7 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
-
+
TestLdapLogin - test_LDAP_fallback_Login
|
@@ -1833,7 +1763,7 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
-
+
TestLdapLogin - test_LDAP_import
|
@@ -1842,7 +1772,7 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
-
+
TestLdapLogin - test_LDAP_import_memberfield
|
@@ -1851,7 +1781,7 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
-
+
TestLdapLogin - test_LDAP_login
|
@@ -1860,7 +1790,7 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
-
+
TestLdapLogin - test_invalid_LDAP
|
@@ -1869,7 +1799,7 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
-
+
TestLdapLogin - test_ldap_about
|
@@ -1878,7 +1808,7 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
-
+
TestLdapLogin - test_ldap_authentication
|
@@ -1887,7 +1817,7 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
-
+
TestLdapLogin - test_ldap_kobo_sync
|
@@ -1896,7 +1826,7 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
-
+
TestLdapLogin - test_ldap_opds_anonymous
|
@@ -1905,7 +1835,7 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
-
+
TestLdapLogin - test_ldap_opds_download_book
|
@@ -1915,60 +1845,6 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page: abou
-
- _ErrorHolder |
- 1 |
- 0 |
- 0 |
- 1 |
- 0 |
-
- Detail
- |
-
-
-
-
-
-
- tearDownClass (test_ldap)
- |
-
-
-
-
-
-
-
- |
-
-
-
-
-
TestLogging |
7 |
@@ -2066,13 +1942,13 @@ selenium.common.exceptions.NoSuchElementException: Message: Unable to locate ele
TestLogin |
- 13 |
- 13 |
+ 14 |
+ 14 |
0 |
0 |
0 |
- Detail
+ Detail
|
@@ -2187,6 +2063,15 @@ selenium.common.exceptions.NoSuchElementException: Message: Unable to locate ele
+
+ TestLogin - test_proxy_login
+ |
+ PASS |
+
+
+
+
+
TestLogin - test_robots
|
@@ -2433,11 +2318,11 @@ selenium.common.exceptions.NoSuchElementException: Message: Unable to locate ele
-
+
TestReader |
5 |
- 5 |
- 0 |
+ 4 |
+ 1 |
0 |
0 |
@@ -2483,11 +2368,31 @@ selenium.common.exceptions.NoSuchElementException: Message: Unable to locate ele
- |
+
TestReader - test_txt_reader
|
- PASS |
+
+
+
+
+
+
+
+ |
@@ -3506,10 +3411,10 @@ selenium.common.exceptions.NoSuchElementException: Message: Unable to locate ele
Total |
- 297 |
- 284 |
- 1 |
- 5 |
+ 298 |
+ 289 |
+ 2 |
+ 0 |
7 |
|
@@ -3538,7 +3443,7 @@ selenium.common.exceptions.NoSuchElementException: Message: Unable to locate ele
Platform |
- Linux 5.8.0-36-generic #40~20.04.1-Ubuntu SMP Wed Jan 6 10:15:55 UTC 2021 x86_64 x86_64 |
+ Linux 5.8.0-40-generic #45~20.04.1-Ubuntu SMP Fri Jan 15 11:35:04 UTC 2021 x86_64 x86_64 |
Basic |
@@ -3688,7 +3593,7 @@ selenium.common.exceptions.NoSuchElementException: Message: Unable to locate ele
PyYAML |
- 5.3.1 |
+ 5.4.1 |
TestEbookConvertCalibreGDrive |
@@ -3724,13 +3629,13 @@ selenium.common.exceptions.NoSuchElementException: Message: Unable to locate ele
PyYAML |
- 5.3.1 |
+ 5.4.1 |
TestEbookConvertGDriveKepubify |
comicapi |
- 2.1.2 |
+ 2.1.3 |
TestEditAdditionalBooks |
@@ -3784,7 +3689,7 @@ selenium.common.exceptions.NoSuchElementException: Message: Unable to locate ele
PyYAML |
- 5.3.1 |
+ 5.4.1 |
TestEditBooksOnGdrive |
@@ -3814,7 +3719,7 @@ selenium.common.exceptions.NoSuchElementException: Message: Unable to locate ele
PyYAML |
- 5.3.1 |
+ 5.4.1 |
TestSetupGdrive |
@@ -3868,7 +3773,7 @@ selenium.common.exceptions.NoSuchElementException: Message: Unable to locate ele