Ejemplo n.º 1
0
 def post(self):
     """Update the featured speaker."""
     # Wait for eventual consistency to catch up, since new session was
     # just added. Since this is running on a task queue thread the wait
     # doesn't affect application responsiveness whatsoever.
     sleep(3)
     # Call the routine that performs the logic for updating the featured
     # speaker.
     ConferenceApi._updateFeaturedSpeaker(
         self.request.get('websafeSpeakerKey'),
         self.request.get('websafeConferenceKey'))
Ejemplo n.º 2
0
 def post(self):
     """Update Featured Speaker in Memcache"""
     ConferenceApi._updateFeaturedSpeaker(self.request.get('speaker'))
     self.response.set_status(204)
Ejemplo n.º 3
0
 def post(self):
     ConferenceApi._updateFeaturedSpeaker(self.request)
Ejemplo n.º 4
0
 def post(self):
     """Update the featured speaker in Memcache."""
     c = ConferenceApi()
     msg = c._updateFeaturedSpeaker(self.request.get('speaker'), self.request.get('conferenceKey'))
     self.response.set_status(204)
Ejemplo n.º 5
0
 def post(self):
     """Update featured speaker in Memcache."""
     ConferenceApi._updateFeaturedSpeaker(self.request.get('speaker'), self.request.get('conference'))
Ejemplo n.º 6
0
 def post(self):
     """Set Featured Speaker in Memcache."""
     ConferenceApi._updateFeaturedSpeaker(self.request.get('session_key'))
     self.response.set_status(204)
Ejemplo n.º 7
0
 def post(self):
     """Check if speaker has multiple sessions during this conference. If so, add them to featured speaker list."""
     ConferenceApi._updateFeaturedSpeaker(self.request.get('speaker'), self.request.get('conferenceKey'))
Ejemplo n.º 8
0
 def post(self):
     """Update the features speaker."""
     ConferenceApi._updateFeaturedSpeaker(self.request.get('websafeConferenceKey'), self.request.get('speaker'))
     self.response.set_status(204)
Ejemplo n.º 9
0
 def post(self):
     """Updates featured speaker in memcache if necessary"""
     ConferenceApi._updateFeaturedSpeaker(self.request.get('websafeConferenceKey'), self.request.get('websafeSpeakerKeys'))
     self.response.set_status(204)