Commit massif sur l'intranet
darcs-hash:20070602131029-c992d-820d228ff611f44b2a1fcb185633a65d865baad2.gz
This commit is contained in:
parent
1917896510
commit
5d71550f6b
6 changed files with 44 additions and 15 deletions
|
@ -19,12 +19,15 @@ from ClassesIntranet.ModuleBase import ModuleBase
|
|||
class main(ModuleBase):
|
||||
def title(self):
|
||||
return "Factures"
|
||||
def category(self):
|
||||
return "Services"
|
||||
def icon(self):
|
||||
return "icon.png"
|
||||
|
||||
|
||||
_club = True
|
||||
|
||||
def index(self, message = '', error = ''):
|
||||
adh = cherrypy.session['LDAP'].search('uid=' + cherrypy.session['uid'])['adherent'][0]
|
||||
adh = cherrypy.session['LDAP'].getProprio(cherrypy.session['uid'])
|
||||
t = {}
|
||||
t['message'] = message
|
||||
t['error'] = error
|
||||
|
@ -62,7 +65,7 @@ class main(ModuleBase):
|
|||
index.exposed = True
|
||||
|
||||
def historique(self, page = 1, items_per_page = 20):
|
||||
adh = cherrypy.session['LDAP'].search('uid=' + cherrypy.session['uid'])['adherent'][0]
|
||||
adh = cherrypy.session['LDAP'].getProprio(cherrypy.session['uid'])
|
||||
|
||||
lst = [ x for x in adh.historique() if x.split(u' : ',1)[1].startswith(u'credit') or x.split(u' : ',1)[1].startswith(u'debit') ]
|
||||
histLst = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue