示例#1
0
def sidebar_information(request):
    _nav_event = []
    for receiver, response in nav_event.send(request):
        if not response:
            continue
        if isinstance(response, collections.Mapping):
            _nav_event.append(response)
        else:
            _nav_event.extend(response)

    return {"nav_event": _nav_event}
示例#2
0
def sidebar_information(request):
    _nav_event = []
    for receiver, response in nav_event.send(request):
        _nav_event.append(response)
    return {'nav_event': _nav_event}