Add docstrings to StorageStatusElement

This commit is contained in:
Sajith Sasidharan 2020-02-11 17:02:14 -05:00
parent d3ff578640
commit 227d06fe64

View File

@ -24,9 +24,15 @@ def remove_prefix(s, prefix):
class StorageStatusElement(Element):
"""Class to render a storage status page."""
loader = XMLFile(FilePath(__file__).sibling("storage_status.xhtml"))
def __init__(self, storage, nickname):
def __init__(self, storage, nickname=""):
"""
:param _StorageServer storage: data about storage.
:param string nickname: friendly name for storage.
"""
super(StorageStatusElement, self).__init__()
self.storage = storage
self.nick = nickname