summaryrefslogtreecommitdiff
path: root/django/core/handlers/modpython.py
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-06-20 03:48:31 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-06-20 03:48:31 +0000
commit136752ca9a87be908f9ec1e398bbd56b0c75222c (patch)
treef8ba00ebfda2cb7bd0c559ac3064407bcbc68330 /django/core/handlers/modpython.py
parenta09682fd6376159f81de9d6dc8c86ebd4e0b6513 (diff)
Added 'method' attribute to HttpRequest objects
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3164 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/core/handlers/modpython.py')
-rw-r--r--django/core/handlers/modpython.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/django/core/handlers/modpython.py b/django/core/handlers/modpython.py
index ce7f6f1ad2..5a20ce9f67 100644
--- a/django/core/handlers/modpython.py
+++ b/django/core/handlers/modpython.py
@@ -98,6 +98,9 @@ class ModPythonRequest(http.HttpRequest):
self._raw_post_data = self._req.read()
return self._raw_post_data
+ def _get_method(self):
+ return self.META['REQUEST_METHOD'].upper()
+
GET = property(_get_get, _set_get)
POST = property(_get_post, _set_post)
COOKIES = property(_get_cookies, _set_cookies)
@@ -105,6 +108,7 @@ class ModPythonRequest(http.HttpRequest):
META = property(_get_meta)
REQUEST = property(_get_request)
raw_post_data = property(_get_raw_post_data)
+ method = property(_get_method)
class ModPythonHandler(BaseHandler):
def __call__(self, req):