]> git.etc.gen.nz Git - whoisi.git/commit
2008-11-12 Christopher Blizzard <blizzard@0xdeadbeef.com>
authorblizzard <blizzard@ae879524-a8bd-4c4c-a5ea-74d2e5fc5a2c>
Wed, 12 Nov 2008 23:44:34 +0000 (23:44 +0000)
committerblizzard <blizzard@ae879524-a8bd-4c4c-a5ea-74d2e5fc5a2c>
Wed, 12 Nov 2008 23:44:34 +0000 (23:44 +0000)
commitd457464990e2fc6ecd867f79c919732832038b99
tree1845a6b81d06fabd4b4b8d692840872af0172f8e
parent4029b6a151b2b80705f0e70489b706341e87cfb4
2008-11-12  Christopher Blizzard  <blizzard@0xdeadbeef.com>

        * whoisi/test_controller.py: New test controller that is used by
        the etag support handling.

        * whoisi/controllers.py (Root): Add a test/ controller.

        * tests/twisted/network/test_download.py: New tests for etag and
        last-modified.

        * services/command/exceptions.py (NotModifiedError): New
        NotModifiedError that's thrown when a download gets a 304.

        * services/command/download.py: Add support for setting and
        handling etag changes in the http support code.  Not quite right
        yet, especially with handling redirects and etag/last-modified,
        but getting close.  You can set etag and last-modified via the
        DownloadCommand now.  If it gets a 304, it will throw a
        NotModifedError exception you can handle in your command error
        handler.  Is a lot cleaner approach than the old monkeypatching
        method.

git-svn-id: svn://trac.whoisi.com/whoisi/trunk@11 ae879524-a8bd-4c4c-a5ea-74d2e5fc5a2c
ChangeLog
services/command/download.py
services/command/exceptions.py
tests/twisted/network/test_download.py
whoisi/controllers.py
whoisi/test_controller.py [new file with mode: 0644]