docs: def _store_post(self, stored_entry, entry=None):
          """ This method formats entry returned by _get_data() and puts to DB
          create textDesc, title, and MIME """
          stored_entry.content_type = self.type
          if 1==1 or self.type == 'photos': # ignore type for now
              # is photo
              width = int(entry.width.text)
              height = int(entry.height.text)
              orientation = 'landscape' if width > height else 'portrait'
              max = width if width > height else height
              thumbnails = {}
              sizes = ['72', '144', '288', '480', '512', '800', '1200', '1600']
              for thumb in entry.media.thumbnail:
                  size = thumb.width if width > height else thumb.height
                  thumbnails['s%s' % size] = {
                      'url': thumb.url,
                      'height': thumb.height,
                      'width': thumb.width
                  }
              for size in sizes[3:]:
                  big = size
                  small = str(int(int(size)/(float(72)/float(thumbnails['s72']['height' if width > height else 'width']))))
                  thumbnails['s%s' % size] = {
                      'url': thumbnails['s72']['url'].replace('s72', 's%s' % size),
                      'height': big if height > width else small,
                      'width': small if height > width else big
                  }
              url = thumbnails['s144']['url'].replace('s144', 's%s' % max)
              stored_entry.link = self._get_entry_link(entry)
              summarytext = ''
              if entry.summary.text != None:
                  summarytext = unicode(entry.summary.text, "utf-8")
              stored_entry.summary = summarytext
              stored_entry.title = unicode(entry.title.text, "utf-8")
              stored_entry.categories = 'photos'
              stored_entry.published = datetime.datetime.strptime(entry.published.text, '%Y-%m-%dT%H:%M:%S.%fZ')
              stored_entry.updated = datetime.datetime.strptime(entry.updated.text, '%Y-%m-%dT%H:%M:%S.%fZ')
              stored_entry.author = entry.albumid.text
              stored_entry.attributes = simplejson.dumps({
                  'id': entry.gphoto_id.text,
                  'thumbnails': thumbnails,
                  'url': url,
                  'width': str(width),
                  'height': str(height),
                  'orientation': orientation
              })
  #        elif self.type == 'albums':
  #            # is albums
  #            summarytext = ''
  #            if entry.summary.text != None:
  #                summarytext = unicode(entry.summary.text, "utf-8")
  #            itemLink = entry.link[1].href
  #            stored_entry.name = itemLink[itemLink.rfind('/')+1:]
  #            stored_entry.categories = 'albums'
  #            stored_entry.title = unicode(entry.title.text, "utf-8")
  #            stored_entry.published = datetime.datetime.strptime(entry.published.text, '%Y-%m-%dT%H:%M:%S.%fZ')
  #            stored_entry.updated = datetime.datetime.strptime(entry.updated.text, '%Y-%m-%dT%H:%M:%S.%fZ')
  #            stored_entry.author = entry.user.text
  #            stored_entry.summary = summarytext
  #            stored_entry.attributes = simplejson.dumps({
  #                'id': entry.gphoto_id.text,
  #                'thumbnail': entry.media.thumbnail[0].url,
  #        })
          return super(Picasa, self)._store_post(stored_entry)