typos fix and todo added
This commit is contained in:
parent
889d3d8f9c
commit
481e48f495
2 changed files with 4 additions and 2 deletions
|
@ -31,7 +31,7 @@ def log(name, data):
|
||||||
|
|
||||||
class PluginSuperClass:
|
class PluginSuperClass:
|
||||||
"""
|
"""
|
||||||
Superclass for all plugins. Plugin is python module with at least one class derived from PluginSuperClass.
|
Superclass for all plugins. Plugin is Python3 module with at least one class derived from PluginSuperClass.
|
||||||
"""
|
"""
|
||||||
is_plugin = True
|
is_plugin = True
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@ class PluginSuperClass:
|
||||||
def load_settings(self):
|
def load_settings(self):
|
||||||
"""
|
"""
|
||||||
This method loads settings of plugin and returns raw data
|
This method loads settings of plugin and returns raw data
|
||||||
If file doesn't this method raises exception
|
If file doesn't exist this method raises exception
|
||||||
"""
|
"""
|
||||||
with open(path_to_data(self._short_name) + 'settings.json', 'rb') as fl:
|
with open(path_to_data(self._short_name) + 'settings.json', 'rb') as fl:
|
||||||
data = fl.read()
|
data = fl.read()
|
||||||
|
|
|
@ -33,6 +33,8 @@ TOX_ERR_DECRYPTION = {
|
||||||
|
|
||||||
TOX_PASS_ENCRYPTION_EXTRA_LENGTH = 80
|
TOX_PASS_ENCRYPTION_EXTRA_LENGTH = 80
|
||||||
|
|
||||||
|
# TODO: move logic to separate class
|
||||||
|
|
||||||
|
|
||||||
class ToxEncryptSave(util.Singleton):
|
class ToxEncryptSave(util.Singleton):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue