[Zope-CVS] CVS: Packages/Moztop/moztopsupport/http - options.py:1.2
Sidnei da Silva
sidnei@x3ng.com.br
Mon, 24 Mar 2003 17:23:05 -0500
Update of /cvs-repository/Packages/Moztop/moztopsupport/http
In directory cvs.zope.org:/tmp/cvs-serv20239/http
Modified Files:
options.py
Log Message:
Its broken with Zope3 HEAD now, but its working with my local fixes and I can actually connect to Zope3 with cadaver! Pending the response of my email to zope3-dev
=== Packages/Moztop/moztopsupport/http/options.py 1.1 => 1.2 ===
--- Packages/Moztop/moztopsupport/http/options.py:1.1 Mon Mar 24 14:19:45 2003
+++ Packages/Moztop/moztopsupport/http/options.py Mon Mar 24 17:23:05 2003
@@ -9,15 +9,16 @@
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
##############################################################################
-"""HTTP method OPTIONS
+"""HTTP method HEAD
$Id$
"""
__metaclass__ = type
-_allowed_methods = ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'CONNECT', \
+_allowed_methods = ['PUT', 'DELETE', 'CONNECT', \
'OPTIONS', 'PATCH', 'PROPFIND', 'PROPPATCH', 'MKCOL', \
'COPY', 'MOVE', 'LOCK', 'UNLOCK', 'TRACE']
+ # 'GET', 'HEAD', 'POST' are implicit
from zope.component import getAdapter, queryView
@@ -30,7 +31,7 @@
self.request = request
def OPTIONS(self):
- allowed = []
+ allowed = ['GET', 'HEAD', 'POST']
for m in _allowed_methods:
view = queryView(self.context, m, self.request, None)
if view is not None: