# File lib/flickr/photos.rb, line 53
        def getAllContexts(photo)
                photo = photo.id if photo.class == Flickr::Photo
                res @flickr.call_method('flickr.photos.getAllContexts',
                    'photo_id'=>photo)
                list = []
                res.each_element('set') do |set|
                        att = set.attributes
                        psid = att['id']
                        set = @flickr.photoset_cache_lookup(psid) ||
                                Flickr::PhotoSet.new(att['id'],@flickr)
                        set.title = att['title']

                        @flickr.photoset_cache_store(set)
                        list << set
                end
                res.each_element('pool') do |set|
                        att = set.attributes
                        ppid = att['id']

                        p = @flickr.photopool_cache_lookup(ppid) ||
                                Flickr::PhotoPool.new(ppid,@flickr)
                        p.title = att['title']
                        @flickr.photopool_cache_store(ppid)
                        list << p
                end
                return list
        end