"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Cheetah/NameMapper.py" between
cheetah3-3.2.1.tar.gz and cheetah3-3.2.2.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).

NameMapper.py  (cheetah3-3.2.1):NameMapper.py  (cheetah3-3.2.2)
skipping to change at line 224 skipping to change at line 224
nameChunks = name.split('.') nameChunks = name.split('.')
for key in nameChunks: for key in nameChunks:
if isinstance(obj, Mapping) and key in obj: if isinstance(obj, Mapping) and key in obj:
nextObj = obj[key] nextObj = obj[key]
else: else:
try: try:
nextObj = getattr(obj, key) nextObj = getattr(obj, key)
except AttributeError: except AttributeError:
_raiseNotFoundException(key, obj) _raiseNotFoundException(key, obj)
if executeCallables and hasattr(nextObj, '__call__') and \ if executeCallables and callable(nextObj) and \
not _isInstanceOrClass(nextObj): not _isInstanceOrClass(nextObj):
obj = nextObj() obj = nextObj()
else: else:
obj = nextObj obj = nextObj
return obj return obj
def _namespaces(callerFrame, searchList=None): def _namespaces(callerFrame, searchList=None):
yield callerFrame.f_locals yield callerFrame.f_locals
if searchList: if searchList:
for namespace in searchList: for namespace in searchList:
 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)