playlists/templatetags/playlists_extras.py
def ifeventisbreak(parser, token):
    """
    Renders the block if PlaylistEvent object is a break.        
    """
    bits = token.contents.split()
    nodelist_true = parser.parse(('else', 'endifeventisbreak'))
    token = parser.next_token()
    if token.contents == 'else':
        nodelist_false = parser.parse(('endifeventisbreak',))
        parser.delete_first_token()
    else:
        nodelist_false = NodeList()
    if len(bits) != 2:
        raise TemplateSyntaxError(
                "ifeventisbreak requires a single argument, "
                "the PlaylistEvent() instance")
    return IfEventIsBreakNode(nodelist_true, nodelist_false, bits[1])

    Renders the block if PlaylistEvent object is a break.        
    
Renders the block if PlaylistEvent object is a break.
Renders the block if PlaylistEvent object is a break .
def ifeventisbreak(parser, token):
    bits = token.contents.split()
    nodelist_true = parser.parse(('else', 'endifeventisbreak'))
    token = parser.next_token()
    if token.contents == 'else':
        nodelist_false = parser.parse(('endifeventisbreak',))
        parser.delete_first_token()
    else:
        nodelist_false = NodeList()
    if len(bits) != 2:
        raise TemplateSyntaxError(
                "ifeventisbreak requires a single argument, "
                "the PlaylistEvent() instance")
    return IfEventIsBreakNode(nodelist_true, nodelist_false, bits[1])
def ifeventisbreak ( parser , token ) : bits = token . contents . split ( ) nodelist_true = parser . parse ( ( 'else' , 'endifeventisbreak' ) ) token = parser . next_token ( ) if token . contents == 'else' : nodelist_false = parser . parse ( ( 'endifeventisbreak' , ) ) parser . delete_first_token ( ) else : nodelist_false = NodeList ( ) if len ( bits ) != 2 : raise TemplateSyntaxError ( "ifeventisbreak requires a single argument, " "the PlaylistEvent() instance" ) return IfEventIsBreakNode ( nodelist_true , nodelist_false , bits [ 1 ] )
Renders the block if PlaylistEvent object is a break.
Renders the block if PlaylistEvent object is a break .
"""
    Renders the block if PlaylistEvent object is a break.        
    """
parser
token