def _post_new_version(self, par): key = self._pl['id'] content = Content.get_by_key_name(key) new = clone_entity(content.current) new.before_put() new.put() content.editing = new content.put()
def _post_new_version(self, par): key = self._pl["id"] content = Content.get_by_key_name(key) new = clone_entity(content.current) new.before_put() new.put() content.editing = new content.put() # respond with a good code self._req.draw_code()