pyramid.settings

asbool(s)[source]

Return the boolean value True if the case-lowered value of string input s is a truthy string. If s is already one of the boolean values True or False, return it.

aslist(value, flatten=True)[source]

Return a list, separating the input based on newlines. Also if flatten is True (the default), and if the line is a string, then the line will be split on spaces.