def contribute(self, data, context):
    if data:
        networks = self.workflow.request.POST.getlist('network')
        networks = [n for n in networks if (n != '')]
        if networks:
            context['network_id'] = networks
    return context
def contribute(self, data, context):
    if data:
        networks = self.workflow.request.POST.getlist('network')
        networks = [n for n in networks if (n != )]
        if networks:
            context['network_id'] = networks
    return context