aboutsummaryrefslogtreecommitdiffstats
path: root/web/website/fonctions.py
diff options
context:
space:
mode:
authorclyhtsuriva <clyhtsuriva@gmail.com>2020-03-29 19:56:43 +0200
committerclyhtsuriva <clyhtsuriva@gmail.com>2020-03-29 19:56:43 +0200
commita6e0225c9e22d76fae9493008cad8510d94905e9 (patch)
tree000c53031f2845cb9fe300f681ec9fe3a01ef1b5 /web/website/fonctions.py
parentdc539fda0108dc724693fbdd7599bd86980f0de0 (diff)
downloadATS-a6e0225c9e22d76fae9493008cad8510d94905e9.tar.gz
ATS-a6e0225c9e22d76fae9493008cad8510d94905e9.tar.bz2
ATS-a6e0225c9e22d76fae9493008cad8510d94905e9.zip
web deleted
Diffstat (limited to '')
-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
-