Logo Search packages:      
Sourcecode: rapache version File versions  Download package

def rapache-0.7.orig::RapacheCore::ApacheConf::LineParser::parse_options (   self,
  s 
)

parse a value into a list of multiple options

Definition at line 267 of file ApacheConf.py.

00267                                  :
        """parse a value into a list of multiple options"""
        if s == None or s == False: return []
        s = s.rstrip()
        s = s.replace ( '\\"', '"' )
        result = '';    
        tokens = s.split( '"' )        
        for k, v in enumerate( tokens ):
            # replace spaces in every odd token
            if ( k & 1 ) == 1 : tokens[k] = v.replace( ' ', ' ' )

        s = '"'.join( tokens )
        s = s.replace( '"', '' )
        tokens = s.split( ' ' )
        for k, v in enumerate( tokens ):
            tokens[ k ] = v.replace( ' ', ' ' )
            tokens[ k ] = tokens[ k ].replace( '"', '"' )
        tokens = [x for x in tokens if x.strip() != '' ]
        return tokens;

    def remove_option ( self, line, option ):


Generated by  Doxygen 1.6.0   Back to index