les clubs n'ont pas de champ 'adherentPayant'
darcs-hash:20080906233824-af139-ff401d0c2ca70a1cd53bd0becf90b6ceac0a0299.gz
This commit is contained in:
parent
8b911403b7
commit
ec3d849431
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ from commands import getoutput
|
||||||
from syslog import *
|
from syslog import *
|
||||||
|
|
||||||
sys.path.append('/usr/scripts/gestion')
|
sys.path.append('/usr/scripts/gestion')
|
||||||
from ldap_crans import crans_ldap, AssociationCrans
|
from ldap_crans import crans_ldap, AssociationCrans, Club
|
||||||
from config import ann_scol, dat, vlans
|
from config import ann_scol, dat, vlans
|
||||||
|
|
||||||
def chap_ok(password, challenge, clear_pass) :
|
def chap_ok(password, challenge, clear_pass) :
|
||||||
|
@ -57,7 +57,7 @@ def do_auth(mac):
|
||||||
return (-1, "Bloquage total des services pour cette machine", "")
|
return (-1, "Bloquage total des services pour cette machine", "")
|
||||||
|
|
||||||
# L'adherent ne paie pas, on le met sur le vlan radin
|
# L'adherent ne paie pas, on le met sur le vlan radin
|
||||||
if not proprio.adherentPayant():
|
if not isinstance(proprio, Club) and not proprio.adherentPayant():
|
||||||
return (0, "Ne paie pas", "radin")
|
return (0, "Ne paie pas", "radin")
|
||||||
|
|
||||||
# Paiment ok ?
|
# Paiment ok ?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue