[impression/,intranet/] on debugge l'AJAX
darcs-hash:20090914113809-bd074-ea3ddaaa14f90fba6bf49cc860b4aaadcc776806.gz
This commit is contained in:
parent
59eb9f55cb
commit
90149fd583
5 changed files with 33 additions and 24 deletions
|
@ -33,6 +33,7 @@ from re import compile
|
|||
sys.path.append('/usr/scripts/impression')
|
||||
import digicode, etat_imprimante
|
||||
from impression_canon import FichierInvalide,SoldeInsuffisant,impression
|
||||
from traceback import format_exception
|
||||
|
||||
BOOK_REGEXP = compile('book.pdf')
|
||||
FILE_UPLOAD_BASE_FOLDER = cherrypy.config.get('fileUpload.folder', "/var/impression/fichiers/")
|
||||
|
@ -41,6 +42,8 @@ class FileError(Exception):
|
|||
pass
|
||||
from ClassesIntranet.ModuleBase import ModuleBase
|
||||
|
||||
def fmt_exc(e):
|
||||
return '<br/>'.join(format_exception(e))
|
||||
|
||||
# #############################################################
|
||||
# Classe d'impression en multithread
|
||||
|
@ -225,7 +228,7 @@ class main(ModuleBase):
|
|||
adh = cherrypy.session['LDAP'].getProprio(cherrypy.session['uid'])
|
||||
return {"solde" : adh.solde() }
|
||||
except Exception, e:
|
||||
return {"erreure" : str(e)}
|
||||
return {"erreur" : str(e)}
|
||||
AJAXGetSolde.exposed = True
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue