Wrap rendered nodes in tags
This commit is contained in:
parent
03f5ae2742
commit
18d5d3fc49
|
@ -1187,33 +1187,33 @@ class HelperStatusElement(Element):
|
||||||
|
|
||||||
@renderer
|
@renderer
|
||||||
def incoming(self, req, tag):
|
def incoming(self, req, tag):
|
||||||
return "%d bytes in %d files" % (self._data["chk_upload_helper.incoming_size"],
|
return tag("%d bytes in %d files" % (self._data["chk_upload_helper.incoming_size"],
|
||||||
self._data["chk_upload_helper.incoming_count"])
|
self._data["chk_upload_helper.incoming_count"]))
|
||||||
|
|
||||||
@renderer
|
@renderer
|
||||||
def encoding(self, req, tag):
|
def encoding(self, req, tag):
|
||||||
return "%d bytes in %d files" % (self._data["chk_upload_helper.encoding_size"],
|
return tag("%d bytes in %d files" % (self._data["chk_upload_helper.encoding_size"],
|
||||||
self._data["chk_upload_helper.encoding_count"])
|
self._data["chk_upload_helper.encoding_count"]))
|
||||||
|
|
||||||
@renderer
|
@renderer
|
||||||
def upload_requests(self, req, tag):
|
def upload_requests(self, req, tag):
|
||||||
return str(self._data["chk_upload_helper.upload_requests"])
|
return tag(str(self._data["chk_upload_helper.upload_requests"]))
|
||||||
|
|
||||||
@renderer
|
@renderer
|
||||||
def upload_already_present(self, req, tag):
|
def upload_already_present(self, req, tag):
|
||||||
return str(self._data["chk_upload_helper.upload_already_present"])
|
return tag(str(self._data["chk_upload_helper.upload_already_present"]))
|
||||||
|
|
||||||
@renderer
|
@renderer
|
||||||
def upload_need_upload(self, req, tag):
|
def upload_need_upload(self, req, tag):
|
||||||
return str(self._data["chk_upload_helper.upload_need_upload"])
|
return tag(str(self._data["chk_upload_helper.upload_need_upload"]))
|
||||||
|
|
||||||
@renderer
|
@renderer
|
||||||
def upload_bytes_fetched(self, req, tag):
|
def upload_bytes_fetched(self, req, tag):
|
||||||
return str(self._data["chk_upload_helper.fetched_bytes"])
|
return tag(str(self._data["chk_upload_helper.fetched_bytes"]))
|
||||||
|
|
||||||
@renderer
|
@renderer
|
||||||
def upload_bytes_encoded(self, req, tag):
|
def upload_bytes_encoded(self, req, tag):
|
||||||
return str(self._data["chk_upload_helper.encoded_bytes"])
|
return tag(str(self._data["chk_upload_helper.encoded_bytes"]))
|
||||||
|
|
||||||
|
|
||||||
# Render "/statistics" page.
|
# Render "/statistics" page.
|
||||||
|
|
Loading…
Reference in New Issue