blog/app/models/figures.py
def serialize(self):
        """ Returns a fancy version of a figure, with expanded image lists. """

        output = copy(self.record)

        for image_list in ['concept_art', 'unpainted']:
            expanded_list = []
            for image_oid in output.get(image_list, []):
                expanded_list.append(images.expand_image(image_oid))
            output[image_list] = expanded_list

        canonical_post = self.get_canonical_post()
        if canonical_post is not None:
            c_url = app.config['URL'] + '/b/' + canonical_post.handle
            output['canonical_post_url'] = c_url

        return output
 Returns a fancy version of a figure, with expanded image lists. 
Returns a fancy version of a figure, with expanded image lists.
Returns a fancy version of a figure with expanded image lists .
def serialize(self):
        output = copy(self.record)
        for image_list in ['concept_art', 'unpainted']:
            expanded_list = []
            for image_oid in output.get(image_list, []):
                expanded_list.append(images.expand_image(image_oid))
            output[image_list] = expanded_list
        canonical_post = self.get_canonical_post()
        if canonical_post is not None:
            c_url = app.config['URL'] + '/b/' + canonical_post.handle
            output['canonical_post_url'] = c_url
        return output
def serialize ( self ) : output = copy ( self . record ) for image_list in [ 'concept_art' , 'unpainted' ] : expanded_list = [ ] for image_oid in output . get ( image_list , [ ] ) : expanded_list . append ( images . expand_image ( image_oid ) ) output [ image_list ] = expanded_list canonical_post = self . get_canonical_post ( ) if canonical_post is not None : c_url = app . config [ 'URL' ] + '/b/' + canonical_post . handle output [ 'canonical_post_url' ] = c_url return output
Returns a fancy version of a figure, with expanded image lists.
Returns a fancy version of a figure with expanded image lists .
""" Returns a fancy version of a figure, with expanded image lists. """
self