pyramid.settings

asbool(s)[source]

Return the boolean value True if the case-lowered value of string input s is any of t, true, y, on, or 1, otherwise return the boolean value False. If s is the value None, return False. If s is already one of the boolean values True or False, return it.

aslist(value, flatten=True)[source]

Return a list of strings, separating the input based on newlines and, if flatten=True (the default), also split on spaces within each line.