aboutsummaryrefslogtreecommitdiff
path: root/web/website/fonctions.py
diff options
context:
space:
mode:
Diffstat (limited to 'web/website/fonctions.py')
-rwxr-xr-xweb/website/fonctions.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/web/website/fonctions.py b/web/website/fonctions.py
deleted file mode 100755
index c1566af..0000000
--- a/web/website/fonctions.py
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/python3
-# -*- coding: utf-8 -*-
-import psycopg2
-
-def baseHTML(title,body):
- content=("""<!DOCTYPE html>
-<html>
- <head>
- <title>"""+ title +"""</title>
- <meta charset="UTF-8">
- <link rel="stylesheet" type="text/css" href="style.css">
- </head>
- <body>"""+ body +"""</body>
-</html>
-
- """)
- return content
-
-
-def connexionBD():
- connexion=psycopg2.connect ("host='localhost' dbname='atsdb' user='atsuser' password='123456'")
- return connexion
-