* added a (non-linked) url to access the list of recognized block devices
This commit is contained in:
parent
6984bc8841
commit
22021866b4
1 changed files with 16 additions and 1 deletions
|
@ -407,7 +407,22 @@ class WebInterfaceSites:
|
|||
else:
|
||||
return lambda **args: handler(self, **args)
|
||||
|
||||
|
||||
|
||||
@cherrypy.expose
|
||||
def debug_show_all_devices(self, weblang="", help="0", device=None):
|
||||
import cryptobox.core.main
|
||||
self.__reset_dataset()
|
||||
self.__set_web_lang(weblang)
|
||||
self.__check_environment()
|
||||
result = "<html><head><title>Test</title><body>"
|
||||
output = cryptobox.core.blockdevice.get_devices_and_show()
|
||||
output = output.replace("\t", " ")
|
||||
output = output.replace("\n", "<br/>")
|
||||
result += output
|
||||
result += "</body></html>"
|
||||
return result
|
||||
|
||||
|
||||
@cherrypy.expose
|
||||
def test(self, weblang="", help="0", device=None):
|
||||
"""test authentication - this function may be safely removed
|
||||
|
|
Loading…
Reference in a new issue