Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/p/e/pelican-flickr-0.1.1/pelican-flickr/models.py   pelican-flickr(Download)
      # Load from cache
      super(FlickrPhotoset, self).__init__(id)
      raise Exception('Specify xml source or photoset id.')
  def check_cache(self, data):
    # Check the cached data are up to date
    if not self.fetch():
      return False
    return data['date_update'] == self.data['date_update']
  def __init__(self, id, api, photoset):
    self.api = api
    self.photoset = photoset
    super(FlickrPhoto, self).__init__(id)