def post(self): key = self.request.get('key') episodes = self.request.get('episodes') datamodel.edit_serie(key, episodes) self.redirect('/mySeries')
def ajaxEditEpisodes(self, *args): keys = args[0] episodes = args[1] if users.get_current_user(): for key in keys: datamodel.edit_serie(key, episodes)