mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-30 09:48:56 +00:00
Remove StorageStatus.renderHTTP
This was added to please the test suite. Pleased to remove it!
This commit is contained in:
parent
f1fe3a7588
commit
bae32179bf
@ -318,19 +318,3 @@ class StorageStatus(MultiFormatResource):
|
||||
"lease-checker-progress": self._storage.lease_checker.get_progress(),
|
||||
}
|
||||
return json.dumps(d, indent=1) + "\n"
|
||||
|
||||
# to appease the test suite
|
||||
def renderHTTP(self, ctx=None):
|
||||
"""Send HTML or JSON formatted data, based on request.
|
||||
|
||||
This function contains a bit of nevow-ism, but since this is
|
||||
only called from the test suite, the nevow-ism should go away
|
||||
as we update things.
|
||||
|
||||
:param _nevow.context.WovenContext ctx: context is passed on
|
||||
from the test suite. We get a request out of this
|
||||
context, and use the request to render a result.
|
||||
|
||||
"""
|
||||
from nevow.inevow import IRequest
|
||||
return self.render(IRequest(ctx))
|
||||
|
Loading…
Reference in New Issue
Block a user