"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Cheetah/SettingsManager.py" between
cheetah3-3.1.0.tar.gz and cheetah3-3.2.0.tar.gz

About: Cheetah3 is a template engine and code generation tool for e.g. for Web development or Java, SQL, LaTeX, form email ... (written in Python).

SettingsManager.py  (cheetah3-3.1.0):SettingsManager.py  (cheetah3-3.2.0)
skipping to change at line 109 skipping to change at line 109
S[k] = v S[k] = v
return S return S
def readSettingsFromPySrcStr(self, theString): def readSettingsFromPySrcStr(self, theString):
"""Return a dictionary of the settings in a Python src string.""" """Return a dictionary of the settings in a Python src string."""
globalsDict = {'True': (1 == 1), globalsDict = {'True': (1 == 1),
'False': (0 == 1), 'False': (0 == 1),
} }
newSettings = {'self': self} newSettings = {'self': self}
exec((theString+os.linesep), globalsDict, newSettings) exec((theString + os.linesep), globalsDict, newSettings)
del newSettings['self'] del newSettings['self']
module = types.ModuleType('temp_settings_module') module = types.ModuleType('temp_settings_module')
module.__dict__.update(newSettings) module.__dict__.update(newSettings)
return self.readSettingsFromModule(module) return self.readSettingsFromModule(module)
def readSettingsFromConfigFileObj(self, inFile, convert=True): def readSettingsFromConfigFileObj(self, inFile, convert=True):
"""Return the settings from a config file that uses the syntax accepted by """Return the settings from a config file that uses the syntax accepted by
Python's standard ConfigParser module (like Windows .ini files). Python's standard ConfigParser module (like Windows .ini files).
NOTE: NOTE:
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)