Last change
on this file since 11102 was
3690,
checked in by Henrik Bettermann, 16 years ago
|
Move all customized skins into trunk. The waeup_custom skin together with the default profile is the BASE configuration which is identical to the Uniben set-up.
|
File size:
412 bytes
|
Rev | Line | |
---|
[3690] | 1 | ##parameters=key=None |
---|
| 2 | # $Id: getCosCombinedVoc.py 2814 2007-11-28 12:26:51Z henrik $ |
---|
| 3 | """ |
---|
| 4 | Return the combined courses as an vocabulary |
---|
| 5 | |
---|
| 6 | """ |
---|
| 7 | if key is None: |
---|
| 8 | l = [] |
---|
| 9 | for k,v in context.portal_vocabularies.cos.items(): |
---|
| 10 | l += (k,v), |
---|
| 11 | return l |
---|
| 12 | for voc in (context.portal_vocabularies.cos,): |
---|
| 13 | title = voc.get(key,None) |
---|
| 14 | if title is not None: |
---|
| 15 | return title |
---|
| 16 | else: |
---|
| 17 | raise KeyError |
---|
Note: See
TracBrowser for help on using the repository browser.