diff src/common/constants.py @ 481:bbdc5357dc00

browser and server sides: refactor HTTP request result values + handle "NoReply" error
author souliane <souliane@mailoo.org>
date Sun, 15 Jun 2014 17:52:08 +0200
parents 07433bd892ee
children 0bbbef1d53a8
line wrap: on
line diff
--- a/src/common/constants.py	Sat Jun 14 19:20:27 2014 +0200
+++ b/src/common/constants.py	Sun Jun 15 17:52:08 2014 +0200
@@ -29,3 +29,19 @@
 
     # MISC
     PASSWORD_MIN_LENGTH = 6  # for new account creation
+
+    # HTTP REQUEST RESULT VALUES
+    PROFILE_AUTH_ERROR = 'PROFILE AUTH ERROR'
+    XMPP_AUTH_ERROR = 'XMPP AUTH ERROR'
+    ALREADY_WAITING = 'ALREADY WAITING'
+    SESSION_ACTIVE = 'SESSION ACTIVE'
+    PROFILE_LOGGED = 'LOGGED'
+    ALREADY_EXISTS = 'ALREADY EXISTS'
+    REGISTRATION_SUCCEED = 'REGISTRATION'
+    INTERNAL_ERROR = 'INTERNAL ERROR'
+    BAD_REQUEST = 'BAD REQUEST'
+    NO_REPLY = 'NO REPLY'
+    NOT_ALLOWED = 'NOT ALLOWED'
+    UPLOAD_OK = 'UPLOAD OK'
+    UPLOAD_KO = 'UPLOAD KO'
+    UNKNOWN_ERROR = 'UNMANAGED FAULT STRING (%s)'