From 68d502b5f0000a1709e25990a813ff771434c281 Mon Sep 17 00:00:00 2001 From: Leonardo Date: Fri, 25 Jun 2010 17:48:58 +0200 Subject: [PATCH] Tolte alcune impostazioni personali da mlmanager.py e rifiniutre varie nei commenti. --- mlmanager.py | 23 ++++++++--------------- setup.py | 1 - 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/mlmanager.py b/mlmanager.py index b882a6d..35d0fce 100644 --- a/mlmanager.py +++ b/mlmanager.py @@ -11,15 +11,15 @@ # It is released under the GNU General Public License Version 3 # # Author: Leonardo Robol - - # -# START OF CONFIGURATION SECTION # - +# +# In this section of the file we set some internal variables to their +# default value. Users can customize them after loading the package. +# # The fully qualified (or not fully qualified - it really doesn't matter) # domain that the server is part of. -domain = "robol.it" +domain = "example.com" # This is the mail address that will be set as sender for all # the emails generated by the script. @@ -39,21 +39,14 @@ error_recipients = [ "owner" ] rsync_tries = 5 # Set file extensions to match. You can add extensions in every category -video_extensions = ['avi', 'mpeg', 'mpg', 'mkv', 'm2v', 'divx', 'xvid'] +video_extensions = ['avi', 'mpeg', 'mpg', 'mkv', 'm2v', 'divx', 'xvid', 'mov'] audio_extensions = ['mp3', 'ogg', 'wav', 'flac', 'aac' ] text_extensions = ['pdf', 'doc', 'odt', 'ods', 'odp', 'ppt', 'rtf', - 'pps', 'xls' , 'txt' ] -cdimage_extensions = [ 'iso', 'nrg' ] + 'pps', 'xls' , 'txt' ] +cdimage_extensions = [ 'iso', 'nrg', 'ccd'] archive_extensions = [ 'rar', 'zip', '7z', 'tar.gz', 'tar.bz2', 'lzo' ] -# -# END OF CONFIGURATION -# -# -# START OF CODE -# - __author__ = "Leonardo Robol " import os, sys, socket, shutil, subprocess, time, smtplib diff --git a/setup.py b/setup.py index 7423464..9aa7d86 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- - from distutils.core import setup setup(name="mlmanager", -- 2.1.4