[Zope-CVS] CVS: Packages/Moztop/moztopsupport/http - trace.py:1.1 configure.zcml:1.3 options.py:1.3

Sidnei da Silva sidnei@x3ng.com.br
Sat, 29 Mar 2003 12:09:55 -0500


Update of /cvs-repository/Packages/Moztop/moztopsupport/http
In directory cvs.zope.org:/tmp/cvs-serv26151/moztopsupport/http

Modified Files:
	configure.zcml options.py 
Added Files:
	trace.py 
Log Message:
Adding working propfind with depth, except allprop. MKCOL is working. TRACE and placeholder classes for MOVE and COPY

=== Added File Packages/Moztop/moztopsupport/http/trace.py ===
##############################################################################
# Copyright (c) 2003 Zope Corporation and Contributors.
# All Rights Reserved.
# 
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
##############################################################################
"""HTTP method OPTIONS

$Id: trace.py,v 1.1 2003/03/29 17:09:55 sidnei Exp $
"""
__metaclass__ = type

from zope.component import getAdapter, queryView

class TRACE:
    """TRACE handler
    """

    def __init__(self, context, request):
        self.context = context
        self.request = request

    def TRACE(self):
        request = self.request
        data = request.bodyFile

        request.response.setBody(data)
        request.response.setHeader('Content-Type', 'message/http')
        request.response.setStatus(200)
        return ''



=== Packages/Moztop/moztopsupport/http/configure.zcml 1.2 => 1.3 ===
--- Packages/Moztop/moztopsupport/http/configure.zcml:1.2	Mon Mar 24 14:19:45 2003
+++ Packages/Moztop/moztopsupport/http/configure.zcml	Sat Mar 29 12:09:55 2003
@@ -20,8 +20,17 @@
   name="OPTIONS"
   type="zope.publisher.interfaces.http.IHTTPPresentation"
   factory=".options.OPTIONS"
-  permission="zope.Public"
+  permission="zope.ManageContent"
   allowed_attributes="OPTIONS"
+  />
+
+<view 
+  for="*"
+  name="TRACE"
+  type="zope.publisher.interfaces.http.IHTTPPresentation"
+  factory=".trace.TRACE"
+  permission="zope.Public"
+  allowed_attributes="TRACE"
   />
 
 <adapter 


=== Packages/Moztop/moztopsupport/http/options.py 1.2 => 1.3 ===
--- Packages/Moztop/moztopsupport/http/options.py:1.2	Mon Mar 24 17:23:05 2003
+++ Packages/Moztop/moztopsupport/http/options.py	Sat Mar 29 12:09:55 2003
@@ -9,7 +9,7 @@
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
 ##############################################################################
-"""HTTP method HEAD
+"""HTTP method OPTIONS
 
 $Id$
 """