## Script (Python) "findCourseById" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=cid ##title= ## # $Id: findCourseById.py 805 2006-11-09 09:38:29Z joachim $ ''' find the course''' res = context.portal_catalog({'meta_type': 'Course', 'id': cid}) if len(res) < 1: return None course = res[0].getObject().getContent() return course