(self)
return story_list
Get a list of all stories that are attached to the sketch.

        Returns:
            List of stories (instances of Story objects)
Get a list of all stories that are attached to the sketch.
Get a list of all stories that are attached to the sketch .
def list_stories(self):
        """Get a list of all stories that are attached to the sketch.

        Returns:
            List of stories (instances of Story objects)
        """
        if self.is_archived():
            raise RuntimeError(
                'Unable to list stories on an archived sketch.')

        story_list = []
        resource_url = '{0:s}/sketches/{1:d}/stories/'.format(
            self.api.api_root, self.id)
        response = self.api.session.get(resource_url)
        response_json = error.get_response_json(response, logger)
        story_objects = response_json.get('objects')
        if not story_objects:
            return story_list

        if not len(story_objects) == 1:
            return story_list
        stories = story_objects[0]
        for story_dict in stories:
            story_list.append(story.Story(
                story_id=story_dict.get('id', -1),
                sketch=self,
                api=self.api))
        return story_list
def list_stories ( self ) : if self . is_archived ( ) : raise RuntimeError ( 'Unable to list stories on an archived sketch.' ) story_list = [ ] resource_url = '{0:s}/sketches/{1:d}/stories/' . format ( self . api . api_root , self . id ) response = self . api . session . get ( resource_url ) response_json = error . get_response_json ( response , logger ) story_objects = response_json . get ( 'objects' ) if not story_objects : return story_list if not len ( story_objects ) == 1 : return story_list stories = story_objects [ 0 ] for story_dict in stories : story_list . append ( story . Story ( story_id = story_dict . get ( 'id' , - 1 ) , sketch = self , api = self . api ) ) return story_list