gui/html/__init__.py
def GetParam(tag, param, default=__SENTINEL):
    """ Convenience function for accessing tag parameters"""
    if tag.HasParam(param):
        return tag.GetParam(param)
    else:
        if default == __SENTINEL:
            raise KeyError
        else:
            return default
def GetParam(tag, param, default=__SENTINEL):
    if tag.HasParam(param):
        return tag.GetParam(param)
    else:
        if default == __SENTINEL:
            raise KeyError
        else:
            return default
def GetParam ( tag , param , default = __SENTINEL ) : if tag . HasParam ( param ) : return tag . GetParam ( param ) else : if default == __SENTINEL : raise KeyError else : return default
Convenience function for accessing tag parameters
Convenience function for accessing tag parameters