[Zope] disable WebDAV and XML-RPC? - half a solution

Chui Tey teyc@cognoware.com
Sat, 17 Mar 2001 16:05:43 +1000


In ZPublisher/Publish.py:

     if not hasattr(fs,'list') or fs.list is None:
         # Hm, maybe it's an XML-RPC
         if (fs.headers.has_key('content-type') and
             fs.headers['content-type'] == 'text/xml' and
             method == 'POST'):
             # Ye haaa, XML-RPC!

change to:

     if not hasattr(fs,'list') or fs.list is None:
         # Hm, maybe it's an XML-RPC
         if 0:
             # Ye haaa, XML-RPC!

Chui