sokoapp/gallery/parser.py
def render_inline(inline):
    """
    Replace inline markup with template markup that matches the
    appropriate app and model.

    """

    # Look for inline type, 'app.model'
    try:
        id = inline['id']
    except:
        if settings.DEBUG:
            raise TemplateSyntaxError, "Couldn't find the attribute 'id' in the <gallery> tag."
        else:
            return ''

    album = Album.objects.get(pk=id)
    context = { 'album': album, }

    template = ["fancy/gallery/inline_album.html"]
    rendered_inline = {'template':template, 'context':context}

    return rendered_inline

    Replace inline markup with template markup that matches the
    appropriate app and model.

    
Replace inline markup with template markup that matches the
appropriate app and model.
Replace inline markup with template markup that matches the appropriate app and model .
def render_inline(inline):
    try:
        id = inline['id']
    except:
        if settings.DEBUG:
            raise TemplateSyntaxError, "Couldn't find the attribute 'id' in the <gallery> tag."
        else:
            return ''
    album = Album.objects.get(pk=id)
    context = { 'album': album, }
    template = ["fancy/gallery/inline_album.html"]
    rendered_inline = {'template':template, 'context':context}
    return rendered_inline
def render_inline ( inline ) : try : id = inline [ 'id' ] except : if settings . DEBUG : raise TemplateSyntaxError , "Couldn't find the attribute 'id' in the <gallery> tag." else : return '' album = Album . objects . get ( pk = id ) context = { 'album' : album , } template = [ "fancy/gallery/inline_album.html" ] rendered_inline = { 'template' : template , 'context' : context } return rendered_inline
Replace inline markup with template markup that matches the
appropriate app and model.
Replace inline markup with template markup that matches the appropriate app and model .
"""
    Replace inline markup with template markup that matches the
    appropriate app and model.

    """ # Look for inline type, 'app.model'
inline