mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-08 04:10:25 +00:00
Add docstrings to StorageStatusElement
This commit is contained in:
parent
d3ff578640
commit
227d06fe64
@ -24,9 +24,15 @@ def remove_prefix(s, prefix):
|
|||||||
|
|
||||||
|
|
||||||
class StorageStatusElement(Element):
|
class StorageStatusElement(Element):
|
||||||
|
"""Class to render a storage status page."""
|
||||||
|
|
||||||
loader = XMLFile(FilePath(__file__).sibling("storage_status.xhtml"))
|
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__()
|
super(StorageStatusElement, self).__init__()
|
||||||
self.storage = storage
|
self.storage = storage
|
||||||
self.nick = nickname
|
self.nick = nickname
|
||||||
|
Loading…
x
Reference in New Issue
Block a user