]> git.etc.gen.nz Git - whoisi.git/commit
2008-10-18 Christopher Blizzard <blizzard@0xdeadbeef.com>
authorblizzard <blizzard@ae879524-a8bd-4c4c-a5ea-74d2e5fc5a2c>
Sun, 19 Oct 2008 00:48:23 +0000 (00:48 +0000)
committerblizzard <blizzard@ae879524-a8bd-4c4c-a5ea-74d2e5fc5a2c>
Sun, 19 Oct 2008 00:48:23 +0000 (00:48 +0000)
commit3a9fe37037612318f80febf7b2c6999566d2aa78
treecdb5be7ec3e0f46bf06cb0ea2454ca4ca69c6d20
parent220f80d54953923735ef7be062a1f5384f3c6c65
2008-10-18  Christopher Blizzard  <blizzard@0xdeadbeef.com>

        * whoisi/templates/vimeo-widget.mak: Widget to render vimeo
        content in person and follow pages.

        * whoisi/templates/follow.mak: Add vimeo to the types we know how
        to render

        * whoisi/templates/unseen.mak: Add vimeo to the types we know how
        to render.

        * whoisi/templates/person-widget.mak: Add vimeo to the types we
        know how to render.

        * whoisi/utils/sites.py (site_value): Put vimeo before youtube in
        the order in which we render sites.

        * whoisi/controllers.py (Root.getDisplayDepth): Add vimeo display
        depth so we render the right number of items in various contexts.
        (Root.rendersite): If the site type if vimeo, use the vimeo
        template for rendering.

        * whoisi/static/images/sites/vimeo-favicon.png: Icon for vimeo
        items.

        * tests/nose/test_newsite.py (TestNewSite.test_vimeo): Code to
        test the vimeo url detection code.

        * services/command/vimeo.py (Vimeo): Class for vimeo url detection
        and selecting a preferred feed.

        * services/command/newsite.py (NewSiteTryURL.getPreferredFeed): If
        the url is a vimeo url, pick the perferred feed from the list of
        feeds left over from scraping the HTML.
        (NewSiteTryURL.getFeedType): If the url is a vimeo url set the
        site type to "vimeo."

git-svn-id: svn://trac.whoisi.com/whoisi/trunk@9 ae879524-a8bd-4c4c-a5ea-74d2e5fc5a2c
ChangeLog
services/command/newsite.py
services/command/vimeo.py [new file with mode: 0644]
tests/nose/test_newsite.py
whoisi/controllers.py
whoisi/static/images/sites/vimeo-favicon.png [new file with mode: 0644]
whoisi/templates/follow.mak
whoisi/templates/person-widget.mak
whoisi/templates/unseen.mak
whoisi/templates/vimeo-widget.mak [new file with mode: 0644]
whoisi/utils/sites.py