Commit 7f8d7b75 authored by Martin Matějek's avatar Martin Matějek

Docstrings

parent a8a59fe6
......@@ -105,7 +105,8 @@ class Notification:
@classmethod
def _generate_id(cls):
"""
Unique id of message based on timestamp
Generate unique id of message based on timestamp
returned as string
"""
ts = int(cls._generate_timestamp()) # rounding to int
......
......@@ -18,6 +18,7 @@ class PluginStorage:
self.load()
def plugin_file_path(self, f):
"""Return full path of plugin file"""
return os.path.join(self.plugin_dir, f)
def load(self):
......@@ -31,6 +32,7 @@ class PluginStorage:
self.plugins[p.name] = p
def get_plugin(self, name):
"""Return plugin specified by name"""
return self.plugins[name]
def get_all(self):
......@@ -71,6 +73,7 @@ class PluginStorage:
return self.skeletons[skel_id]
def get_notification_types(self):
"""Return all notification types from plugins"""
ret = []
for name, plugin in self.plugins.items():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment