Added maildav test script, added definition for MOVE command in webdavlib

Monotone-Parent: fcece651323f876baef1d1d08bc52772b67ce6a4
Monotone-Revision: aaff100260149e4a5e6eec5c546d0f957293c6a9

Monotone-Author: crobert@inverse.ca
Monotone-Date: 2009-09-28T20:47:27
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
C Robert committed 2009-09-28 20:47:27 +00:00
1 parent 9ae151dfb9
commit 7d27853a4d
2 files changed
+128

No files matched your search

+15
View File
@@ -167,6 +167,21 @@ class WebDAVPROPFIND(WebDAVQuery):
prop_tag = self.render_tag(prop)
props.append(_WD_XMLTreeElement(prop_tag))
class WebDAVMOVE(WebDAVQuery):
method = "MOVE"
destination = None
host = None
def prepare_headers(self):
headers = WebDAVQuery.prepare_headers(self)
print "DESTINATION", self.destination
if self.destination is not None:
headers["Destination"] = self.destination
if self.host is not None:
headers["Host"] = self.host
return headers
class CalDAVPOST(WebDAVQuery):
method = "POST"