SemaServer
¤
SemaServer
¤
SemaServer()
Source code in sema_toolchain/sema_web_app/application/SemaServer.py
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
|
add_header
¤
add_header(r)
It sets the cache control headers to prevent caching
:param r: The response object :return: the response object with the headers added.
Source code in sema_toolchain/sema_web_app/application/SemaServer.py
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 |
|
init_classifier_args
¤
init_classifier_args()
Do an API call to the sema-classifier container to get the arguments to put on the index page
Source code in sema_toolchain/sema_web_app/application/SemaServer.py
74 75 76 77 |
|
init_scdg_args
¤
init_scdg_args()
Do an API call to the sema-scdg container to get the arguments to put on the index page
Source code in sema_toolchain/sema_web_app/application/SemaServer.py
80 81 82 83 |
|
redirection
¤
redirection()
It redirects the user to the index.html page :return: a redirect to the index.html page.
Source code in sema_toolchain/sema_web_app/application/SemaServer.py
125 126 127 128 129 130 131 |
|
serve_index
¤
serve_index()
It creates a folder for the project, and then calls the upload function :return: the upload function.
Source code in sema_toolchain/sema_web_app/application/SemaServer.py
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 |
|