commencement de correction pour le bug du login (qui fait qu'on doit redmarer l'intranet)

darcs-hash:20061117133434-f46e9-00a13be3e62303cb7820708db3d41309c22f78b1.gz
This commit is contained in:
gdetrez 2006-11-17 14:34:34 +01:00
parent e310bd2392
commit d57e1a82b9
6 changed files with 62 additions and 13 deletions

View file

@ -130,7 +130,7 @@ class root:
lancerImpression.exposed = True
#
# methode pour récupérer l'état de l'imprimante
# methode pour recuperer l'etat de l'imprimante
#
def etatImprimante(self):
try:
@ -139,6 +139,17 @@ class root:
return {"printer_state" : 'Imprimante hors ligne'}
etatImprimante.exposed = True
#
# methode pour le solde
#
def AJAXGetSolde(self):
try:
adh = cherrypy.session['LDAP'].search('uid=' + cherrypy.session['uid'])['adherent'][0]
return {"solde" : adh.solde() }
except Exception, e:
return {"erreur" : str(e)}
AJAXGetSolde.exposed = True