From 507d0dfc855e73d272ae750859d7db957466dc7e Mon Sep 17 00:00:00 2001 From: sabban Date: Wed, 27 Oct 2004 23:23:54 +0200 Subject: [PATCH] C'est quand mme mieux comme a. darcs-hash:20041027212354-1d643-738982f40fb5bbbc04d9598fa089145645bcc627.gz --- gestion/classe_firewall.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/gestion/classe_firewall.py b/gestion/classe_firewall.py index 59869ea6..8b3d36ee 100755 --- a/gestion/classe_firewall.py +++ b/gestion/classe_firewall.py @@ -20,9 +20,9 @@ import iptools,config,fileinput from ldap_crans import * from config_firewall import * from affich_tools import * -def test(fredgroscon): - print fredgroscon - os.system(fredgroscon) +def test(pouet): + print pouet + os.system(pouet) class ErrorArgument(Exception): """ @@ -115,7 +115,8 @@ class firewall: chaine=tmp[1] count=0 if ip in line: - os.system("iptables -D %s %i"%(chaine,count)) + os.system("iptables -L") + test("iptables -D %s %i"%(chaine,count)) count=count-1 os.system("rm -f /tmp/firewall") @@ -349,31 +350,31 @@ class firewall: wifi=False while (i