diff 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
line wrap: on
line diff
--- a/src/server/constants.py	Sun Apr 16 18:26:31 2017 +0200
+++ b/src/server/constants.py	Mon Apr 17 20:41:00 2017 +0200
@@ -58,6 +58,10 @@
     PAGES_ACCESS_ADMIN = u"admin"  # only profiles set in admins_list can access the page
     PAGES_ACCESS_ALL = (PAGES_ACCESS_NONE, PAGES_ACCESS_PUBLIC, PAGES_ACCESS_PROFILE, PAGES_ACCESS_ADMIN)
 
+    ## HTTP methods ##
+    HTTP_METHOD_GET = u'GET'
+    HTTP_METHOD_POST = u'POST'
+
     ## HTTP codes ##
     HTTP_BAD_REQUEST = 400
     HTTP_UNAUTHORIZED = 401