Changeset 167


Ignore:
Timestamp:
08/19/09 08:54:17 (15 years ago)
Author:
bas
Message:

revert some chamges we must generate pxeconfig.py for the config file

Location:
trunk
Files:
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r166 r167  
    18001800
    18011801
    1802 ac_config_files="$ac_config_files Makefile src/pxeconfig src/pxeconfigd src/hexls examples/pxeconfigd.xinetd"
     1802ac_config_files="$ac_config_files Makefile src/pxeconfig src/pxeconfig.py src/pxeconfigd src/hexls examples/pxeconfigd.xinetd"
    18031803
    18041804cat >confcache <<\_ACEOF
     
    23712371    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    23722372    "src/pxeconfig") CONFIG_FILES="$CONFIG_FILES src/pxeconfig" ;;
     2373    "src/pxeconfig.py") CONFIG_FILES="$CONFIG_FILES src/pxeconfig.py" ;;
    23732374    "src/pxeconfigd") CONFIG_FILES="$CONFIG_FILES src/pxeconfigd" ;;
    23742375    "src/hexls") CONFIG_FILES="$CONFIG_FILES src/hexls" ;;
  • trunk/configure.in

    r166 r167  
    6060        Makefile
    6161        src/pxeconfig
     62        src/pxeconfig.py
    6263        src/pxeconfigd
    6364        src/hexls
  • trunk/pxeconfig.conf

    r124 r167  
    11[DEFAULT]
    2 ;pxe_config_dir : ./pxelinux.cfg
    3 debug           : 0
     2;pxe_config_dir    : ./pxelinux.cfg
     3debug              : 0
     4;client_script_hook : /usr/sara/sbin/pxefirewall-pre-install.sh
     5;daemon_script_hook : /usr/sara/sbin/pxefirewall-post-install.sh
  • trunk/src/pxeconfig.py.in

    r166 r167  
    6363# import from the sara_python_modules
    6464import AdvancedParser
     65import pxe_global
    6566
    6667# Constants
     
    7071START        = 'start'
    7172END          = 'end'
    72 VERSION      = '3.0.4'
     73VERSION      = '3.1.0'
    7374
    7475class PxeConfig(Exception):
     
    8081                return self.msg
    8182
    82 def ReadConfig(file):
    83         """
    84         Parse the config file
    85         """
    86         if not os.path.isfile(file):
    87                 error = 'File %s does not exist' %file
    88                 raise PxeConfig, error
    89 
    90         config = ConfigParser.RawConfigParser()
    91         try:
    92                 config.read(file)
    93         except ConfigParser.MissingSectionHeaderError,detail:
    94                 raise PxeConfig, detail
    95 
    96         # Not yet uses
    97         #
    98         #projects = {}
    99         #for section in config.sections():
    100         #       projects[section] = {}
    101         #       for option in  config.options(section):
    102         #       projects[section][option] = config.get(section, option)
    103 
    104         stanza = config.defaults()
    105         return stanza
     83#def ReadConfig(file):
     84#       """
     85#       Parse the config file
     86#       """
     87#       if not os.path.isfile(file):
     88#               error = 'File %s does not exist' %file
     89#               raise PxeConfig, error
     90#
     91##      config = ConfigParser.RawConfigParser()
     92#       try:
     93#               config.read(file)
     94#       except ConfigParser.MissingSectionHeaderError,detail:
     95#               raise PxeConfig, detail
     96#
     97#       # Not yet uses
     98#       #
     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 stanza
     107#
    106108
    107109def select_pxe_configfile():
Note: See TracChangeset for help on using the changeset viewer.