def dotransform(request, response): r = NmapReportParser(file(request.entity.file).read()) addsystems(r, response) return response
def dotransform(request, response): r = NmapReportParser(file(request.fields['report.file']).read()) addsystems(r, response) return response