Back to index

plone3  3.1.7
Functions
plone.protect.postonly Namespace Reference

Functions

def check

Function Documentation

def plone.protect.postonly.check (   request)

Definition at line 5 of file postonly.py.

00005 
00006 def check(request):
00007     if isinstance(request, HTTPRequest):
00008         if request.get('REQUEST_METHOD', 'GET').upper() != 'POST':
00009             raise Forbidden('Request must be POST')