mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-25 20:28:54 +00:00
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:
1 parent
9ae151dfb9
commit
7d27853a4d
2 files changed
+128
No files matched your search
@@ -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"
|
||||
|
||||
|
||||
Reference in new issue
Block a user