From 19178965106d07420cad2123dbaff27d6b4b7ee8 Mon Sep 17 00:00:00 2001 From: bos Date: Sat, 2 Jun 2007 15:08:22 +0200 Subject: [PATCH] Retour a la normal mais youpi quand meme ! darcs-hash:20070602130822-c992d-28511909f0867ed42780da63d5b146ef8e180eb8.gz --- intranet/modules/quota/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intranet/modules/quota/main.py b/intranet/modules/quota/main.py index 9c0f2b6a..7a9a6ec7 100755 --- a/intranet/modules/quota/main.py +++ b/intranet/modules/quota/main.py @@ -17,7 +17,6 @@ class main(ModuleBase): return "icon_alert.png" return "icon.png" - def _get_quota(self): return crans.utils.quota.getUserQuota(cherrypy.session['uid']) #return [{'%': 33.9, 'quota': 390.62, 'label': u'Dossier personnel', 'limite': 585.94, 'filesystem': '/home', 'usage': 420.32}, {'%': 0.1, 'quota': 100.00, 'label': u'Boite de r\xe9ception', 'limite': 150.00, 'filesystem': '/var/mail', 'usage': 0.06}] @@ -30,6 +29,7 @@ class main(ModuleBase): # methode qui affiche la template # def index(self ): + #return "youpiiii" values = {} try: quotas = self._get_quota() @@ -64,7 +64,7 @@ class main(ModuleBase): values = {'quotas': returned_quotas, 'e': "eeede"} except Exception, e: crans.cp.log('error getting quota for user %s : %s' % (cherrypy.session['uid'], str(e)), 'QUOTA', 1) - values = {'erreur':str(e), 'e': "eee"} + values = {'erreur':str(e)} return {'template':'quota', 'values': values, 'stylesheets':['quota.css'],