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