Changeset 170
- Timestamp:
- 08/19/09 10:13:06 (14 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/pxe_global.py.in
r168 r170 10 10 import os 11 11 import ConfigParser 12 13 class PxeConfig(Exception): 14 def __init__(self, msg=''): 15 self.msg = msg 16 Exception.__init__(self, msg) 17 18 def __repr__(self): 19 return self.msg 12 20 13 21 def ReadConfig(): -
trunk/src/pxeconfig.in
r161 r170 35 35 import pxeconfig 36 36 37 from pxe_global import * 38 37 39 if __name__ == '__main__': 38 40 try: -
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.