## Script (Python) "getLevelFromResultsList" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=list ##title= ## # $Id: getLevelFromResultsCosCode.py 1401 2007-02-08 18:08:38Z joachim $ lnr = 0 for e in list: try: cc = int(e.CosCode[3]) except: continue if lnr <= cc: lnr = cc return lnr