Commit a90da4d9 authored by Babacar Thiam's avatar Babacar Thiam

update data create and chargement

parents
chargementSGDEexcelsans btl Version 1.2 installation guide
1- Installation on Linux/Unix
To install the sGDE_IsmerQO package, you must install
the Python Programming Language environnement on your system.
The Python software is available for download at http://www.python.org.
Once python is installed on your system, simply download the
sGDE_IsmerQO package from the gitlasso
The package for Linux/Unix comes
as a gzip tar file. To install, follow these steps:
1- tar zxvf sGDE_IsmerQO-1.2.tar.gz
(or gunzip -c sGDE_IsmerQO-1.2.tar.gz | tar xvf -)
2- cd sGDE_IsmerQO-1.2/src
3- su - root (become superuser)
4- python setup.py install
And sGDE_IsmerQO should now be
available for execution.
2- Installation of the source code on Windows
To install the sGDE_IsmerQO package, you must install
the Python Programming Language environnement on your system.
The Python software is available for download at http://www.python.org.
Once python is installed on your system, simply download the
sGDE_IsmerQO package from the gitlasso
The package for windows comes Windows comes as a zip file.
To install, follow these steps:
1- Download the zip file to a directory such as c:\temp
2- Unzip sGDE_IsmerQO-1.2.zip
3- Open a command window
4- cd c:\temp\sGDE_IsmerQO-1.2\src
5- python setup.py install
sGDE_IsmerQO.py should now be
available for execution and will have been copied to the Scripts directory of your Python
installation (e.g., c:\Python24\Scripts). In order to use
the sGDE_IsmerQO.py package from anywhere on your machine, you must
add this directory to your PATH environnement variable.
#
#Makefile pour construire les paquets de
#distribution de odf2netcdf
all:
python setup.py sdist --formats=gztar,zip
python setup.py bdist_wininst
chargementSGDEexcelsans btl Version 1.2 installation guide
1- Installation on Linux/Unix
To install the sGDE_IsmerQO package, you must install
the Python Programming Language environnement on your system.
The Python software is available for download at http://www.python.org.
Once python is installed on your system, simply download the
sGDE_IsmerQO package from the gitlasso
The package for Linux/Unix comes
as a gzip tar file. To install, follow these steps:
1- tar zxvf sGDE_IsmerQO-1.2.tar.gz
(or gunzip -c sGDE_IsmerQO-1.2.tar.gz | tar xvf -)
2- cd sGDE_IsmerQO-1.2
3- su - root (become superuser)
4- python setup.py install
And sGDE_IsmerQO should now be
available for execution.
2- Installation of the source code on Windows
To install the sGDE_IsmerQO package, you must install
the Python Programming Language environnement on your system.
The Python software is available for download at http://www.python.org.
Once python is installed on your system, simply download the
sGDE_IsmerQO package from the gitlasso
The package for windows comes Windows comes as a zip file.
To install, follow these steps:
1- Download the zip file to a directory such as c:\temp
2- Unzip sGDE_IsmerQO-1.2.zip
3- Open a command window
4- cd c:\temp\sGDE_IsmerQO-1.2
5- python setup.py install
sGDE_IsmerQO.py should now be
available for execution and will have been copied to the Scripts directory of your Python
installation (e.g., c:\Python24\Scripts). In order to use
the sGDE_IsmerQO.py package from anywhere on your machine, you must
add this directory to your PATH environnement variable.
import testPostgres as pf
import traceback
import sys
from tkinter import *
from tkinter import ttk, messagebox
import pandas as pd
import json
#import excel2nc as ex
#bd.cursor.execute("select nextval('seq_int')")
#resultat2=bd.cursor.fetchone()
#print(resultat2)
def geoliste(g):
r=[i for i in range(0,len(g)) if not g[i].isdigit()]
return [int(g[0:r[0]]),int(g[r[0]+1:r[1]]),int(g[r[1]+1:r[2]]),int(g[r[2]+1:])]
def centrefenetre(fen):
fen.update_idletasks()
l,h,x,y=geoliste(fen.geometry())
fen.geometry("%dx%d%+d%+d" % (l,h,(fen.winfo_screenwidth()-l)//2,(fen.winfo_screenheight()-h)//2))
class ConnGraphic(Tk):
def __init__(self):
Tk.__init__(self)
#self.minsize(1200,700)
self.title('connexion a la base de donnees')
self.creerWidgets()
##interface pour la mission
def creerWidgets(self):
self.mainWindow = Frame(self, bg="blue")
self.mainWindow.pack(fill=BOTH, expand=1)
self.frameSaisie = Frame(self.mainWindow, bg="blue")
self.frameSaisie.pack(fill=BOTH)
self.frameResult10 = Frame(self.mainWindow)
self.frameResult10.pack(fill=BOTH)
self.frameResult = Frame(self.frameResult10, bd=4, relief=SUNKEN)
self.frameResult.pack(side=LEFT,fill=X)
self.ent_label = Label(self.frameResult,font=('arial',50,'bold'),bd=4,bg="blue", fg="white", text="Information de connection:")
#self.ent_label.configure(font=('Helvetica', 12),bg="blue", fg="white")
self.ent_label.pack(side=TOP,padx=5, pady=5)
self.frameResult00 = Frame(self.frameResult, bd=4, relief=SUNKEN)
self.frameResult00.pack(fill=BOTH,padx=5, pady=5)
self.modified_label53321 = Label(self.frameResult00,font=('arial',50,'bold'),bd=4, text = "host:")
#self.modified_label53321.configure(font=('Helvetica', 12))
#self.modified_label53321.pack(side=LEFT,padx=5, pady=5)
self.modified5332100=StringVar()
self.modified_entry53321= Entry(self.frameResult00,font=('arial',50,'bold'),textvariable=self.modified5332100)
self.modified_label53321.grid(row =0)
self.modified_entry53321.grid(row =0, column=1)
#self.modified_entry53321.pack(side=LEFT,padx=5, pady=5)
#self.modified_entry53321.focus()
#self.frameResult21 = Frame(self.frameResult10, bd=2, relief=SUNKEN)
#self.frameResult21.pack(side=LEFT,fill=Y)
self.modified_label51 = Label(self.frameResult00,font=('arial',50,'bold'),bd=4, text = "db info:")
#self.modified_label51.configure(font=('Helvetica', 12))
#self.modified_label51.pack(side=LEFT,padx=25, pady=25)
self.modified_label51.grid(row =1, column =0)
self.modified51=StringVar()
self.modified_entry51=Entry(self.frameResult00,font=('arial',50,'bold'),textvariable=self.modified51)
self.modified_entry51.grid(row =1, column =1)
self.modified_label4 = Label(self.frameResult00,font=('arial',50,'bold'),bd=4, text = "User:")
#self.modified_label4.configure(font=('Helvetica', 12))
#self.modified_label4.pack(side=LEFT,padx=25, pady=25)
#self.modified_label4.grid(row =0,column =4)
self.modified4=StringVar()
self.modified_entry4 = Entry(self.frameResult00,font=('arial',50,'bold'),bd=4,textvariable=self.modified4)
self.modified_entry4.grid(row =2, column =1)
self.modified_label4.grid(row =2, column =0)
#self.modified_entry4.pack(side=LEFT,padx=25, pady=25)
#self.modified_entry4.focus()
# self.modified_entry4.grid(row =1,column =4)
#self.frameResult2112 = Frame(self.frameResult, bd=2, relief=SUNKEN)
#self.frameResult2112.pack(side=LEFT,fill=Y)
self.modified_label5 = Label(self.frameResult00,font=('arial',50,'bold'),bd=4, text = "Password:")
#self.modified_label5.configure(font=('Helvetica', 12))
self.modified_label5.grid(row =3, column =0)
#self.modified_label5.pack(side=LEFT,padx=25, pady=25)
self.modified5=StringVar()
self.modified_entry5= Entry(self.frameResult00,font=('arial',50,'bold'),textvariable=self.modified5,show="*")
self.modified_entry5.grid(row =3, column =1)
self.btnan = Button(self.mainWindow,font=('arial',50,'bold'),bd=4, text="Se connecter", bg="blue", fg="white", command=self.seconnecter)
self.btnan.pack()
#self.btntablenew = Button(self.mainWindow, text="initialiser",font=('arial',50,'bold'),bd=4, bg="blue", fg="white",command=self.nouveauD)
#self.btntablenew.pack()
#self.frameButtontable1 = Frame(self.frameSaisie, bg="blue")
#self.frameButtontable1.pack(side=LEFT)
#self.btnacceuille = Button(self.frameResult00, text="Acceuil",font=('arial',50,'bold'),bd=4, bg="red", fg="white",command=self.acceuil)
#self.btnacceuille.grid(row=3,column=2)
self.exit_button = Button(self.mainWindow,font=('arial',50,'bold'),bd=4,bg="red",fg="black", text = "Exit", command = self.destroy)
self.exit_button.pack()
def nouveauD(self):
#self.dose.set("")
self.modified5332100.set("")
self.modified51.set("")
self.modified4.set("")
self.modified5.set("")
def seconnecter(self):
playlist = {}
playlist["identifiant"] = {}
playlist["identifiant"]["user"]=self.modified4.get()
playlist["identifiant"]["password"]=self.modified5.get()
playlist["dbinfo"] = {}
playlist["dbinfo"]["db"]=self.modified51.get()
playlist["dbinfo"]["host"]=self.modified5332100.get()
with open('conn1.json', 'w', encoding='utf-8') as f:
json.dump(playlist, f, indent=4)
self.destroy()
#ex.bd.cursor.execute("select nom from groupe order by nom")
#resultat1=ex.bd.cursor.fetchall()
#print("bonjour",resultat1)
#a=pf.recupconf("conn1.json")
#bd=pf.GestionBD(a[0],a[1],a[2],a[3])
#print(a)
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
xlrd
numpy
pandas
seabird
googletrans
netCDF4
psycopg2
#!/usr/bin/env python
#! python
#####################################
#
#Conversion de fichiers ODF a csv
#
#Auteur: James Caveen
# Ecrit a partir du programme fortran
# odf2txt de C. Lafleur (IML)
#
#$Id$
#
####################################
from googletrans import Translator
import testPostgres as pf
import traceback
import sys
from tkinter import *
from tkinter import ttk, messagebox
import pandas as pd
import gestionIntervenant as gI
import gestiongroupe as gG
import gestionmission as gM
import gestionprojet as gp
import gestionjeudedonneesbis as ggd
import gestiontypjd as gtd
import gestionmotcle as gmc
import gestionmotdict as gmd
#bd.cursor.execute("select nextval('seq_int')")
#resultat2=bd.cursor.fetchone()
#print(resultat2)
class InterfaceGraphic(Tk):
def __init__(self):
Tk.__init__(self)
#self.minsize(1200,700)
self.title('Gestion des interfaces')
self.creerWidgets()
##interface pour la mission
def creerWidgets(self):
self.mainWindow = Frame(self, bg="blue")
self.mainWindow.pack(fill=BOTH, expand=1)
self.tete = Frame(self.mainWindow, bg="blue")
self.tete.pack(side=TOP, fill=BOTH)
self.label = Label(self.tete,font=('arial',70,'bold'),text="Gestion des interfaces", bg="blue", fg="white")
self.label.pack(padx=5, pady=5)
self.frameSaisie = Frame(self.mainWindow, bg="blue")
self.frameSaisie.pack(fill=BOTH)
self.frameResult = Frame(self.frameSaisie, bd=4, relief=SUNKEN)
self.frameResult.pack(side=LEFT,fill=X)
#self.frameButtoninter = Frame(self.frameSaisie, bg="blue")
#self.frameButtoninter.pack(side=LEFT)
#self.btninter = Button(self.frameButtoninter, text="Nouveau", bg="blue", fg="white")
#self.btninter.pack(padx=5, pady=5)
self.frameButtonmission = Frame(self.frameSaisie, bg="blue")
self.frameButtonmission.pack(side=LEFT)
self.btnmission = Button(self.frameButtonmission,font=('arial',50,'bold'),bd=4, text="Gestion Intervenant", bg="blue", fg="white", command=self.gestionIntervenant)
self.btnmission.grid(row=0,column=0)
self.frameButtontable = Frame(self.frameSaisie, bg="blue")
self.frameButtontable.pack(side=LEFT)
self.btntable = Button(self.frameButtonmission,font=('arial',50,'bold'),bd=4, text="Gestion Groupe", bg="blue", fg="white",command=self.gestionGroupe)
self.btntable.grid(row=0,column=1)
self.frameButtonsauve = Frame(self.frameSaisie, bg="blue")
self.frameButtonsauve.pack(side=LEFT)
self.btnsauve = Button(self.frameButtonmission,font=('arial',50,'bold'),bd=4, text="Gestion Mission", bg="blue", fg="white", command=self.gestionMission)
self.btnsauve.grid(row=0,column=2)
self.frameButtonprojet = Frame(self.frameSaisie, bg="blue")
self.frameButtonprojet.pack(side=LEFT)
self.btnsauve1 = Button(self.frameButtonmission,font=('arial',50,'bold'),bd=4, text="Gestion Projet", bg="blue", fg="white", command=self.gestionProjet)
self.btnsauve1.grid(row=0,column=3)
self.frameSaisie1 = Frame(self.mainWindow, bg="blue")
self.frameSaisie1.pack(fill=BOTH)
self.frameButtonjeu = Frame(self.frameSaisie1, bg="blue")
self.frameButtonjeu.pack(side=LEFT)
self.btnsauve11 = Button(self.frameButtonjeu,font=('arial',50,'bold'),bd=4, text="Gestion jeu de donnees", bg="blue", fg="white", command=self.gestionjeudedonneesbis)
self.btnsauve11.grid(row=1,column=0)
self.frameButtontyp = Frame(self.frameSaisie1, bg="blue")
self.frameButtontyp.pack(side=LEFT)
self.btnsauve111 = Button(self.frameButtontyp,font=('arial',50,'bold'),bd=4, text="Gestion typ jd", bg="blue", fg="white", command=self.gestiontypjd)
self.btnsauve111.grid(row=1,column=1)
self.frameButtontypp = Frame(self.frameSaisie1, bg="blue")
self.frameButtontypp.pack(side=LEFT)
self.btnsauve111 = Button(self.frameButtontypp,font=('arial',50,'bold'),bd=4, text="Gestion mots clé", bg="blue", fg="white", command=self.gestionmotsclef)
self.btnsauve111.grid(row=1,column=2)
self.frameButtontype = Frame(self.frameSaisie1, bg="blue")
self.frameButtontype.pack(side=LEFT)
self.btnsauve1111 = Button(self.frameButtontype,font=('arial',50,'bold'),bd=4, text="Gestion mots dict", bg="blue", fg="white", command=self.gestionmotsdict)
self.btnsauve1111.grid(row=2,column=3)
#self.frameButtontypes = Frame(self.frameSaisie1, bg="blue")
#self.frameButtontypes.pack(side=LEFT)
#self.btnsauve11111 = Button(self.frameButtontypes,font=('arial',50,'bold'),bd=4, text="delete jd", bg="blue", fg="white", command=self.gestiondeletejd)
#self.btnsauve11111.grid(row=2,column=4)
self.exit_button = Button(self.mainWindow,font=('arial',50,'bold'),bd=4,fg="black",bg="red", text = "Exit", command = self.mainWindow.quit)
self.exit_button.pack()
def gestionIntervenant(self):
#prob = self.loginEntry.get().strip().split(' ')
try:
#self.inter = gI.IntervenantGraphic()
#self.inter.mainloop()
self.destroy()
self.inter = gI.IntervenantGraphic()
#self.inter.mainloop()
except Exception as err:
print("Requête SQL incorrecte :\n%s\nErreur détectée :\n%s"\
% (err))
messagebox.showerror("Erreur de saisie", "impossible de lancer cette interface.")
def gestionGroupe(self):
#prob = self.loginEntry.get().strip().split(' ')
try:
self.destroy()
self.mission = gG.GroupeGraphic()
except Exception as err:
print("Requête SQL incorrecte :\n%s\nErreur détectée :\n%s"\
% (err))
messagebox.showerror("Erreur de saisie", "impossible de lancer cette interface.")
def gestionMission(self):
#prob = self.loginEntry.get().strip().split(' ')
try:
self.destroy()
self.groupe= gM.MissionGraphic()
except Exception as err:
print("Requête SQL incorrecte :\n%s\nErreur détectée :\n%s"\
% (err))
messagebox.showerror("Erreur de saisie", "impossible de lancer cette interface.")
def gestionProjet(self):
#prob = self.loginEntry.get().strip().split(' ')
try:
self.destroy()
self.projet= gp.ProjetGraphic()
except Exception as err:
print("Requête SQL incorrecte :\n%s\nErreur détectée :\n%s"\
% (err))
messagebox.showerror("Erreur de saisie", "impossible de lancer cette interface.")
def gestionjeudedonneesbis(self):
#prob = self.loginEntry.get().strip().split(' ')
try:
self.destroy()
self.projet= ggd.JeuDeDonneesGraphic()
except Exception as err:
print("Requête SQL incorrecte :\n%s\nErreur détectée :\n%s"\
% (err))
messagebox.showerror("Erreur de saisie", "impossible de lancer cette interface.")
def gestiontypjd(self):
#prob = self.loginEntry.get().strip().split(' ')
try:
self.destroy()
self.projet= gtd.TypJDGraphic()
except Exception as err:
print("Requête SQL incorrecte :\n%s\nErreur détectée :\n%s"\
% (err))
messagebox.showerror("Erreur de saisie", "impossible de lancer cette interface.")
def gestionmotsclef(self):
#prob = self.loginEntry.get().strip().split(' ')
try:
self.destroy()
self.projet= gmc.MotCleGraphic()
except Exception as err:
print("Requête SQL incorrecte :\n%s\nErreur détectée :\n%s"\
% (err))
messagebox.showerror("Erreur de saisie", "impossible de lancer cette interface.")
def gestionmotsdict(self):
#prob = self.loginEntry.get().strip().split(' ')
try:
self.destroy()
self.projet= gmd.MotDictGraphic()
except Exception as err:
print("Requête SQL incorrecte :\n%s\nErreur détectée :\n%s"\
% (err))
messagebox.showerror("Erreur de saisie", "impossible de lancer cette interface.")
def gestiondeletejd(self):
#prob = self.loginEntry.get().strip().split(' ')
try:
self.destroy()
#self.projet= jdd.JeuDeDonneesGraphicdelete()
except Exception as err:
print("Requête SQL incorrecte :\n%s\nErreur détectée :\n%s"\
% (err))
messagebox.showerror("Erreur de saisie", "impossible de lancer cette interface.")
if __name__ == '__main__':
huff = InterfaceGraphic()
#centrefenetre(huff)
huff.mainloop()
import testPostgres as pf
import os
import datetime
import testPostgres as pf
import traceback
import sys
from tkinter import *
from tkinter import ttk, messagebox
import pandas as pd
import json
class ConnGraphic(Tk):
def __init__(self):
Tk.__init__(self)
#self.minsize(1200,700)
self.title('connexion a la base de donnees')
self.creerWidgets()
##interface pour la mission
def creerWidgets(self):
self.mainWindow = Frame(self, bg="blue")
self.mainWindow.pack(fill=BOTH, expand=1)
self.frameSaisie = Frame(self.mainWindow, bg="blue")
self.frameSaisie.pack(fill=BOTH)
self.frameResult10 = Frame(self.mainWindow)
self.frameResult10.pack(fill=BOTH)
self.frameResult = Frame(self.frameResult10, bd=4, relief=SUNKEN)
self.frameResult.pack(side=LEFT,fill=X)
self.ent_label = Label(self.frameResult,font=('arial',50,'bold'),bd=4,bg="blue", fg="white", text="Information de connection:")
#self.ent_label.configure(font=('Helvetica', 12),bg="blue", fg="white")
self.ent_label.pack(side=TOP,padx=5, pady=5)
self.frameResult00 = Frame(self.frameResult, bd=4, relief=SUNKEN)
self.frameResult00.pack(fill=BOTH,padx=5, pady=5)
self.modified_label53321 = Label(self.frameResult00,font=('arial',50,'bold'),bd=4, text = "host:")
#self.modified_label53321.configure(font=('Helvetica', 12))
#self.modified_label53321.pack(side=LEFT,padx=5, pady=5)
self.modified5332100=StringVar()
self.modified_entry53321= Entry(self.frameResult00,font=('arial',50,'bold'),textvariable=self.modified5332100)
self.modified_label53321.grid(row =0)
self.modified_entry53321.grid(row =0, column=1)
#self.modified_entry53321.pack(side=LEFT,padx=5, pady=5)
#self.modified_entry53321.focus()
#self.frameResult21 = Frame(self.frameResult10, bd=2, relief=SUNKEN)
#self.frameResult21.pack(side=LEFT,fill=Y)
self.modified_label51 = Label(self.frameResult00,font=('arial',50,'bold'),bd=4, text = "database:")
#self.modified_label51.configure(font=('Helvetica', 12))
#self.modified_label51.pack(side=LEFT,padx=25, pady=25)
self.modified_label51.grid(row =1, column =0)
self.modified51=StringVar()
self.modified_entry51=Entry(self.frameResult00,font=('arial',50,'bold'),textvariable=self.modified51)
self.modified_entry51.grid(row =1, column =1)
self.modified_label4 = Label(self.frameResult00,font=('arial',50,'bold'),bd=4, text = "User:")
#self.modified_label4.configure(font=('Helvetica', 12))
#self.modified_label4.pack(side=LEFT,padx=25, pady=25)
#self.modified_label4.grid(row =0,column =4)
self.modified4=StringVar()
self.modified_entry4 = Entry(self.frameResult00,font=('arial',50,'bold'),bd=4,textvariable=self.modified4)
self.modified_entry4.grid(row =2, column =1)
self.modified_label4.grid(row =2, column =0)
#self.modified_entry4.pack(side=LEFT,padx=25, pady=25)
#self.modified_entry4.focus()
# self.modified_entry4.grid(row =1,column =4)
#self.frameResult2112 = Frame(self.frameResult, bd=2, relief=SUNKEN)
#self.frameResult2112.pack(side=LEFT,fill=Y)
self.modified_label5 = Label(self.frameResult00,font=('arial',50,'bold'),bd=4, text = "Password:")
#self.modified_label5.configure(font=('Helvetica', 12))
self.modified_label5.grid(row =3, column =0)
#self.modified_label5.pack(side=LEFT,padx=25, pady=25)
self.modified5=StringVar()
self.modified_entry5= Entry(self.frameResult00,font=('arial',50,'bold'),textvariable=self.modified5,show="*")
self.modified_entry5.grid(row =3, column =1)
self.btnan = Button(self.mainWindow,font=('arial',50,'bold'),bd=4, text="Se connecter", bg="blue", fg="white", command=self.seconnecter)
self.btnan.pack()
#self.btntablenew = Button(self.mainWindow, text="initialiser",font=('arial',50,'bold'),bd=4, bg="blue", fg="white",command=self.nouveauD)
#self.btntablenew.pack()
#self.frameButtontable1 = Frame(self.frameSaisie, bg="blue")
#self.frameButtontable1.pack(side=LEFT)
#self.btnacceuille = Button(self.frameResult00, text="Acceuil",font=('arial',50,'bold'),bd=4, bg="red", fg="white",command=self.acceuil)
#self.btnacceuille.grid(row=3,column=2)
#self.exit_button = Button(self.mainWindow,font=('arial',50,'bold'),bd=4,bg="red",fg="black", text = "Exit", command = self.destroy)
#self.exit_button.pack()
def nouveauD(self):
#self.dose.set("")
self.modified5332100.set("")
self.modified51.set("")
self.modified4.set("")
self.modified5.set("")
def seconnecter(self):
playlist = {}
playlist["identifiant"] = {}
playlist["identifiant"]["user"]=self.modified4.get()
playlist["identifiant"]["password"]=self.modified5.get()
playlist["dbinfo"] = {}
playlist["dbinfo"]["db"]=self.modified51.get()
playlist["dbinfo"]["host"]=self.modified5332100.get()
#with open('conn1.json', 'w', encoding='utf-8') as f:
# json.dump(playlist, f, indent=4)
global bd
global absval
absval=list((self.modified51.get(),self.modified5332100.get(),self.modified4.get(),self.modified5.get()))
bd = pf.GestionBD(self.modified51.get(),self.modified5332100.get(),self.modified4.get(),self.modified5.get())
self.destroy()
huffman = ConnGraphic()
huffman.mainloop()
#absval=pf.recupconf("conn.json")
#bd = pf.GestionBD(absval[0],absval[1],absval[2],absval[3])
if bd.echec:
#raise ValueError("Erreur : connection echoue")
exit()
try:
bd.cursor.execute("""select count(*) from INTERVENANT where ACR_NOM_INT='%s'"""%absval[2])
resultat=bd.cursor.fetchone()
if resultat[0] <= 0:
print("Attention: vous n'êtes pas inscrit dans la table des Intervenants")
else:
bd.cursor.execute("""select nom from INTERVENANT where ACR_NOM_INT='%s'"""%absval[2])
resultat=bd.cursor.fetchone()
print("Intervenant PostgreSQL %s connecté pour manipuler la base de donnees "%(resultat[0]))
except Exception as err:
print ("Requête SQL incorrecte :\n%s\nErreur détectée :\n%s"\
% ( err))
try:
base="""INSERT INTO ACCES_sgde(USA_ACCES_sgde, DATE_ACCES_sgde,intervenant) VALUES(%s,%s,%s)"""
#bd.cursor.execute(base,(absval[2]+"PYTHON",datetime.datetime.now(),absval[2]))
except Exception as err:
print ("Requête SQL incorrecte :\n%s\nErreur détectée :\n%s"\
% ( err))
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from codecs import open
from setuptools import find_packages
import seabird
with open('requirements.txt', encoding='utf-8') as f:
requirements = f.read()
auteur = "THIAM babacar"
entretient = "THIAM babacar"
auteur_email="babacar.thiam2@uqar.ca"