def portforward_list(request):
    r = _list(request, 'dhportforward')
    return [PortForwardingRule(item['name'], item['public_port'], item['protocol'], item['private_port'], item['port'], request, item['id']) for item in r.get('portforwards', {})]
def portforward_list(request):
    r = _list(request, 'dhportforward')
    return [PortForwardingRule(item['name'], item['public_port'], item['protocol'], item['private_port'], item['port'], request, item['id']) for item in r.get('portforwards', {})]