Last change
on this file since 295 was
280,
checked in by joachim, 19 years ago
|
=renamed skins/waeup_faculty to academics
|
-
Property svn:keywords set to
Id
|
File size:
307 bytes
|
Rev | Line | |
---|
[173] | 1 | ##parameters=key=None |
---|
| 2 | # $Id: get_departments_voc.py 280 2006-06-30 06:43:03Z joachim $ |
---|
| 3 | """ |
---|
| 4 | Return the faculties as an vocabulary |
---|
| 5 | |
---|
| 6 | """ |
---|
[256] | 7 | if key is None: |
---|
[265] | 8 | res = context.portal_catalog.search({'meta_type': "Department"}) |
---|
[256] | 9 | return [(d.getId,d.Title,) for d in res] |
---|
[265] | 10 | dep = context.portal_catalog.search({'meta_type': "Department", 'id': key})[-1] |
---|
| 11 | return dep.Title |
---|
Note: See
TracBrowser for help on using the repository browser.