[Zope] Re: (microsoft) webdav and zope 2.8.4
Patrick Decat
pdecat at gmail.com
Thu Mar 2 10:42:25 EST 2006
On 3/2/06, Einar Næss Jensen <einar.nass.jensen at gmail.com> wrote:
> On 3/2/06, Einar Næss Jensen <einar.nass.jensen at gmail.com> wrote:
> > I'm trying to access a zope site via webdav on port 8181. Dreamweaver
> > works ok, but the client in winXP do not want to connect with error:
> > "The folder you entered does not seem to be valid. Please choose another."
>
>
> And the question is: What may I do to enable microsoft client to talk
> to my zope server?
> I want to transfer a large amount of images into the zodb, and need an
> easy way of doing this (from windows).
Check this http://www.zope.org/Collectors/Zope/1441
Then apply the following patches to Zope/lib/python/webdav/Resource.py :
diff -c Resource.py Resource.py-patched
*** Resource.py Thu Mar 2 16:37:27 2006
--- Resource.py-patched Thu Mar 2 16:37:25 2006
***************
*** 71,76 ****
--- 71,77 ----
if not hasattr(response, '_server_version'):
response.setHeader('Connection', 'close')
response.setHeader('Date', rfc1123_date(), 1)
+ response.setHeader('MS-Author-Via', 'DAV')
# HTTP Range support
if HTTPRangeInterface.isImplementedBy(self):
Then the following to Resource.py :
bash-3.00$ diff -c Resource.py Resource.py-patched
*** Resource.py Thu Mar 2 16:37:27 2006
--- Resource.py-patched Thu Mar 2 16:37:25 2006
***************
*** 71,76 ****
--- 71,77 ----
if not hasattr(response, '_server_version'):
response.setHeader('Connection', 'close')
response.setHeader('Date', rfc1123_date(), 1)
+ response.setHeader('MS-Author-Via', 'DAV')
# HTTP Range support
if HTTPRangeInterface.isImplementedBy(self):
Works for me with Office 2003 products.
PS: Just noticed Tres' comment about comming up with a patch which
makes the header
addition configurable. I'll try do that on my next Zope upgrade.
Regards,
Patrick.
More information about the Zope
mailing list