(self, sketch_id)
return sketch
Helper function: Returns Sketch object givin a sketch id.

        Args:
            sketch_id: Integer primary key for a sketch database model

        Returns:
            Sketch object
Helper function: Returns Sketch object givin a sketch id.
Helper function : Returns Sketch object givin a sketch id .
def _get_sketch(self, sketch_id):
        """Helper function: Returns Sketch object givin a sketch id.

        Args:
            sketch_id: Integer primary key for a sketch database model

        Returns:
            Sketch object
        """
        sketch = Sketch.query.get_with_acl(sketch_id)
        if not sketch:
            abort(
                HTTP_STATUS_CODE_NOT_FOUND, 'No sketch found with this ID.')
        if not sketch.has_permission(current_user, 'write'):
            abort(HTTP_STATUS_CODE_FORBIDDEN,
                  'User does not have write access controls on sketch.')
        return sketch
def _get_sketch ( self , sketch_id ) : sketch = Sketch . query . get_with_acl ( sketch_id ) if not sketch : abort ( HTTP_STATUS_CODE_NOT_FOUND , 'No sketch found with this ID.' ) if not sketch . has_permission ( current_user , 'write' ) : abort ( HTTP_STATUS_CODE_FORBIDDEN , 'User does not have write access controls on sketch.' ) return sketch