Mercurial > libervia-web
comparison src/server/constants.py @ 931:8a393ae90f8c
server (pages): post requests are now handled:
- if a HTTP post request is done, on_data_post is called on the page
- LiberviaPage.getPostedData help to get easily needed data
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 17 Apr 2017 20:41:00 +0200 |
parents | 16d1084d1371 |
children | a21fee7e30ee |
comparison
equal
deleted
inserted
replaced
930:b5490fa65348 | 931:8a393ae90f8c |
---|---|
56 PAGES_ACCESS_PUBLIC = u"public" | 56 PAGES_ACCESS_PUBLIC = u"public" |
57 PAGES_ACCESS_PROFILE = u"profile" # a session with an existing profile must be started | 57 PAGES_ACCESS_PROFILE = u"profile" # a session with an existing profile must be started |
58 PAGES_ACCESS_ADMIN = u"admin" # only profiles set in admins_list can access the page | 58 PAGES_ACCESS_ADMIN = u"admin" # only profiles set in admins_list can access the page |
59 PAGES_ACCESS_ALL = (PAGES_ACCESS_NONE, PAGES_ACCESS_PUBLIC, PAGES_ACCESS_PROFILE, PAGES_ACCESS_ADMIN) | 59 PAGES_ACCESS_ALL = (PAGES_ACCESS_NONE, PAGES_ACCESS_PUBLIC, PAGES_ACCESS_PROFILE, PAGES_ACCESS_ADMIN) |
60 | 60 |
61 ## HTTP methods ## | |
62 HTTP_METHOD_GET = u'GET' | |
63 HTTP_METHOD_POST = u'POST' | |
64 | |
61 ## HTTP codes ## | 65 ## HTTP codes ## |
62 HTTP_BAD_REQUEST = 400 | 66 HTTP_BAD_REQUEST = 400 |
63 HTTP_UNAUTHORIZED = 401 | 67 HTTP_UNAUTHORIZED = 401 |
64 HTTP_NOT_FOUND = 404 | 68 HTTP_NOT_FOUND = 404 |