[intranet/impression] nouvelle imprimanet non accessible
Ignore-this: 11669113a1a987dd8aef135773cf88cd darcs-hash:20090515105329-bd074-fa61dd4267c56f2bd719f1a4d15f00daf24c7fb5.gz
This commit is contained in:
parent
8c6816b511
commit
708129aa2d
1 changed files with 4 additions and 0 deletions
|
@ -92,6 +92,10 @@ class main(ModuleBase):
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
data['Erreur_imprimante'] = str(e).replace("\"", "\\\"")
|
data['Erreur_imprimante'] = str(e).replace("\"", "\\\"")
|
||||||
data['errorMsg'] = u"Imprimante injoignable"
|
data['errorMsg'] = u"Imprimante injoignable"
|
||||||
|
adh = cherrypy.session['LDAP'].getProprio(cherrypy.session['uid'])
|
||||||
|
if not "Bureau" in adh.droits():
|
||||||
|
data['Erreur_imprimante'] = u"Imprimante non encore mise à disposition"
|
||||||
|
data['errorMsg'] = u"La nouvelle imprimante est encore en cours d'installation"
|
||||||
if not cherrypy.config.get('crans.activate', True):
|
if not cherrypy.config.get('crans.activate', True):
|
||||||
data['Erreur_imprimante'] = "Config impression"
|
data['Erreur_imprimante'] = "Config impression"
|
||||||
data['errorMsg'] = cherrypy.config.get('crans.activate.errorMsg', u"Imprimante HS")
|
data['errorMsg'] = cherrypy.config.get('crans.activate.errorMsg', u"Imprimante HS")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue