Mercurial > libervia-web
comparison 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 |
comparison
equal
deleted
inserted
replaced
480:50b286866739 | 481:bbdc5357dc00 |
---|---|
27 COMPOSITION_KEY = D_("Composition") | 27 COMPOSITION_KEY = D_("Composition") |
28 ENABLE_UNIBOX_PARAM = D_("Enable unibox") | 28 ENABLE_UNIBOX_PARAM = D_("Enable unibox") |
29 | 29 |
30 # MISC | 30 # MISC |
31 PASSWORD_MIN_LENGTH = 6 # for new account creation | 31 PASSWORD_MIN_LENGTH = 6 # for new account creation |
32 | |
33 # HTTP REQUEST RESULT VALUES | |
34 PROFILE_AUTH_ERROR = 'PROFILE AUTH ERROR' | |
35 XMPP_AUTH_ERROR = 'XMPP AUTH ERROR' | |
36 ALREADY_WAITING = 'ALREADY WAITING' | |
37 SESSION_ACTIVE = 'SESSION ACTIVE' | |
38 PROFILE_LOGGED = 'LOGGED' | |
39 ALREADY_EXISTS = 'ALREADY EXISTS' | |
40 REGISTRATION_SUCCEED = 'REGISTRATION' | |
41 INTERNAL_ERROR = 'INTERNAL ERROR' | |
42 BAD_REQUEST = 'BAD REQUEST' | |
43 NO_REPLY = 'NO REPLY' | |
44 NOT_ALLOWED = 'NOT ALLOWED' | |
45 UPLOAD_OK = 'UPLOAD OK' | |
46 UPLOAD_KO = 'UPLOAD KO' | |
47 UNKNOWN_ERROR = 'UNMANAGED FAULT STRING (%s)' |