ia64/xen-unstable

changeset 6931:91f974f7ce97

Rename feilds to fields throughout.

Signed-off-by: Ewan Mellor<ewan@xensource.com>
author emellor@ewan
date Sat Sep 17 10:33:50 2005 +0100 (2005-09-17)
parents 4507382c88e5
children 10d2067f6016
files tools/python/xen/sv/Wizard.py
line diff
     1.1 --- a/tools/python/xen/sv/Wizard.py	Sat Sep 17 10:29:33 2005 +0100
     1.2 +++ b/tools/python/xen/sv/Wizard.py	Sat Sep 17 10:33:50 2005 +0100
     1.3 @@ -47,7 +47,7 @@ class Sheet( HTMLBase ):
     1.4      def __init__( self, urlWriter, title, location ):
     1.5          HTMLBase.__init__( self )
     1.6          self.urlWriter = urlWriter
     1.7 -        self.feilds = []
     1.8 +        self.fields = []
     1.9          self.title = title
    1.10          self.location = location
    1.11          self.passback = None
    1.12 @@ -86,9 +86,9 @@ class Sheet( HTMLBase ):
    1.13          
    1.14          request.write( "<table width='100%' cellpadding='0' cellspacing='1' border='0'>" )
    1.15          
    1.16 -    	for (feild, control) in self.feilds:
    1.17 -            control.write_Control( request, previous_values.get( feild ) )
    1.18 -            if previous_values.get( feild ) is not None and not control.validate( previous_values.get( feild ) ):
    1.19 +    	for (field, control) in self.fields:
    1.20 +            control.write_Control( request, previous_values.get( field ) )
    1.21 +            if previous_values.get( field ) is not None and not control.validate( previous_values.get( field ) ):
    1.22              	control.write_Help( request )
    1.23              
    1.24          request.write( "</table>" )
    1.25 @@ -97,7 +97,7 @@ class Sheet( HTMLBase ):
    1.26          #request.write( "<input type='hidden' name='visited-sheet%s' value='True'></p>" % self.location )
    1.27                  
    1.28      def addControl( self, control ):
    1.29 -    	self.feilds.append( [ control.getName(), control ] )
    1.30 +    	self.fields.append( [ control.getName(), control ] )
    1.31          
    1.32      def validate( self, request ):
    1.33      
    1.34 @@ -108,10 +108,10 @@ class Sheet( HTMLBase ):
    1.35          previous_values = ssxp2hash( string2sxp( self.passback ) ) #get the map for quick reference
    1.36      	if DEBUG: print previous_values
    1.37        
    1.38 -      	for (feild, control) in self.feilds:
    1.39 -            if not control.validate( previous_values.get( feild ) ):
    1.40 +      	for (field, control) in self.fields:
    1.41 +            if not control.validate( previous_values.get( field ) ):
    1.42                  check = False
    1.43 -                if DEBUG: print "> %s = %s" % (feild, previous_values.get( feild ))
    1.44 +                if DEBUG: print "> %s = %s" % (field, previous_values.get( field ))
    1.45  
    1.46          return check
    1.47          
    1.48 @@ -143,7 +143,7 @@ class SheetControl( HTMLBase ):
    1.49          
    1.50  class InputControl( SheetControl ):
    1.51  
    1.52 -    def __init__( self, name, defaultValue, humanText,  reg_exp = ".*", help_text = "You must enter the appropriate details in this feild." ):
    1.53 +    def __init__( self, name, defaultValue, humanText,  reg_exp = ".*", help_text = "You must enter the appropriate details in this field." ):
    1.54          SheetControl.__init__( self, reg_exp )
    1.55          self.setName( name )
    1.56          
    1.57 @@ -206,7 +206,7 @@ class ListControl( SheetControl ):
    1.58          
    1.59  class FileControl( InputControl ):
    1.60  
    1.61 -    def __init__( self, name, defaultValue, humanText,  reg_exp = ".*", help_text = "You must enter the appropriate details in this feild." ):
    1.62 +    def __init__( self, name, defaultValue, humanText,  reg_exp = ".*", help_text = "You must enter the appropriate details in this field." ):
    1.63  	InputControl.__init__( self, name, defaultValue, humanText )
    1.64          
    1.65      def validate( self, persistedValue ):