comparison src/server/server.py @ 608:ea27925ef2a8 frontends_multi_profiles

merges souliane changes
author Goffi <goffi@goffi.org>
date Mon, 09 Feb 2015 21:58:49 +0100
parents 917e271975d9 be3fd3874c3a
children deddd1cd8aa5
comparison
equal deleted inserted replaced
607:537649f6a2d0 608:ea27925ef2a8
1106 def putChild(path, resource): 1106 def putChild(path, resource):
1107 """Add a child to the root resource""" 1107 """Add a child to the root resource"""
1108 root.putChild(path, EncodingResourceWrapper(resource, [server.GzipEncoderFactory()])) 1108 root.putChild(path, EncodingResourceWrapper(resource, [server.GzipEncoderFactory()]))
1109 1109
1110 putChild('', Redirect('libervia.html')) 1110 putChild('', Redirect('libervia.html'))
1111 putChild('test', Redirect('libervia_test.html'))
1111 putChild('json_signal_api', self.signal_handler) 1112 putChild('json_signal_api', self.signal_handler)
1112 putChild('json_api', MethodHandler(self)) 1113 putChild('json_api', MethodHandler(self))
1113 putChild('register_api', _register) 1114 putChild('register_api', _register)
1114 putChild('upload_radiocol', _upload_radiocol) 1115 putChild('upload_radiocol', _upload_radiocol)
1115 putChild('upload_avatar', _upload_avatar) 1116 putChild('upload_avatar', _upload_avatar)