Last change
on this file since 771 was
731,
checked in by joachim, 18 years ago
|
add and delete for student_study_level and student_course_result
|
File size:
450 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: student_edit.py 486 2006-09-06 10:09:39Z 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.