/[glsr]/trunk/harmonious/_config.py
Gentoo

Contents of /trunk/harmonious/_config.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7 - (show annotations) (download) (as text)
Thu Jun 16 00:41:45 2005 UTC (9 years, 3 months ago) by port001
File MIME type: text/x-python
File size: 713 byte(s)
Convert Header to Id
1 __id__ = '$Id$'
2 __version__ = '$Revision: $'
3 __modulename__ = 'Config'
4
5 import ConfigParser
6
7 class Config:
8
9 def __init__(self, file):
10
11 self.__file = file
12
13 self.server = {}
14 self.dispatcher = {}
15
16 self._read_config()
17
18 def _read_config(self):
19
20 config = ConfigParser.ConfigParser()
21 config.readfp(open(self.__file))
22
23 if config.has_section('Server'):
24 if config.has_option('Server', 'TemplatePath'):
25 self.server['TemplatePath'] = config.get('Server', 'TemplatePath').rstrip('/')
26 if config.has_option('Server', 'DomainPath'):
27 self.server['DomainPath'] = config.get('Server', 'DomainPath').rstrip('/')

Properties

Name Value
svn:keywords Id

  ViewVC Help
Powered by ViewVC 1.1.20