* added a (non-linked) url to access the list of recognized block devices

This commit is contained in:
lars 2009-06-11 09:24:03 +00:00
parent 6984bc8841
commit 22021866b4

View file

@ -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", "&nbsp;")
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