source: WAeUP_SRP/trunk/skins/waeup_academics/findCourseById.py @ 1568

Last change on this file since 1568 was 805, checked in by joachim, 18 years ago

propset Id

  • Property svn:keywords set to Id
File size: 399 bytes
RevLine 
[731]1## Script (Python) "findCourseById"
2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind subpath=traverse_subpath
7##parameters=cid
8##title=
9##
[805]10# $Id: findCourseById.py 805 2006-11-09 09:38:29Z joachim $
[731]11''' find the course'''
12res = context.portal_catalog({'meta_type': 'Course',
13                              'id': cid})
14if len(res) < 1:
15    return None
16course = res[0].getObject().getContent()
17return course
Note: See TracBrowser for help on using the repository browser.