impression pour les clubs

darcs-hash:20070530200224-c992d-721354e62db570c2ccf3c5153f535120cba19ec3.gz
This commit is contained in:
bos 2007-05-30 22:02:24 +02:00
parent c0223fc29e
commit 7c9869b22f

View file

@ -39,10 +39,10 @@ class main(ModuleBase):
def category(self):
return "Services"
def title(self):
return "Impression"
return "Impression"
def icon(self):
return "icon.png"
return "icon.png"
_club = True
##########################
# affichage
@ -171,7 +171,7 @@ class main(ModuleBase):
#
def etatImprimante(self):
if not cherrypy.config.get('crans.activate', True):
return {"printer_state" : u"Système down"}
return {"printer_state" : u"SystÚme down"}
try:
return {"printer_state" : u"\\n".join(crans.impression.etat_imprimante.etat())}
except Exception, e:
@ -183,10 +183,10 @@ class main(ModuleBase):
#
def AJAXGetSolde(self):
try:
adh = cherrypy.session['LDAP'].search('uid=' + cherrypy.session['uid'])['adherent'][0]
adh = cherrypy.session['LDAP'].getProprio(cherrypy.session['uid'])
return {"solde" : adh.solde() }
except Exception, e:
return {"erreur" : str(e)}
return {"erreure" : str(e)}
AJAXGetSolde.exposed = True
@ -196,7 +196,7 @@ class main(ModuleBase):
# privees
##########################
#
# methode pour obtenir la liste des fichiers uploadés
# methode pour obtenir la liste des fichiers uploadés
#
def getUploadedFileListFor(self, adh):
file_folder = os.path.join(FILE_UPLOAD_BASE_FOLDER, cherrypy.session['uid']+"/")