]> git.etc.gen.nz Git - whoisi.git/commit
2008-10-17 Christopher Blizzard <blizzard@0xdeadbeef.com>
authorblizzard <blizzard@ae879524-a8bd-4c4c-a5ea-74d2e5fc5a2c>
Sat, 18 Oct 2008 03:51:30 +0000 (03:51 +0000)
committerblizzard <blizzard@ae879524-a8bd-4c4c-a5ea-74d2e5fc5a2c>
Sat, 18 Oct 2008 03:51:30 +0000 (03:51 +0000)
commit7a354be22e1765e58d9a230f1d5c6f5a1f777efa
tree889c5f13ca16b811747dd7a2c3c2ea37097802bc
parentb30492a3db944765bba93bb9c3b2721d6255c2cb
2008-10-17  Christopher Blizzard  <blizzard@0xdeadbeef.com>

        * whoisi/utils/sites.py (site_value): Add youtube to the ordering
        of sites in a profile.

        * whoisi/utils/youtube.py (youtube_get_user): Returns a user for a
        standard videos.rss-style youtube feed.

        * whoisi/templates/unseen.mak: Add support for youtube.

        * whoisi/templates/follow.mak: Add support for youtube.

        * whoisi/templates/person-widget.mak: Add support for youtube.

        * whoisi/templates/picasa-widget.mak: Support the thumb/JSON
        format in display_cache.

        * whoisi/templates/youtube-widget.mak (else): Widget for
        displaying youtube.

        * whoisi/controllers.py (Root.getDisplayDepth): Add support for
        youtube.
        (Root.rendersite): Add support for youtube.

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

        * utils/convert-display-cache.py: Convert display cache for
        picasa, not flickr.

        * utils/convert-flickr-feeds.py: Script that converts flickr feeds
        from atom to rss2 in the db.

        * feed-parse-service (FeedParseProtocol.runCommand): Set the thumb
        property in the display_cache if media_thumbnail is set.

        * lib/feedparser.py: Patch to detect thumbnails.

        * tests/nose/test_newsite.py (TestNewSite.test_youtube): New tests
        for detecting youtube urls.  Also somewhat future-proofed for
        eventual user detection.

        * smoketest.txt: Test a youtube url.

        * patches/README: Readme for new thumbnail patch.

        * patches/feedparser-thumbnail.patch: Patch that adds support for
        the media:thumbnail property to feedparser.  Taken from an
        upstream bug.

        * services/command/controller.py (PreviewSiteManager.__init__):
        Don't call FlickrPreviewThumbnails anymore - we get it directly
        from the feed now.

        * services/command/newsite.py (NewSiteTryURL.getFeedType): If it's
        a youtube url, set the type.

        * services/command/flickr.py (Flickr.getPreferredFeed): We now use
        the rss2 feed instead of the atom feed - it contains a thumbnail
        url.

        * services/command/picasa.py (Picasa.photoFeedForUser): Make
        picasa work like flickr - set a "thumb" object as a JSON object in
        the database row instead of just a raw url.

        * services/command/youtube.py (Youtube): Class that supports the
        current site model for detecting youtube feeds.  It's also
        future-proofed to support urls and usernames at some point.

        * services/master/database.py (DatabaseManager.__init__): Disable
        flickr scan on startup.  New support for images doesn't require us
        to do it anymore.  Yay!

        * services/master/newsite.py (NewSite.normalize): Placeholder for
        eventual normalization for youtube.  Doesn't do anything right
        now.

git-svn-id: svn://trac.whoisi.com/whoisi/trunk@5 ae879524-a8bd-4c4c-a5ea-74d2e5fc5a2c
25 files changed:
ChangeLog
feed-parse-service
lib/feedparser.py
patches/README
patches/feedparser-thumbnail.patch [new file with mode: 0644]
services/command/controller.py
services/command/flickr.py
services/command/newsite.py
services/command/picasa.py
services/command/youtube.py [new file with mode: 0644]
services/master/database.py
services/master/newsite.py
smoketest.txt
tests/nose/test_newsite.py
utils/convert-display-cache.py
utils/convert-flickr-feeds.py [new file with mode: 0755]
whoisi/controllers.py
whoisi/static/images/sites/youtube-favicon.png [new file with mode: 0644]
whoisi/templates/follow.mak
whoisi/templates/person-widget.mak
whoisi/templates/picasa-widget.mak
whoisi/templates/unseen.mak
whoisi/templates/youtube-widget.mak [new file with mode: 0644]
whoisi/utils/sites.py
whoisi/utils/youtube.py [new file with mode: 0644]