Beispiel #1
0
    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()
Beispiel #2
0
    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()