(self, key, default=None)
Reads comma-separated list from key.
Reads comma-separated list from key.
Reads comma - separated list from key .
def getlist(self, key, default=None):
        """Reads comma-separated list from key."""
        try:
            s = self.cf.get(self.main_section, key).strip()
            res = []
            if not s:
                return res
            for v in s.split(","):
                res.append(v.strip())
            return res
        except ConfigParser.NoOptionError:
            if default == None:
                raise Exception("Config value not set: " + key)
            return default
def getlist ( self , key , default = None ) : try : s = self . cf . get ( self . main_section , key ) . strip ( ) res = [ ] if not s : return res for v in s . split ( "," ) : res . append ( v . strip ( ) ) return res except ConfigParser . NoOptionError : if default == None : raise Exception ( "Config value not set: " + key ) return default