|
|
@ -46,7 +46,7 @@ from .web import admin_required, render_title_template, before_request, unconfig
|
|
|
|
|
|
|
|
|
|
|
|
feature_support = {
|
|
|
|
feature_support = {
|
|
|
|
'ldap': False, # bool(services.ldap),
|
|
|
|
'ldap': False, # bool(services.ldap),
|
|
|
|
'goodreads': bool(services.goodreads)
|
|
|
|
'goodreads': bool(services.goodreads_support)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# try:
|
|
|
|
# try:
|
|
|
@ -338,8 +338,10 @@ def _configuration_update_helper():
|
|
|
|
_config_checkbox("config_use_goodreads")
|
|
|
|
_config_checkbox("config_use_goodreads")
|
|
|
|
_config_string("config_goodreads_api_key")
|
|
|
|
_config_string("config_goodreads_api_key")
|
|
|
|
_config_string("config_goodreads_api_secret")
|
|
|
|
_config_string("config_goodreads_api_secret")
|
|
|
|
if services.goodreads:
|
|
|
|
if services.goodreads_support:
|
|
|
|
services.goodreads.connect(config.config_goodreads_api_key, config.config_goodreads_api_secret, config.config_use_goodreads)
|
|
|
|
services.goodreads_support.connect(config.config_goodreads_api_key,
|
|
|
|
|
|
|
|
config.config_goodreads_api_secret,
|
|
|
|
|
|
|
|
config.config_use_goodreads)
|
|
|
|
|
|
|
|
|
|
|
|
_config_int("config_updatechannel")
|
|
|
|
_config_int("config_updatechannel")
|
|
|
|
|
|
|
|
|
|
|
|