From 93f35d0aa4ba6a454dd039284d1726ee74f0876c Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Wed, 8 May 2013 05:43:14 +0200 Subject: [PATCH] =?UTF-8?q?On=20vire=20cp.py=20et=20cranslib/mail/=5F=5Fin?= =?UTF-8?q?it=5F=5F.py=20qui=20sont=20moches=20et=20ne=20servent=20qu'?= =?UTF-8?q?=C3=A0=20l'intranet1.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On en profite pour déplacer quota.py --- cranslib/cp.py | 41 ------------------- {archive/cranslib/www => utils}/pagesperso.py | 0 {cranslib/utils => utils}/quota.py | 0 3 files changed, 41 deletions(-) delete mode 100644 cranslib/cp.py rename {archive/cranslib/www => utils}/pagesperso.py (100%) rename {cranslib/utils => utils}/quota.py (100%) diff --git a/cranslib/cp.py b/cranslib/cp.py deleted file mode 100644 index aa47dbf7..00000000 --- a/cranslib/cp.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python -# -*- coding: iso-8859-15 -*- -# ############################################################# -# .. -# .... ............ ........ -# . ....... . .... .. -# . ... .. .. .. .. ..... . .. -# .. .. ....@@@. .. . ........ . -# .. . .. ..@.@@..@@. .@@@@@@@ @@@@@@. .... -# .@@@@. .@@@@. .@@@@..@@.@@..@@@..@@@..@@@@.... .... -# @@@@... .@@@.. @@ @@ .@..@@..@@...@@@. .@@@@@. .. -# .@@@.. . @@@. @@.@@..@@.@@..@@@ @@ .@@@@@@.. ..... -# ...@@@.... @@@ .@@.......... ........ ..... .. -# . ..@@@@.. . .@@@@. .. ....... . ............. -# . .. .... .. .. . ... .... -# . . .... ............. .. ... -# .. .. ... ........ ... ... -# ................................ -# -# ############################################################# -""" -cp.py - - Fonctions pour cherrypy (intranet) - -Copyright (c) 2006 by www.crans.org -""" -import cherrypy - -def log(string, keyword = "INTRANET", level = 0): - """Utilise la fonction log de cherrypy avec quelques modification - - -> introduit le login de la session en cours s'il existe - """ - try: - login = cherrypy.session['uid'] - string = u"[%s] %s" % ( login, string ) - except: - pass - string = string.encode("utf-8") - cherrypy.log(string, keyword, level) diff --git a/archive/cranslib/www/pagesperso.py b/utils/pagesperso.py similarity index 100% rename from archive/cranslib/www/pagesperso.py rename to utils/pagesperso.py diff --git a/cranslib/utils/quota.py b/utils/quota.py similarity index 100% rename from cranslib/utils/quota.py rename to utils/quota.py