[gest_crans_lc] Découpage dans plusieurs fichiers
Héritage multiple banzai \o/
This commit is contained in:
parent
5d477cc1ac
commit
2d04dedf7b
10 changed files with 3209 additions and 3014 deletions
33
gestion/dialog/club.py
Normal file
33
gestion/dialog/club.py
Normal file
|
@ -0,0 +1,33 @@
|
|||
#!/bin/bash /usr/scripts/python.sh
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
u"""
|
||||
Copyright (C) Valentin Samir
|
||||
Licence : GPLv3
|
||||
|
||||
"""
|
||||
import sys
|
||||
import time
|
||||
if '/usr/scripts' not in sys.path:
|
||||
sys.path.append('/usr/scripts')
|
||||
|
||||
import lc_ldap.objets as objets
|
||||
import lc_ldap.attributs as attributs
|
||||
|
||||
import proprio
|
||||
from CPS import TailCall, tailcaller, Continue
|
||||
|
||||
class Dialog(proprio.Dialog):
|
||||
def create_club(self, cont):
|
||||
self.dialog.msgbox("todo", width=0, height=0)
|
||||
return cont
|
||||
|
||||
def delete_club(self, cont):
|
||||
self.dialog.msgbox("todo", width=0, height=0)
|
||||
return cont
|
||||
|
||||
def modif_club(self, cont, club=None):
|
||||
if club is None:
|
||||
club = self.select(["club"], "Recherche d'un club pour modification", disable_field=["Prénom", "Téléphone"], cont=cont)
|
||||
self.dialog.msgbox("todo", width=0, height=0)
|
||||
return cont(proprio=club)
|
Loading…
Add table
Add a link
Reference in a new issue