* 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
1 changed files with 16 additions and 1 deletions

View File

@ -407,7 +407,22 @@ class WebInterfaceSites:
else: else:
return lambda **args: handler(self, **args) 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 @cherrypy.expose
def test(self, weblang="", help="0", device=None): def test(self, weblang="", help="0", device=None):
"""test authentication - this function may be safely removed """test authentication - this function may be safely removed