def parse_widget_name(widget):
    '''
    Parse a alias:block_name string into separate parts.
    '''
    try:
        alias, block_name = widget.split(':', 1)
    except ValueError:
        raise template.TemplateSyntaxError('widget name must be "alias:block_name" - %s' % widget)

    return alias, block_name
def parse_widget_name(widget):
    '''
    Parse a alias:block_name string into separate parts.
    '''
    try:
        alias, block_name = widget.split(':', 1)
    except ValueError:
        raise template.TemplateSyntaxError('widget name must be "alias:block_name" - %s' % widget)

    return alias, block_name
def parse_widget_name ( widget ) : try : alias , block_name = widget . split ( ':' , 1 ) except ValueError : raise template . TemplateSyntaxError ( 'widget name must be "alias:block_name" - %s' % widget ) return alias , block_name
Parse a alias:block_name string into separate parts.
Parse a alias : block_name string into separate parts .