Last change
on this file since 17952 was
805,
checked in by joachim, 18 years ago
|
propset Id
|
-
Property svn:keywords set to
Id
|
File size:
399 bytes
|
Line | |
---|
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 | ## |
---|
10 | # $Id: findCourseById.py 805 2006-11-09 09:38:29Z joachim $ |
---|
11 | ''' find the course''' |
---|
12 | res = context.portal_catalog({'meta_type': 'Course', |
---|
13 | 'id': cid}) |
---|
14 | if len(res) < 1: |
---|
15 | return None |
---|
16 | course = res[0].getObject().getContent() |
---|
17 | return course |
---|
Note: See
TracBrowser for help on using the repository browser.