Browse Source

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

master
lars 13 years ago
parent
commit
22021866b4
  1. 17
      src/cryptobox/web/sites.py

17
src/cryptobox/web/sites.py

@ -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

Loading…
Cancel
Save