From 10beda6f16c0803bdd8e8d5e2f35a4ba3d42f9f5 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 12 Jul 2011 21:18:24 +0000 Subject: [PATCH] =?utf8?q?Gr=C3=B6=C3=9Ferer=20Umbau?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.brehm-online.com/svn/my-stuff/python/PyLogrotate/trunk@285 ec8d2aa5-1599-4edb-8739-2b3a1bc399aa --- .../LogRotateCommon.py | 0 .../LogRotateConfig.py | 0 .../LogRotateGetopts.py | 0 .../LogRotateHandler.py | 0 .../LogRotateMailer.py | 0 .../LogRotateScript.py | 0 .../LogRotateStatusFile.py | 0 LogRotate/__init__.py | 9 +++++++++ logrotate.py | 16 ++++++++-------- 9 files changed, 17 insertions(+), 8 deletions(-) rename LogRotateCommon.py => LogRotate/LogRotateCommon.py (100%) rename LogRotateConfig.py => LogRotate/LogRotateConfig.py (100%) rename LogRotateGetopts.py => LogRotate/LogRotateGetopts.py (100%) rename LogRotateHandler.py => LogRotate/LogRotateHandler.py (100%) rename LogRotateMailer.py => LogRotate/LogRotateMailer.py (100%) rename LogRotateScript.py => LogRotate/LogRotateScript.py (100%) rename LogRotateStatusFile.py => LogRotate/LogRotateStatusFile.py (100%) create mode 100755 LogRotate/__init__.py diff --git a/LogRotateCommon.py b/LogRotate/LogRotateCommon.py similarity index 100% rename from LogRotateCommon.py rename to LogRotate/LogRotateCommon.py diff --git a/LogRotateConfig.py b/LogRotate/LogRotateConfig.py similarity index 100% rename from LogRotateConfig.py rename to LogRotate/LogRotateConfig.py diff --git a/LogRotateGetopts.py b/LogRotate/LogRotateGetopts.py similarity index 100% rename from LogRotateGetopts.py rename to LogRotate/LogRotateGetopts.py diff --git a/LogRotateHandler.py b/LogRotate/LogRotateHandler.py similarity index 100% rename from LogRotateHandler.py rename to LogRotate/LogRotateHandler.py diff --git a/LogRotateMailer.py b/LogRotate/LogRotateMailer.py similarity index 100% rename from LogRotateMailer.py rename to LogRotate/LogRotateMailer.py diff --git a/LogRotateScript.py b/LogRotate/LogRotateScript.py similarity index 100% rename from LogRotateScript.py rename to LogRotate/LogRotateScript.py diff --git a/LogRotateStatusFile.py b/LogRotate/LogRotateStatusFile.py similarity index 100% rename from LogRotateStatusFile.py rename to LogRotate/LogRotateStatusFile.py diff --git a/LogRotate/__init__.py b/LogRotate/__init__.py new file mode 100755 index 0000000..2c6a1ef --- /dev/null +++ b/LogRotate/__init__.py @@ -0,0 +1,9 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +''' +@author: Frank Brehm +@contact: frank@brehm-online.com +@copyright: (c) 2010 - 2011 by Frank Brehm, Berlin +@summary: All modules for logrotate.py +''' +# vim: fileencoding=utf-8 filetype=python ts=4 diff --git a/logrotate.py b/logrotate.py index c252ec0..2c2f962 100755 --- a/logrotate.py +++ b/logrotate.py @@ -9,7 +9,7 @@ @contact: frank@brehm-online.com @license: GPL3 @copyright: (c) 2010-2011 by Frank Brehm, Berlin -@version: 0.2.2 +@version: 0.5.3 @summary: rotates and compress system logs ''' @@ -21,13 +21,13 @@ import os import os.path from datetime import datetime -from LogRotateGetopts import LogrotateOptParser -from LogRotateGetopts import LogrotateOptParserError +from LogRotate.Getopts import LogrotateOptParser +from LogRotate.Getopts import LogrotateOptParserError -from LogRotateHandler import LogrotateHandler -from LogRotateHandler import LogrotateHandlerError +from LogRotate.Handler import LogrotateHandler +from LogRotate.Handler import LogrotateHandlerError -import LogRotateCommon +import LogRotate.Common revision = '$Revision$' revision = re.sub( r'\$', '', revision ) @@ -36,7 +36,7 @@ revision = re.sub( r'Revision: ', r'r', revision ) __author__ = 'Frank Brehm' __copyright__ = '(C) 2011 by Frank Brehm, Berlin' __contact__ = 'frank@brehm-online.com' -__version__ = '0.5.2 ' + revision +__version__ = '0.5.3 ' + revision __license__ = 'GPL3' @@ -53,7 +53,7 @@ def main(): local_dir = None #print "Locale-Dir: %s" % ( local_dir ) - LogRotateCommon.locale_dir = local_dir + LogRotate.Common.locale_dir = local_dir t = gettext.translation('pylogrotate', local_dir, fallback=True) _ = t.lgettext -- 2.39.5