def setUp(self): self.root = fs.dummies()
#!/usr/bin/env python import BaseHTTPServer from elementtree import ElementTree as ET from ns import DAV import fs FS = fs.dummies() def properties(resource): #<D:response xmlns:lp1="DAV:" #xmlns:lp2="http://apache.org/dav/props/"> # <D:href>/</D:href> # <D:propstat> # <D:prop> # <lp1:resourcetype><D:collection/></lp1:resourcetype> # <lp1:creationdate>2006-06-18T13:48:07Z</lp1:creationdate> # <lp1:getlastmodified>Sun, 18 Jun 2006 13:48:07 GMT</lp1:getlastmodified> # <lp1:getetag>"7dcb79-1000-4167fe64853c0"</lp1:getetag> # <D:supportedlock> # <D:lockentry> # <D:lockscope><D:exclusive/></D:lockscope> # <D:locktype><D:write/></D:locktype> # </D:lockentry> # <D:lockentry> # <D:lockscope><D:shared/></D:lockscope> # <D:locktype><D:write/></D:locktype> # </D:lockentry> # </D:supportedlock> # <D:lockdiscovery/> # <D:getcontenttype>httpd/unix-directory</D:getcontenttype>