-
-
Notifications
You must be signed in to change notification settings - Fork 738
module.plugins.Plugin.Base
class _module.plugins.Plugin. Base(core)
A Base class with log/config/db methods all plugin types can use
__init__(core)
The whole SourceCode can be found here: (SourceCode)
Methods
| Name | Description |
|---|---|
__init__(core) |
|
delStorage(key) |
Delete entry in db |
getConf(option) |
see getConfig |
getConfig(option) |
Returns config value for current plugin |
getStorage([key, default]) |
Retrieves saved value or dict of all saved entries if key is None |
logDebug(*args) |
|
logError(*args) |
|
logInfo(*args) |
|
logWarning(*args) |
|
retrieve(*args, **kwargs) |
same as getStorage |
setConf(option, value) |
see setConfig |
setConfig(option, value) |
Set config value for current plugin |
setStorage(key, value) |
Saves a value persistently to the database |
store(key, value) |
same as setStorage |
The whole SourceCode can be found here: (SourceCode)
####core= None
Core instance
####log= None
logging instance
####config = None
core config
####setConf(option, value)
see setConfig
####setConfig(option, value)
Set config value for current plugin
Parameters:
- option –
- value –
Returns:
####getConf(option)
see getConfig
####getConfig(option)
Returns config value for current plugin
Parameters: option – Returns:
####setStorage(key, value)
Saves a value persistently to the database
####store(key, value)
same as setStorage
####getStorage(key=None, default=None)
Retrieves saved value or dict of all saved entries if key is None
####retrieve(*args, **kwargs)
same as getStorage
####delStorage(key)
Delete entry in db
This page may no longer be valid. If you find something wrong, please report it.