def _post_change_current(self, par): key = self._pl['id'] ver = int(self._pl['verid']) content = Content.get_by_key_name(key) contentver = ContentVersion.get_by_id(ver) content.current = contentver content.put()
def _post_change_current(self, par): key = self._pl["id"] ver = int(self._pl["verid"]) content = Content.get_by_key_name(key) contentver = ContentVersion.get_by_id(ver) content.current = contentver content.put() # respond with a good code self._req.draw_code()