impression pour les clubs
darcs-hash:20070530200224-c992d-721354e62db570c2ccf3c5153f535120cba19ec3.gz
This commit is contained in:
parent
c0223fc29e
commit
7c9869b22f
1 changed files with 7 additions and 7 deletions
|
@ -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']+"/")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue