for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
from plugin.core.environment import translate as _
environment
plugin.core
This can be caused by one of the following:
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
# .scrutinizer.yml before_commands: - sudo pip install abc # Python2 - sudo pip3 install abc # Python3
This error could also result from missing __init__.py files in your module folders. Make sure that you place one file in each sub-folder.
__init__.py
from plugin.preferences.options.core.base import SimpleOption
import logging
log = logging.getLogger(__name__)
class ApiOption(SimpleOption):
on_plex_changed
Option
Methods which raise NotImplementedError should be overridden in concrete child classes.
NotImplementedError
key = 'api.enabled'
type = 'boolean'
default = None
scope = 'server'
group = (_('API'),)
label = _('Enabled')
description = _(
"Enables the plugin administration API, disabling this option will block access to the configuration site."
)
order = 200
@property
def value(self):
value = super(ApiOption, self).value
if value is None:
return True
return value