## Script (Python) "findCourseById"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=cid
##title=
##
# $Id: student_edit.py 486 2006-09-06 10:09:39Z 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
