1.1 --- a/OpenSecurity/bin/opensecurityd.pyw Wed Feb 19 12:18:03 2014 +0100
1.2 +++ b/OpenSecurity/bin/opensecurityd.pyw Wed Feb 26 17:27:07 2014 +0100
1.3 @@ -54,8 +54,8 @@
1.4
1.5 """All the URLs we know mapping to class handler"""
1.6 opensecurity_urls = (
1.7 - '/device_change', 'os_device_change', # http://localhost:8080/device_change GET
1.8 - '/sdvm_started', 'os_sdvm_started', # http://localhost:8080/sdvm_started GET
1.9 + #'/device_change', 'os_device_change', # http://localhost:8080/device_change GET
1.10 + #'/sdvm_started', 'os_sdvm_started', # http://localhost:8080/sdvm_started GET
1.11 '/browsing', 'os_browsing', # http://localhost:8080/browsing GET
1.12 '/sdvms', 'os_sdvms', # http://localhost:8080/sdvms GET, PUT
1.13 '/sdvms/(.*)/application/(.*)', 'os_sdvm_application', # http://localhost:8080/sdvms/[VMNAME]/application/[COMMAND] GET
1.14 @@ -79,16 +79,16 @@
1.15 # code
1.16
1.17
1.18 -class os_device_change:
1.19 - """OpenSecurity '/device_change' handler"""
1.20 -
1.21 - def GET(self):
1.22 - log_call(web.ctx.environ)
1.23 - try:
1.24 - new_ip = gvm_mgr.handleDeviceChange()
1.25 - return new_ip
1.26 - except:
1.27 - raise web.internalerror()
1.28 +#class os_device_change:
1.29 +# """OpenSecurity '/device_change' handler"""
1.30 +#
1.31 +# def GET(self):
1.32 +# log_call(web.ctx.environ)
1.33 +# try:
1.34 +# new_ip = gvm_mgr.handleDeviceChange()
1.35 +# return new_ip
1.36 +# except:
1.37 +# raise web.internalerror()
1.38
1.39
1.40 class os_browsing:
1.41 @@ -105,14 +105,14 @@
1.42 except:
1.43 raise web.internalerror()
1.44
1.45 -class os_sdvm_started:
1.46 - """OpenSecurity '/sdvm_started' handler"""
1.47 -
1.48 - def GET(self):
1.49 - log_call(web.ctx.environ)
1.50 - remote_ip = web.ctx.environ['REMOTE_ADDR']
1.51 - gvm_mgr.putStartNotification(remote_ip)
1.52 - return "os_sdvm_started"
1.53 +#class os_sdvm_started:
1.54 +# """OpenSecurity '/sdvm_started' handler"""
1.55 +#
1.56 +# def GET(self):
1.57 +# log_call(web.ctx.environ)
1.58 +# remote_ip = web.ctx.environ['REMOTE_ADDR']
1.59 +# gvm_mgr.putStartNotification(remote_ip)
1.60 +# return "os_sdvm_started"
1.61
1.62 class os_sdvm:
1.63 """OpenSecurity '/sdvms/[VM]' handler