Tolte alcune impostazioni personali da mlmanager.py e rifiniutre
Leonardo [2010-06-25 15:48]
Tolte alcune impostazioni personali da mlmanager.py e rifiniutre
varie nei commenti.
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 <leo@robol.it>
-
-
#
-# 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 <leo@robol.it>"
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",