Author: dmeyer
Date: Sat Apr 14 20:33:38 2007
New Revision: 9445

Modified:
   trunk/core/src/conf.py

Log:
remove old Config class

Modified: trunk/core/src/conf.py
==============================================================================
--- trunk/core/src/conf.py      (original)
+++ trunk/core/src/conf.py      Sat Apr 14 20:33:38 2007
@@ -68,33 +68,8 @@
 import gc
 
 # kaa imports
-from kaa.strutils import ENCODING
-from kaa.config import Var, Group, Dict, List
-from kaa.config import Config as KaaConfig
 from kaa.notifier import Timer
 
-class Config(KaaConfig):
-    def __init__(self, app, schema, desc=u'', name=''):
-        KaaConfig.__init__(self, schema, desc, name)
-        self._app = app
-
-    def load(self):
-        KaaConfig.load(self, '/etc/freevo/%s.conf' % self._app)
-        # if started as user add personal config file
-        if os.getuid() > 0:
-            cfgdir = os.path.expanduser('~/.freevo')
-            KaaConfig.load(self, os.path.join(cfgdir, '%s.conf' % self._app))
-
-    def _cfg_string(self, prefix, print_desc=True):
-        cfgfile = '/etc/freevo/%s.conf' % self._app
-        msg = ''
-        if os.getuid() > 0 and os.path.isfile(cfgfile):
-            msg  = '# 
*************************************************************\n'
-            msg += '# Please also check the system wide config file\n# %s\n' % 
cfgfile
-            msg += '# 
*************************************************************\n\n'
-        return msg + KaaConfig._cfg_string(self, prefix, print_desc)
-
-
 # set basic env variables
 if not os.environ.has_key('HOME') or not os.environ['HOME'] or 
os.environ['HOME'] == '/':
     os.environ['HOME'] = '/root'

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to