def get_campus_calendars(campus_code):
    """
    :return: a dictionary of {calenderid, TrumbaCalendar}
             corresponding to the given campus calendars.
             None if error, {} if not exists
    raise DataFailureException if the request failed.
    """
    if is_bot(campus_code):
        return get_bot_calendars()
    elif is_sea(campus_code):
        return get_sea_calendars()
    elif is_tac(campus_code):
        return get_tac_calendars()
    else:
        logger.warn(
            "Calling get_campus_calendars with invalid campus code: %s"
            % campus_code)
        return None
def get_campus_calendars ( campus_code ) : if is_bot ( campus_code ) : return get_bot_calendars ( ) elif is_sea ( campus_code ) : return get_sea_calendars ( ) elif is_tac ( campus_code ) : return get_tac_calendars ( ) else : logger . warn ( "Calling get_campus_calendars with invalid campus code: %s" % campus_code ) return None
:return: a dictionary of {calenderid, TrumbaCalendar}
             corresponding to the given campus calendars.
             None if error, {} if not exists
    raise DataFailureException if the request failed.