@register.tag
def render_map(parser, token):
    contents = token.split_contents()
    if len(contents) == 2:
        tag_name, map = contents
        force_static = False
    elif len(contents) == 3:
        tag_name, map, force_static = contents
        force_static = force_static[1:-1] == 'printable'
    else:
        tag_name = token.contents.split()[0]
        raise template.TemplateSyntaxError, \
            "%r tag requires exactly 1 arguments: map" % tag_name
    return MapDisplayNode(map, force_static)
Called when our 'visible' trait is changed.
dataset/ETHPy150Open mollyproject/mollyproject/molly/maps/templatetags/molly_maps.py/render_map--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/ui/qt4/action/action_item.py/_MenuItem._visible_changed