[Zope-CVS] CVS: Packages/Moztop/moztopsupport/dav - proppatch.py:1.1 configure.zcml:1.9

Sidnei da Silva sidnei@x3ng.com.br
Wed, 2 Apr 2003 14:14:16 -0500


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

Modified Files:
	configure.zcml 
Added Files:
	proppatch.py 
Log Message:
Well, now that we are here, lets lie a bit more

=== Added File Packages/Moztop/moztopsupport/dav/proppatch.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.
##############################################################################
"""WebDAV method PROPPATCH

$Id: proppatch.py,v 1.1 2003/04/02 19:13:46 sidnei Exp $
"""
__metaclass__ = type

class PROPPATCH:
    """PROPPATCH handler for all objects
    """

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

    def PROPPATCH(self):
        request = self.request
        context = self.context
        request.response.setStatus(403)
        return ''


=== Packages/Moztop/moztopsupport/dav/configure.zcml 1.8 => 1.9 ===
--- Packages/Moztop/moztopsupport/dav/configure.zcml:1.8	Sat Mar 29 14:39:17 2003
+++ Packages/Moztop/moztopsupport/dav/configure.zcml	Wed Apr  2 14:13:46 2003
@@ -8,6 +8,14 @@
 	allowed_attributes="PROPFIND setDepth getDepth"
   />
 
+  <view for="*"
+ 	name="PROPPATCH"
+	type="zope.publisher.interfaces.http.IHTTPPresentation"
+	factory=".proppatch.PROPPATCH"
+	permission="zope.ManageContent"
+	allowed_attributes="PROPPATCH"
+  />
+
   <view for="zope.app.interfaces.http.INullResource"
  	name="MKCOL"
 	type="zope.publisher.interfaces.http.IHTTPPresentation"