Mercurial > libervia-web
comparison src/server/server.py @ 602:be3fd3874c3a frontends_multi_profiles
add very basic test system accessible from <root_url>/test, to be improved:
- if you don't get any AssertError pop-up, everything is fine
- TODO: nicely display the results in HTML output
author | souliane <souliane@mailoo.org> |
---|---|
date | Sat, 07 Feb 2015 19:24:38 +0100 |
parents | a5019e62c3e9 |
children | ea27925ef2a8 |
comparison
equal
deleted
inserted
replaced
601:49ccfc22116c | 602:be3fd3874c3a |
---|---|
1088 def putChild(path, resource): | 1088 def putChild(path, resource): |
1089 """Add a child to the root resource""" | 1089 """Add a child to the root resource""" |
1090 root.putChild(path, EncodingResourceWrapper(resource, [server.GzipEncoderFactory()])) | 1090 root.putChild(path, EncodingResourceWrapper(resource, [server.GzipEncoderFactory()])) |
1091 | 1091 |
1092 putChild('', Redirect('libervia.html')) | 1092 putChild('', Redirect('libervia.html')) |
1093 putChild('test', Redirect('libervia_test.html')) | |
1093 putChild('json_signal_api', self.signal_handler) | 1094 putChild('json_signal_api', self.signal_handler) |
1094 putChild('json_api', MethodHandler(self)) | 1095 putChild('json_api', MethodHandler(self)) |
1095 putChild('register_api', _register) | 1096 putChild('register_api', _register) |
1096 putChild('upload_radiocol', _upload_radiocol) | 1097 putChild('upload_radiocol', _upload_radiocol) |
1097 putChild('upload_avatar', _upload_avatar) | 1098 putChild('upload_avatar', _upload_avatar) |