Retour a la normal mais youpi quand meme !
darcs-hash:20070602130822-c992d-28511909f0867ed42780da63d5b146ef8e180eb8.gz
This commit is contained in:
parent
0b559cb7b3
commit
1917896510
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,6 @@ class main(ModuleBase):
|
||||||
return "icon_alert.png"
|
return "icon_alert.png"
|
||||||
return "icon.png"
|
return "icon.png"
|
||||||
|
|
||||||
|
|
||||||
def _get_quota(self):
|
def _get_quota(self):
|
||||||
return crans.utils.quota.getUserQuota(cherrypy.session['uid'])
|
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}]
|
#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
|
# methode qui affiche la template
|
||||||
#
|
#
|
||||||
def index(self ):
|
def index(self ):
|
||||||
|
#return "youpiiii"
|
||||||
values = {}
|
values = {}
|
||||||
try:
|
try:
|
||||||
quotas = self._get_quota()
|
quotas = self._get_quota()
|
||||||
|
@ -64,7 +64,7 @@ class main(ModuleBase):
|
||||||
values = {'quotas': returned_quotas, 'e': "eeede"}
|
values = {'quotas': returned_quotas, 'e': "eeede"}
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
crans.cp.log('error getting quota for user %s : %s' % (cherrypy.session['uid'], str(e)), 'QUOTA', 1)
|
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',
|
return {'template':'quota',
|
||||||
'values': values,
|
'values': values,
|
||||||
'stylesheets':['quota.css'],
|
'stylesheets':['quota.css'],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue