Changeset 170 for trunk/src/pxeconfig.py
- Timestamp:
- 08/19/09 10:13:06 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/pxeconfig.py
r168 r170 72 72 END = 'end' 73 73 VERSION = '3.1.0' 74 75 class PxeConfig(Exception):76 def __init__(self, msg=''):77 self.msg = msg78 Exception.__init__(self, msg)79 80 def __repr__(self):81 return self.msg82 83 #def ReadConfig(file):84 # """85 # Parse the config file86 # """87 # if not os.path.isfile(file):88 # error = 'File %s does not exist' %file89 # raise PxeConfig, error90 #91 ## config = ConfigParser.RawConfigParser()92 # try:93 # config.read(file)94 # except ConfigParser.MissingSectionHeaderError,detail:95 # raise PxeConfig, detail96 #97 # # Not yet uses98 # #99 # #projects = {}100 # #for section in config.sections():101 ## # projects[section] = {}102 # # for option in config.options(section):103 # # projects[section][option] = config.get(section, option)104 #105 # stanza = config.defaults()106 # return stanza107 #108 74 109 75 def select_pxe_configfile():
Note: See TracChangeset
for help on using the changeset viewer.