Re: [Zope] Re: (microsoft) webdav and zope 2.8.4

2006-03-07 Thread Patrick Decat
On 3/2/06, Patrick Decat [EMAIL PROTECTED] wrote:

 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.

I just upgraded from Zope 2.9.0 to Zope 2.9.1 and submitted a patch (
http://www.zope.org/Collectors/Zope/1441 ) that makes the
'MS-Author-Via' header configurable.

Regards,
Patrick.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: (microsoft) webdav and zope 2.8.4

2006-03-03 Thread Patrick Decat
You're right, I've copied/pasted the same patch twice, sorry !

I use both the Ressource.py and Collection.py patches to make O2K3 happy.

Regards,
Patrick.

On 3/3/06, Einar Næss Jensen [EMAIL PROTECTED] wrote:
 -- Forwarded message --
 From: Einar Næss Jensen [EMAIL PROTECTED]
 Date: Mar 3, 2006 9:10 AM
 Subject: Re: [Zope] Re: (microsoft) webdav and zope 2.8.4
 To: Patrick Decat [EMAIL PROTECTED]


 On 3/2/06, Patrick Decat [EMAIL PROTECTED] wrote:

 
  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.

 I think the correct is collection.py, and the missing line is line nr47.
 at least it worked for me after that.



 --
 --
 Einar Næss Jensen
 http://einar.nidelven-it.no/einarblog
 http://www.homemade.no
 tlf: +47 90990249
 (\__/)
 (='.'=)This is Bunny. Copy and paste bunny into your
 ()_()signature to help him gain world domination.


 --
 --
 Einar Næss Jensen
 http://einar.nidelven-it.no/einarblog
 http://www.homemade.no
 tlf: +47 90990249
 (\__/)
 (='.'=)This is Bunny. Copy and paste bunny into your
 ()_()signature to help him gain world domination.
 ___
 Zope maillist  -  Zope@zope.org
 http://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope-dev )

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: (microsoft) webdav and zope 2.8.4

2006-03-03 Thread Pablo Ziliani
First, I am getting emails in the digest mode so apologies to everyone 
if this has been already discussed after I got the last issue, about 
five hours ago.


I also need to have the webdav server working for MS. If somebody sent 
patches or links to them (other than the one I quoted below) I missed 
them completely. But more important than that, I would like to know if 
these patches had already been merged to later versions of Zope (I'm 
also using 2.8.4), or if there are plans for doing so.


Thanks,
Pablo



You're right, I've copied/pasted the same patch twice, sorry !

I use both the Ressource.py and Collection.py patches to make O2K3 happy.

Regards,
Patrick.

On 3/3/06, Einar Næss Jensen [EMAIL PROTECTED] wrote:

-- Forwarded message --
From: Einar Næss Jensen [EMAIL PROTECTED]
Date: Mar 3, 2006 9:10 AM
Subject: Re: [Zope] Re: (microsoft) webdav and zope 2.8.4
To: Patrick Decat [EMAIL PROTECTED]


On 3/2/06, Patrick Decat [EMAIL PROTECTED] wrote:


 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.

I think the correct is collection.py, and the missing line is line nr47.
at least it worked for me after that.




___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: (microsoft) webdav and zope 2.8.4

2006-03-02 Thread Patrick Decat
On 3/2/06, Einar Næss Jensen [EMAIL PROTECTED] wrote:
 On 3/2/06, Einar Næss Jensen [EMAIL PROTECTED] 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.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )