You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Inside `/tmp/Lexos/`, there are workspace files (`.lexos` file) and the `session folder` (the folder with a random string as its name since each session is stored in its own folder)
162
164
* A Workspace file is generated whenever a user clicks `Download Workspace` (presently at the top of the GUI).
163
165
* Inside the `session folder`, there are at most 3 files:
164
-
*`filemanager.p`: the file that contains the [FileManager](#filemanager) as
166
+
*`filemanager.py`: the file that contains the [FileManager](#filemanager) as
165
167
pickeled information of the files in the current session, including files that have cut into segments.
166
168
In this way we can save and load (with `utility.loadFileManager` and `utility.saveFileManager`)
167
169
* `filecontents/`: the folder containing all the user's uploaded files
@@ -235,9 +237,9 @@ lexos.py -> managers/utility.py (used to save and load the filemanager and push
235
237
2. get result(optional, usually we don't need to get the result in a 'GET' request)
236
238
3. render_template
237
239
* 'POST' request (sometimes we need to use `if``else` to handle 'POST', because we need to render different templates, for example see `topword()`)
238
-
1. get result
240
+
1. get the calculation result
239
241
2. turn result into display form (generally handles something like generating a preview of the result) or save the result in a file (for download) (optional)
240
-
3. savefilemanager (optional)
242
+
3. savefilemanager (only when the file manager is changed)
241
243
4. cache session
242
244
5. render_template or send_file
243
245
@@ -389,7 +391,7 @@ session_manager.py -> helpers/* (these files can be accessed throughout the whol
389
391
* Note: THIS DOES NOT EXISTS IN THE PROJECT YET
390
392
391
393
* programming workflow example
392
-
* for example you need to cache the option for `lalala` (because we just named our new feature `lalala`, and everyone loved this name :)
394
+
* for example you need to cache the option for `lalala`, because we just decide to name our new feature `lalala`, and everyone loved this name :)
0 commit comments