예제 #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'))
예제 #2
0
 def post(self):
     """Update Featured Speaker in Memcache"""
     ConferenceApi._updateFeaturedSpeaker(self.request.get('speaker'))
     self.response.set_status(204)
예제 #3
0
 def post(self):
     ConferenceApi._updateFeaturedSpeaker(self.request)
예제 #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)
예제 #5
0
 def post(self):
     """Update featured speaker in Memcache."""
     ConferenceApi._updateFeaturedSpeaker(self.request.get('speaker'), self.request.get('conference'))
예제 #6
0
파일: main.py 프로젝트: salman-awan/ud858
 def post(self):
     """Set Featured Speaker in Memcache."""
     ConferenceApi._updateFeaturedSpeaker(self.request.get('session_key'))
     self.response.set_status(204)
예제 #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'))
예제 #8
0
 def post(self):
     """Update the features speaker."""
     ConferenceApi._updateFeaturedSpeaker(self.request.get('websafeConferenceKey'), self.request.get('speaker'))
     self.response.set_status(204)
예제 #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)