From: yomguy Date: Tue, 22 Jan 2008 23:00:23 +0000 (+0000) Subject: Add python-dav X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4a63d841e43231169516fd4e71bdadc5f900989b;p=tools.git Add python-dav git-svn-id: http://svn.parisson.org/svn/tools/trunk@33 457c0346-1240-4656-8a5a-9edca8063506 --- diff --git a/python-dav/davtest.py b/python-dav/davtest.py new file mode 100644 index 0000000..ef15429 --- /dev/null +++ b/python-dav/davtest.py @@ -0,0 +1,224 @@ +# +# DAV testing hack +# + +import sys +import davlib +import string +import gdbm +import StringIO +import base64 +from xml.utils import qp_xml + +HOST = 'localhost' +PORT = '1980' +BASE = 'http://%s:%s' % (HOST, PORT) +USERNAME = 'zope' +PASSWORD = 'washncellarz' +encodedUSERPASS = base64.encodestring(USERNAME+":"+PASSWORD) + + +def getprop(dirname, fname, ns, propname): + g = gdbm.open(dirname + '/.DAV/' + fname, 'r') + return g[str(ns) + ':' + propname + '\0'] + +def setprop(dirname, fname, ns, propname, value): + g = gdbm.open(dirname + '/.DAV/' + fname, 'c') + g[str(ns) + ':' + propname + '\0'] = value + '\0' + +def dump(dirname, fname): + g = gdbm.open(dirname + '/.DAV/' + fname, 'r') + for key in g.keys(): + print `key`, '=', `g[key]` + +class mydav(davlib.DAV): + def _request(self, method, url, *rest, **kw): + print 'REQUEST:', method, url + response = apply(davlib.DAV._request, (self, method, url) + rest, kw) + print "STATUS:", response.status + print "REASON:", response.reason + for hdr in response.msg.headers: + print string.strip(hdr) + print '-'*70 + if response.status == 207: + #print response.doc.dump() + #print response.doc.toxml() + response.parse_multistatus() + davlib.qp_xml.dump(sys.stdout, response.root) + elif method == 'LOCK' and response.status == 200: + response.parse_lock_response() + davlib.qp_xml.dump(sys.stdout, response.root) + else: + print response.read() + print '-'*70 + return response + def get_lock(self, url, owner='', timeout=None, depth=None): + return self.lock(url, owner, timeout, depth).locktoken + + +def _dav(): + return mydav(HOST, PORT) + +def getvalue(url, ns, prop): + response = _dav().getprops(url, prop, ns=ns) + resp = response.msr.responses[0] + if resp.status and resp.status[0] != 200: + raise 'error retrieving property', response.status + propstat = resp.propstat[0] + if propstat.status and propstat.status[0] != 200: + raise 'error retrieving property', propstat.status + return propstat.prop[(ns, prop)] + + #s = StringIO.StringIO() + #davlib.qp_xml.dump(s, propstat.prop[(ns, prop)]) + #return s.getvalue() + +def gen_test_data(): + # some property values + pv1 = 'pv1' + pv2 = '' + pv3 = 'pv3' + pv4 = '' + pv5 = 'pv5' + pv6 = '' + pv7 = 'pv7' + pv8 = '' + pv9 = 'pv9' + pv10 = '' + pv11 = 'pv11' + pv12 = '' + pv13 = 'pv13' + pv14 = '' + + # prep the file structure + _dav().mkcol('/dav/testdata') + _dav().put('/dav/testdata/file1', 'file1 contents\n') + _dav().put('/dav/testdata/file2', 'file2 contents\n') + _dav().put('/dav/testdata/file3', 'file3 contents\n') + _dav().mkcol('/dav/testdata/sub') + _dav().put('/dav/testdata/sub/file1', 'sub/file1 contents\n') + _dav().put('/dav/testdata/sub/file2', 'sub/file1 contents\n') + _dav().put('/dav/testdata/sub/file3', 'sub/file1 contents\n') + + # attach a bunch of properties + _dav().setprops('/dav/testdata', + pv1, pv2, + pv3, pv4, pv5, pv6, pv7, pv8, + pv9, pv10, pv11, pv12, pv13, pv14) + _dav().setprops('/dav/testdata/file1', + pv1, pv2, + pv3, pv4, pv5, pv6, pv7, pv8, + pv9, pv10, pv11, pv12, pv13, pv14) + _dav().setprops('/dav/testdata/file2', + pv9, pv10, pv11, pv12, pv13, pv14) + _dav().setprops('/dav/testdata/file3', + pv1, pv2, + pv3, pv4, pv5, pv6, pv7, pv8) + _dav().setprops('/dav/testdata/sub', + pv1, pv2) + _dav().setprops('/dav/testdata/sub/file1', + pv1, pv2, + pv9, pv10, pv11, pv12, pv13, pv14) + _dav().setprops('/dav/testdata/sub/file2', + pv3, pv4, pv5, pv6, pv7, pv8, + pv9, pv10, pv11, pv12, pv13, pv14) + _dav().setprops('/dav/testdata/sub/file3', + pv1, pv2, + pv3, pv4, pv5, pv6, pv7, pv8) + + # do some moves and copies + _dav().move('/dav/testdata/file1', BASE + '/dav/testdata/newfile1') + _dav().move('/dav/testdata/sub', BASE + '/dav/testdata/newsub') + _dav().move('/dav/testdata/newsub/file2', BASE + '/dav/testdata/newsubfile2') + _dav().copy('/dav/testdata/newsub/file3', BASE + '/dav/testdata/newsub/file3copy') + _dav().copy('/dav/testdata/newsub/file1', BASE + '/dav/testdata/subfile1copy') + _dav().copy('/dav/testdata/newsub', BASE + '/dav/testdata/subcopy') + + # dump all the data + _dav().allprops('/dav/testdata') + + +def del_test_data(): + _dav().delete('/dav/testdata') + +def gettest(): + _dav()._request('GET', '/dav/test.html') + +def if_test(): + _dav().put('/dav/foo.html', 'foo.html contents\n') + etag = qp_xml.textof(getvalue('/dav/foo.html', 'DAV:', 'getetag')) + print 'ETAG:', etag + _dav()._request('DELETE', '/dav/foo.html', extra_hdrs={ + 'If' : '(["abc"])', + }) + _dav()._request('DELETE', '/dav/foo.html', extra_hdrs={ + 'If' : '([' + etag + '])', + }) + +def lock_test(): + _dav().delete('/dav/locktest') + _dav().mkcol('/dav/locktest') + _dav().mkcol('/dav/locktest/sub') + + # test a locknull resource + r = _dav().lock('/dav/locktest/locknull') + +def test(): + _dav().setauth(USERNAME,PASSWORD) + _dav().mkcol(BASE+'/test/',{"Authorization":"Basic %s" % encodedUSERPASS}) + _dav().put(BASE+'/test/foo.html','\n AZEFZEKKKKK \n',None,None,{"Authorization":"Basic %s" % encodedUSERPASS}) + _dav().get(BASE+'/test/foo.html',{"Authorization":"Basic %s" % encodedUSERPASS}) + #_dav().getprops(BASE+'/foo.html', 'author', 'foober', 'title') + #_dav().mkcol(BASE+'/dav/',{"Authorization":"Basic %s" % encodedUSERPASS}) + #_dav().put(BASE+'/foo.html','\n OKKKKKKKKKKK \n',{"Authorization":"Basic %s" % encodedUSERPASS}) + #_dav().options('/dav/foo.html') + #_dav().delete('/dav/foo.html') + #_dav().delete('/dav/newdir') + #_dav().mkcol('/dav/newdir') + #_dav().mkcol('/dav/newdir/another') + #_dav().allprops('/dav', 1) + #_dav().propnames('/dav', 1) + #_dav().getprops('/dav', 'author', 'foober', 'title') + #_dav().propfind('/dav', + #'' + #'' + #'</prop></propfind>', + #'infinity') + #_dav().delprops('/dav', 'author') + #_dav().setprops('/dav', '''<author> + #<complex oops="hi" two="three" > stuff goes in here + #</complex> + #<more foo="bar"/> + #stuff + #</author>''') + #_dav().put('/dav/blah.cgi', 'body of blah.cgi\n') + #_dav().put('/dav/file1', 'body of file1\n') + #_dav().move('/dav/blah.cgi', BASE + '/dav/foo.cgi') + #_dav().copy('/dav/subdir', BASE + '/dav/subdir3') + #_dav().setprops('/dav/file1','<woo>bar</woo>') + + #_dav().propfind('/dav/foo.cgi', '''<?xml version="1.0"?> + #<propfind xmlns="DAV:"><propname/> + #<foo:bar xmlns:foo="xyz" xmlns:bar="abc"> + #<foo:bar bar:xxx="hello"/> + #<bar:ddd what:aaa="hi" xmlns:what="ha"/> + #<geez xmlns="empty"/> + #<davtag/> + #<rep:davtag2 xmlns:rep="DAV:"/> + #</foo:bar> + #</propfind> + #''') + + #del_test_data() + #gen_test_data() + + +if __name__ == '__main__': + if HOST == 'FILL THIS IN': + import sys + sys.stdout = sys.stderr + print 'ERROR: you must edit davtest.py to set the HOST/PORT values' + print ' at the top of the script.' + sys.exit(1) + + test() diff --git a/python-dav/foo.html b/python-dav/foo.html new file mode 100644 index 0000000..0643f0f --- /dev/null +++ b/python-dav/foo.html @@ -0,0 +1 @@ +OK !! diff --git a/python-dav/log.txt b/python-dav/log.txt new file mode 100644 index 0000000..cccb51e --- /dev/null +++ b/python-dav/log.txt @@ -0,0 +1,1969 @@ +REQUEST: PUT /dav/foo.html +STATUS: 401 +REASON: Unauthorized +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 687 +Content-Length: 213 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: Unauthorized +Bobo-Exception-File: HTTPResponse.py +WWW-Authenticate: basic realm="Zope" +---------------------------------------------------------------------- +<html> + <head> +<base href="http://localhost:1980/dav/foo.html/" /> +<title>foo.html + + + You are not authorized to access this resource. + + + + + +---------------------------------------------------------------------- +REQUEST: OPTIONS /dav/foo.html +STATUS: 200 +REASON: OK +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Accept-Ranges: none +Content-Length: 0 +Allow: GET, HEAD, POST, PUT, DELETE, OPTIONS, TRACE, PROPFIND, PROPPATCH, MKCOL, COPY, MOVE, LOCK, UNLOCK +DAV: 1,2 +---------------------------------------------------------------------- + +---------------------------------------------------------------------- +REQUEST: DELETE /dav/foo.html +STATUS: 401 +REASON: Unauthorized +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 687 +Content-Length: 213 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: Unauthorized +Bobo-Exception-File: HTTPResponse.py +WWW-Authenticate: basic realm="Zope" +---------------------------------------------------------------------- + + + +foo.html + + + You are not authorized to access this resource. + + + + + +---------------------------------------------------------------------- +REQUEST: DELETE /dav/newdir +STATUS: 404 +REASON: Not Found +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 66 +Content-Length: 825 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: NotFound +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: NotFound
+ Error Value: The requested resource was not found.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: MKCOL /dav/newdir +STATUS: 409 +REASON: Conflict +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 65 +Content-Length: 828 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: Conflict +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: Conflict
+ Error Value: Collection ancestors must already exist.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: MKCOL /dav/newdir/another +STATUS: 409 +REASON: Conflict +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 65 +Content-Length: 828 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: Conflict +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: Conflict
+ Error Value: Collection ancestors must already exist.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: PROPFIND /dav +STATUS: 401 +REASON: Unauthorized +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 687 +Content-Length: 200 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: Unauthorized +Bobo-Exception-File: HTTPResponse.py +WWW-Authenticate: basic realm="Zope" +---------------------------------------------------------------------- + + + +Zope + + + You are not authorized to access this resource. + + + + + +---------------------------------------------------------------------- +REQUEST: PROPFIND /dav +STATUS: 401 +REASON: Unauthorized +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 687 +Content-Length: 200 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: Unauthorized +Bobo-Exception-File: HTTPResponse.py +WWW-Authenticate: basic realm="Zope" +---------------------------------------------------------------------- + + + +Zope + + + You are not authorized to access this resource. + + + + + +---------------------------------------------------------------------- +REQUEST: PROPFIND /dav +STATUS: 401 +REASON: Unauthorized +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 687 +Content-Length: 200 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: Unauthorized +Bobo-Exception-File: HTTPResponse.py +WWW-Authenticate: basic realm="Zope" +---------------------------------------------------------------------- + + + +Zope + + + You are not authorized to access this resource. + + + + + +---------------------------------------------------------------------- +REQUEST: PROPFIND /dav +STATUS: 401 +REASON: Unauthorized +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 687 +Content-Length: 200 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: Unauthorized +Bobo-Exception-File: HTTPResponse.py +WWW-Authenticate: basic realm="Zope" +---------------------------------------------------------------------- + + + +Zope + + + You are not authorized to access this resource. + + + + + +---------------------------------------------------------------------- +REQUEST: PROPPATCH /dav +STATUS: 401 +REASON: Unauthorized +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 687 +Content-Length: 200 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: Unauthorized +Bobo-Exception-File: HTTPResponse.py +WWW-Authenticate: basic realm="Zope" +---------------------------------------------------------------------- + + + +Zope + + + You are not authorized to access this resource. + + + + + +---------------------------------------------------------------------- +REQUEST: PROPPATCH /dav +STATUS: 401 +REASON: Unauthorized +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 687 +Content-Length: 200 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: Unauthorized +Bobo-Exception-File: HTTPResponse.py +WWW-Authenticate: basic realm="Zope" +---------------------------------------------------------------------- + + + +Zope + + + You are not authorized to access this resource. + + + + + +---------------------------------------------------------------------- +REQUEST: PUT /dav/blah.cgi +STATUS: 409 +REASON: Conflict +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 65 +Content-Length: 828 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: Conflict +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: Conflict
+ Error Value: Collection ancestors must already exist.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: PUT /dav/file1 +STATUS: 409 +REASON: Conflict +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 65 +Content-Length: 828 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: Conflict +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: Conflict
+ Error Value: Collection ancestors must already exist.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: MOVE /dav/blah.cgi +STATUS: 404 +REASON: Not Found +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 66 +Content-Length: 825 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: NotFound +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: NotFound
+ Error Value: The requested resource was not found.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: COPY /dav/subdir +STATUS: 404 +REASON: Not Found +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 66 +Content-Length: 825 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: NotFound +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: NotFound
+ Error Value: The requested resource was not found.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: PROPPATCH /dav/file1 +STATUS: 404 +REASON: Not Found +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 66 +Content-Length: 825 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: NotFound +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: NotFound
+ Error Value: The requested resource was not found.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: PROPFIND /dav/foo.cgi +STATUS: 404 +REASON: Not Found +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 66 +Content-Length: 825 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: NotFound +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: NotFound
+ Error Value: The requested resource was not found.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: DELETE /dav/testdata +STATUS: 404 +REASON: Not Found +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 66 +Content-Length: 825 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: NotFound +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: NotFound
+ Error Value: The requested resource was not found.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: MKCOL /dav/testdata +STATUS: 409 +REASON: Conflict +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 65 +Content-Length: 828 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: Conflict +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: Conflict
+ Error Value: Collection ancestors must already exist.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: PUT /dav/testdata/file1 +STATUS: 409 +REASON: Conflict +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 65 +Content-Length: 828 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: Conflict +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: Conflict
+ Error Value: Collection ancestors must already exist.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: PUT /dav/testdata/file2 +STATUS: 409 +REASON: Conflict +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 65 +Content-Length: 828 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: Conflict +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: Conflict
+ Error Value: Collection ancestors must already exist.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: PUT /dav/testdata/file3 +STATUS: 409 +REASON: Conflict +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 65 +Content-Length: 828 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: Conflict +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: Conflict
+ Error Value: Collection ancestors must already exist.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: MKCOL /dav/testdata/sub +STATUS: 409 +REASON: Conflict +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 65 +Content-Length: 828 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: Conflict +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: Conflict
+ Error Value: Collection ancestors must already exist.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: PUT /dav/testdata/sub/file1 +STATUS: 409 +REASON: Conflict +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 65 +Content-Length: 828 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: Conflict +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: Conflict
+ Error Value: Collection ancestors must already exist.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: PUT /dav/testdata/sub/file2 +STATUS: 409 +REASON: Conflict +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 65 +Content-Length: 828 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: Conflict +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: Conflict
+ Error Value: Collection ancestors must already exist.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: PUT /dav/testdata/sub/file3 +STATUS: 409 +REASON: Conflict +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 65 +Content-Length: 828 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: Conflict +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: Conflict
+ Error Value: Collection ancestors must already exist.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: PROPPATCH /dav/testdata +STATUS: 404 +REASON: Not Found +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 66 +Content-Length: 825 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: NotFound +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: NotFound
+ Error Value: The requested resource was not found.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: PROPPATCH /dav/testdata/file1 +STATUS: 404 +REASON: Not Found +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 66 +Content-Length: 825 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: NotFound +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: NotFound
+ Error Value: The requested resource was not found.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: PROPPATCH /dav/testdata/file2 +STATUS: 404 +REASON: Not Found +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 66 +Content-Length: 825 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: NotFound +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: NotFound
+ Error Value: The requested resource was not found.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: PROPPATCH /dav/testdata/file3 +STATUS: 404 +REASON: Not Found +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 66 +Content-Length: 825 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: NotFound +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: NotFound
+ Error Value: The requested resource was not found.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: PROPPATCH /dav/testdata/sub +STATUS: 404 +REASON: Not Found +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 66 +Content-Length: 825 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: NotFound +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: NotFound
+ Error Value: The requested resource was not found.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: PROPPATCH /dav/testdata/sub/file1 +STATUS: 404 +REASON: Not Found +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 66 +Content-Length: 825 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: NotFound +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: NotFound
+ Error Value: The requested resource was not found.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: PROPPATCH /dav/testdata/sub/file2 +STATUS: 404 +REASON: Not Found +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:17 GMT +Bobo-Exception-Line: 66 +Content-Length: 825 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: NotFound +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: NotFound
+ Error Value: The requested resource was not found.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: PROPPATCH /dav/testdata/sub/file3 +STATUS: 404 +REASON: Not Found +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:18 GMT +Bobo-Exception-Line: 66 +Content-Length: 825 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: NotFound +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: NotFound
+ Error Value: The requested resource was not found.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: MOVE /dav/testdata/file1 +STATUS: 404 +REASON: Not Found +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:18 GMT +Bobo-Exception-Line: 66 +Content-Length: 825 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: NotFound +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: NotFound
+ Error Value: The requested resource was not found.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: MOVE /dav/testdata/sub +STATUS: 404 +REASON: Not Found +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:18 GMT +Bobo-Exception-Line: 66 +Content-Length: 825 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: NotFound +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: NotFound
+ Error Value: The requested resource was not found.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: MOVE /dav/testdata/newsub/file2 +STATUS: 404 +REASON: Not Found +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:18 GMT +Bobo-Exception-Line: 66 +Content-Length: 825 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: NotFound +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: NotFound
+ Error Value: The requested resource was not found.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: COPY /dav/testdata/newsub/file3 +STATUS: 404 +REASON: Not Found +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:18 GMT +Bobo-Exception-Line: 66 +Content-Length: 825 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: NotFound +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: NotFound
+ Error Value: The requested resource was not found.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: COPY /dav/testdata/newsub/file1 +STATUS: 404 +REASON: Not Found +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:18 GMT +Bobo-Exception-Line: 66 +Content-Length: 825 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: NotFound +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: NotFound
+ Error Value: The requested resource was not found.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: COPY /dav/testdata/newsub +STATUS: 404 +REASON: Not Found +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:18 GMT +Bobo-Exception-Line: 66 +Content-Length: 825 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: NotFound +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: NotFound
+ Error Value: The requested resource was not found.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- +REQUEST: PROPFIND /dav/testdata +STATUS: 404 +REASON: Not Found +Server: Zope/(Zope 2.9.7-final, python 2.4.4, linux2) ZServer/1.1 +Date: Sat, 16 Jun 2007 09:30:18 GMT +Bobo-Exception-Line: 66 +Content-Length: 825 +Bobo-Exception-Value: See the server error log for details +Content-Type: text/html; charset=iso-8859-15 +Bobo-Exception-Type: NotFound +Bobo-Exception-File: NullResource.py +---------------------------------------------------------------------- + + Zope + + + +

Site Error

+ +

An error was encountered while publishing this resource. +

+ +

+ Error Type: NotFound
+ Error Value: The requested resource was not found.
+

+ +
+ +

Troubleshooting Suggestions

+ +
    +
  • The URL may be incorrect.
  • +
  • The parameters passed to this resource may be incorrect.
  • +
  • A resource that this resource relies on may be encountering + an error.
  • +
+ +

For more detailed information about the error, please + refer to the error log. +

+ +

If the error persists please contact the site maintainer. + Thank you for your patience. +

+ + + + + + + +---------------------------------------------------------------------- diff --git a/python-dav/zope_dav_test.py b/python-dav/zope_dav_test.py new file mode 100644 index 0000000..0714e4b --- /dev/null +++ b/python-dav/zope_dav_test.py @@ -0,0 +1,47 @@ +#!/usr/bin.python + +import davlib + +HOST = 'localhost' +PORT = 1980 +BASE = 'http://%s:%s' % (HOST, PORT) + +class mydav(davlib.DAV): + def _request(self, method, url, *rest, **kw): + print 'REQUEST:', method, url + response = apply(davlib.DAV._request, (self, method, url) + rest, kw) + print "STATUS:", response.status + print "REASON:", response.reason + for hdr in response.msg.headers: + print string.strip(hdr) + print '-'*70 + if response.status == 207: + #print response.doc.dump() + #print response.doc.toxml() + response.parse_multistatus() + davlib.qp_xml.dump(sys.stdout, response.root) + elif method == 'LOCK' and response.status == 200: + response.parse_lock_response() + davlib.qp_xml.dump(sys.stdout, response.root) + else: + print response.read() + print '-'*70 + return response + def get_lock(self, url, owner='', timeout=None, depth=None): + return self.lock(url, owner, timeout, depth).locktoken + + +def _dav(): + return mydav(HOST, PORT) + + +def getvalue(url, ns, prop): + response = _dav().getprops(url, prop, ns=ns) + resp = response.msr.responses[0] + if resp.status and resp.status[0] != 200: + raise 'error retrieving property', response.status + propstat = resp.propstat[0] + if propstat.status and propstat.status[0] != 200: + raise 'error retrieving property', propstat.status + return propstat.prop[(ns, prop)] +