Ignore:
Timestamp:
25/01/10 14:17:49 (11 years ago)
Author:
pjkersha
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/WSSecurity/ndg/wssecurity/common/utils/configfileparsers.py

    r6391 r6396  
    99__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    1010__revision__ = '$Id: $' 
     11import re 
    1112from ConfigParser import SafeConfigParser 
    1213 
     
    2425        ''' 
    2526        return optionstr 
     27     
     28class WithGetListConfigParser(CaseSensitiveConfigParser): 
     29    LIST_STRING_PAT = re.compile(',\s*') 
     30     
     31    def getlist(self, section, option): 
     32        val = self.get(section, option) 
     33        return WithGetListConfigParser.LIST_STRING_PAT.split(val) 
Note: See TracChangeset for help on using the changeset viewer.