~bzr/bzr-webdav/webdav

  • Committer: Vincent Ladeuil
  • Date: 2008-06-08 22:35:42 UTC
  • Revision ID: v.ladeuil+lp@free.fr-20080608223542-c47y2fmxuj9jngyy
All bzr tests passing with an apache2-dav local test server.

* test_webdav.py:
(_get_list_dir_apache2_depth_1_allprop): Tweak the the example by
putting non-zero lengths.
(TestDavSaxParser.test_list_dir_apache2_dir_depth_1_example):
<cough> add the forgotten test, we need to test for correct
behaviour and we re-factored two commits ago to do that don't we ?
(TestDavSaxParser.test_stat_apache2_dir_depth_0_example): Update
test '-1' for directory size is as good as None.

* webdav.py:
(DavStatHandler._init_response_attrs): Use '-1' for default length
value instead of None.
(DavStatHandler.endElement): Convert the length to int.
(_extract_dir_content): Return the full tuple instead of just the
name.
(HttpDavTransport.list_dir): Delegate to _list_tree and filter the
result.
(HttpDavTransport._list_tree): Was list_dir but now accept an
additional depth parameter.
(HttpDavTransport.iter_files_recursive): New function.
Filename Latest Rev Last Changed Committer Comment Size
..
__init__.py 45 15 years ago Vincent Ladeuil Basic ah-hoc DAV response xml handler. * webdav.p 2.1 KB Diff Download File
NOTES 54 15 years ago Vincent Ladeuil All bzr tests passing with an apache2-dav local te 1.1 KB Diff Download File
test_webdav.py 54 15 years ago Vincent Ladeuil All bzr tests passing with an apache2-dav local te 26.7 KB Diff Download File
TODO 50 15 years ago Vincent Ladeuil First implementation for stat. Some test are still 229 bytes Diff Download File
webdav.py 54 15 years ago Vincent Ladeuil All bzr tests passing with an apache2-dav local te 33.6 KB Diff Download File