summaryrefslogtreecommitdiff
path: root/errors
diff options
context:
space:
mode:
authorAleš Smodiš <aless@guru.si>2015-10-08 18:56:48 +0200
committerAleš Smodiš <aless@guru.si>2015-10-08 18:56:48 +0200
commit76bfb287b51bd97c9ca0bfc4e7760b7ee8e15b47 (patch)
tree1124ec688054e2adb31f8a12c84115ec55381d7a /errors
parentb6eeda1a66da16f90d02dd5d439d5cc5088c1a88 (diff)
Reworked session handling.
* All requests have a session ID, except for the initial create_session system messages. * User session can be in an authenticated or anonymous state. * In anonymous state it is not possible to perform user actions. * Logout has been implemented. * Sessions timeout and are cleared after a period of inactivity (1 hour). * Bugfixed the lang setting handling. * Renamed get_problem -> get_current_solution, return only the user's current solution, not the whole problem data.
Diffstat (limited to 'errors')
-rw-r--r--errors/session.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/errors/session.py b/errors/session.py
index 06916c3..a09c4ec 100644
--- a/errors/session.py
+++ b/errors/session.py
@@ -16,4 +16,7 @@ class PasswordChangeFailed(Exception):
pass
class RequestProcessingError(Exception):
- pass \ No newline at end of file
+ pass
+
+class NotLoggedIn(Exception):
+ pass