old_contents: from google.appengine.api import memcache
  
  # - - - Announcements - - - - - - - - - - - - - - - - - - - -
  
      @staticmethod
      def _cacheAnnouncement():
          """Create Announcement & assign to memcache; used by
          memcache cron job & putAnnouncement().
          """
          confs = Conference.query(ndb.AND(
              Conference.seatsAvailable <= 5,
              Conference.seatsAvailable > 0)
          ).fetch(projection=[Conference.name])
  
          if confs:
              # If there are almost sold out conferences,
              # format announcement and set it in memcache
              announcement = '%s %s' % (
                  'Last chance to attend! The following conferences '
                  'are nearly sold out:',
                  ', '.join(conf.name for conf in confs))
              memcache.set(MEMCACHE_ANNOUNCEMENTS_KEY, announcement)
          else:
              # If there are no sold out conferences,
              # delete the memcache announcements entry
              announcement = ""
              memcache.delete(MEMCACHE_ANNOUNCEMENTS_KEY)
  
          return announcement
  
  
      @endpoints.method(message_types.VoidMessage, StringMessage,
              path='conference/announcement/put',
              http_method='GET', name='putAnnouncement')
      def putAnnouncement(self, request):
          """Put Announcement into memcache"""
          return StringMessage(data=self._cacheAnnouncement())
  
  
      @endpoints.method(message_types.VoidMessage, StringMessage,
              path='conference/announcement/get',
              http_method='GET', name='getAnnouncement')
      def getAnnouncement(self, request):
          """Return Announcement from memcache."""
          # TODO 1
          # return an existing announcement from Memcache or an empty string.
          announcement = ""
          return StringMessage(data=announcement)
  
  
  
new_contents: from google.appengine.api import memcache
  
  # - - - Announcements - - - - - - - - - - - - - - - - - - - -
  
      @staticmethod
      def _cacheAnnouncement():
          """Create Announcement & assign to memcache; used by
          memcache cron job & putAnnouncement().
          """
          confs = Conference.query(ndb.AND(
              Conference.seatsAvailable <= 5,
              Conference.seatsAvailable > 0)
          ).fetch(projection=[Conference.name])
  
          if confs:
              # If there are almost sold out conferences,
              # format announcement and set it in memcache
              announcement = '%s %s' % (
                  'Last chance to attend! The following conferences '
                  'are nearly sold out:',
                  ', '.join(conf.name for conf in confs))
              memcache.set(MEMCACHE_ANNOUNCEMENTS_KEY, announcement)
          else:
              # If there are no sold out conferences,
              # delete the memcache announcements entry
              announcement = ""
              memcache.delete(MEMCACHE_ANNOUNCEMENTS_KEY)
  
          return announcement
  
  
      @endpoints.method(message_types.VoidMessage, StringMessage,
              path='conference/announcement/get',
              http_method='GET', name='getAnnouncement')
      def getAnnouncement(self, request):
          """Return Announcement from memcache."""
          # TODO 1
          # return an existing announcement from Memcache or an empty string.
          announcement = ""
          return StringMessage(data=announcement)
  
  
  
subject: remove unneeded method from TODO