Exemple #1
0
    def get(self):
        """determine if provided speaker should be feature speaker"""

        speaker = self.request.get('speaker')

        wsck = self.request.get('wsck')
        ConferenceApi._setFeaturedSpeaker(speaker, wsck)
 def post(self):
     """Set FeaturedSpeaker in Memcache."""
     # add session to speaker
     ConferenceApi._setFeaturedSpeaker(self.request)
     # cache featured speaker
     ConferenceApi._cacheFeaturedSpeaker()
     self.response.set_status(204)
 def post(self):
     """ Sets the Featured Speaker. Featured Speaker is defined as
         the Speaker that is speaking at the most Sessions in a given
         Conference. The Featured Speaker is stored in MemCache for fast
         retrieval """
     ConferenceApi._setFeaturedSpeaker(self, self.request)
     self.response.set_status(204)
Exemple #4
0
    def post(self):
        """ Set Featured Speaker."""

        ConferenceApi._setFeaturedSpeaker(
            self.request.get('speaker_websafeKey'),
            self.request.get('conference_websafeKey')
        )
        self.response.set_status(204)
 def post(self):
     """Set the featured speaker in the memcache"""
     conf_key = self.request.get('conf_key')
     speaker_name = self.request.get('speaker_name')
     ConferenceApi._setFeaturedSpeaker(
         conference_key=conf_key,
         speaker_name=speaker_name
     )
 def post(self):
     """Set Announcement in Memcache."""
     session_speaker = self.request.get('session_speaker')
     session_name = self.request.get('session_name')
     conf_key = self.request.get('conf_key')
     ConferenceApi._setFeaturedSpeaker(
         session_speaker, session_name, conf_key)
     self.response.set_status(204)
Exemple #7
0
 def post(self):
     """Set Featured Speaker"""
     ConferenceApi._setFeaturedSpeaker(self.request.get("speaker_name"),
                                       self.request.get_all("sess_keys"),
                                       self.request.get(
                                           "current_sess_name"),
                                       self.request.get("conf"),
                                       self.request.get("conf_loc"))
    def post(self):
        """Set Featured Speaker in Memcache."""

        # ConferenceApi._setFeaturedSpeaker()

        C_API = ConferenceApi()
        featured_speaker = self.request.get('speaker')
        websafeConferenceKey = self.request.get('websafeConferenceKey')

        C_API._setFeaturedSpeaker(featured_speaker, websafeConferenceKey)
Exemple #9
0
    def post(self):
        """Check and Set Featured Speaker """
        C_API = ConferenceApi()
        featured_speaker = self.request.get('speaker')

        logging.debug(featured_speaker)
        print featured_speaker

        websafeConferenceKey = self.request.get('websafeConferenceKey')

        C_API._setFeaturedSpeaker(featured_speaker, websafeConferenceKey)
Exemple #10
0
 def post(self):
     """Set FeaturedSpeaker in Memcache."""
     ConferenceApi._setFeaturedSpeaker(self.request)
 def post(self):
     """Set Featured Speaker in Memcache"""
     ConferenceApi._setFeaturedSpeaker(self.request.get('speaker'),
                                       self.request.get('websafeConferenceKey'))
Exemple #12
0
 def post(self):
     """Set Featured Speaker in Memcache."""
     ConferenceApi._setFeaturedSpeaker(
         self.request.get('speaker_name'),
         self.request.get('session_names')
     )
Exemple #13
0
 def get(self):
     """Set Featured Speaker in Memcache."""
     ConferenceApi._setFeaturedSpeaker(
         self.request.get('websafeConferenceKey'),
         self.request.get('websafeSpeakerKey'))
     self.response.set_status(204)
Exemple #14
0
 def post(self):
     """Set session featured speaker."""
     ConferenceApi._setFeaturedSpeaker(self.request)
 def post(self):
     """Set featured speaker in memcache"""
     speaker = self.request.get('speaker')
     ConferenceApi._setFeaturedSpeaker(speaker)
     self.response.set_status(204)
 def post(self):
     ConferenceApi._setFeaturedSpeaker(self,
     self.request.get('websafeConferenceKey'),
     self.request.get('websafeSpeakerKey'),
     self.request.get('speaker'))
Exemple #17
0
 def post(self):
     """Set Featured Speaker."""
     websafeSessionKey = self.request.get('websafeSessionKey')
     ConferenceApi._setFeaturedSpeaker(websafeSessionKey)
     self.response.set_status(204)
 def post(self):
     """Set Featured Speaker in Memcache."""
     ConferenceApi._setFeaturedSpeaker(self.request.get('conf'), self.request.get('speaker_id'))
     self.response.set_status(204)
 def post(self):
     ConferenceApi._setFeaturedSpeaker(
         self.request.get('speakers'),
         self.request.get('websafeConferenceKey')
     )
     self.response.set_status(204)
Exemple #20
0
 def post(self):
     ConferenceApi._setFeaturedSpeaker(
         self, self.request.get('websafeConferenceKey'),
         self.request.get('websafeSpeakerKey'), self.request.get('speaker'))
Exemple #21
0
    def post(self):
        """Set Featured speaker for a conference."""

        ConferenceApi._setFeaturedSpeaker(self.request.get("conferenceKey"), self.request.get("featuredSpeaker"))
 def post(self):
     """Set session featured speaker."""
     ConferenceApi._setFeaturedSpeaker(self.request)
Exemple #23
0
 def post(self):
     """Worker to trigger selection of featured speaker."""
     ConferenceApi._setFeaturedSpeaker(self.request.get('websafeConferenceKey'), self.request.get('speaker'))
Exemple #24
0
 def get(self):
     """Set Featured Speaker in Memcache."""
     ConferenceApi._setFeaturedSpeaker(
         self.request.get('websafeConferenceKey'),
         self.request.get('websafeSpeakerKey'))
     self.response.set_status(204)