#NEWLINE# def buildAttributes( self , node , attrs , already_processed ) : #NEWLINE# #INDENT# value = find_attr_value_ ( 'gwrite' , node ) #NEWLINE# if ( already_processed is not None ) : #NEWLINE# #INDENT# if ( value in ( 'true' , '1' ) ) : #NEWLINE# #INDENT# self . gwrite = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( value in ( 'false' , '0' ) ) : #NEWLINE# #INDENT# self . gwrite = False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise_parse_error ( node , 'Bad boolean attribute' ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# value = find_attr_value_ ( 'suid' , node ) #NEWLINE# if ( value is not None ) : #NEWLINE# #INDENT# if ( value in ( 'true' , '1' ) ) : #NEWLINE# #INDENT# self . suid = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( value in ( 'false' , '0' ) ) : #NEWLINE# #INDENT# self . suid = False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise_parse_error ( node , 'Bad boolean attribute' ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# value = find_attr_value_ ( 'oexec' , node ) #NEWLINE# if ( value is not None ) : #NEWLINE# #INDENT# if ( value in ( 'true' , '1' ) ) : #NEWLINE# #INDENT# self . oexec = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( value in ( 'false' , '0' ) ) : #NEWLINE# #INDENT# self . oexec = False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise_parse_error ( node , 'Bad boolean attribute' ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# value = find_attr_value_ ( 'owrite' , node ) #NEWLINE# if ( value is not None ) : #NEWLINE# #INDENT# if ( value in ( 'true' , '1' ) ) : #NEWLINE# #INDENT# self . owrite = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( value in ( 'false' , '0' ) ) : #NEWLINE# #INDENT# self . owrite = False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise_parse_error ( node , 'Bad boolean attribute' ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# value = find_attr_value_ ( 'uwrite' , node ) #NEWLINE# if ( value is not None ) : #NEWLINE# #INDENT# if ( value in ( 'true' , '1' ) ) : #NEWLINE# #INDENT# self . uwrite = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( value in ( 'false' , '0' ) ) : #NEWLINE# #INDENT# self . uwrite = False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise_parse_error ( node , 'Bad boolean attribute' ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# value = find_attr_value_ ( 'gexec' , node ) #NEWLINE# if ( value is not None ) : #NEWLINE# #INDENT# if ( value in ( 'true' , '1' ) ) : #NEWLINE# #INDENT# self . gexec = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( value in ( 'false' , '0' ) ) : #NEWLINE# #INDENT# self . gexec = False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise_parse_error ( node , 'Bad boolean attribute' ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# value = find_attr_value_ ( 'gread' , node ) #NEWLINE# if ( value is not None ) : #NEWLINE# #INDENT# if ( value in ( 'true' , '1' ) ) : #NEWLINE# #INDENT# self . gread = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( value in ( 'false' , '0' ) ) : #NEWLINE# #INDENT# self . gread = False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise_parse_error ( node , 'Bad boolean attribute' ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# value = find_attr_value_ ( 'uexec' , node ) #NEWLINE# if ( value is not None ) : #NEWLINE# #INDENT# if ( value in ( 'true' , '1' ) ) : #NEWLINE# #INDENT# self . uexec = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( value in ( 'false' , '0' ) ) : #NEWLINE# #INDENT# self . uexec = False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise_parse_error ( node , 'Bad boolean attribute' ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# value = find_attr_value_ ( 'uread' , node ) #NEWLINE# if ( value is not None ) : #NEWLINE# #INDENT# if ( value in ( 'true' , '1' ) ) : #NEWLINE# #INDENT# self . uread = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( value in ( 'false' , '0' ) ) : #NEWLINE# #INDENT# self . uread = False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise_parse_error ( node , 'Bad boolean attribute' ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# value = find_attr_value_ ( 'sgid' , node ) #NEWLINE# if ( value is not None ) : #NEWLINE# #INDENT# if ( value in ( 'true' , '1' ) ) : #NEWLINE# #INDENT# self . sgid = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( value in ( 'false' , '0' ) ) : #NEWLINE# #INDENT# self . sgid = False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise_parse_error ( node , 'Bad boolean attribute' ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# value = find_attr_value_ ( 'oread' , node ) #NEWLINE# if ( value is not None ) : #NEWLINE# #INDENT# if ( value in ( 'true' , '1' ) ) : #NEWLINE# #INDENT# self . oread = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( value in ( 'false' , '0' ) ) : #NEWLINE# #INDENT# self . oread = False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise_parse_error ( node , 'Bad boolean attribute' ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# super ( UnixFilePermissionsType , self ) . buildAttributes ( node , attrs , already_processed )