source: WAeUP_SRP/trunk/skins/waeup_default/getCosCombinedVoc.py @ 11154

Last change on this file since 11154 was 3709, checked in by Henrik Bettermann, 16 years ago
  • implement uniben skins, use waeup_custom skin only for default
File size: 596 bytes
Line 
1##parameters=key=None
2# $Id: getCosCombinedVoc.py 2814 2007-11-28 12:26:51Z henrik $
3"""
4Return the combined courses as an vocabulary
5
6"""
7if key is None:
8    l = []
9    for k,v in context.portal_vocabularies.cos.items():
10        l += (k,v),
11    for k,v in context.portal_vocabularies.cos_cest.items():
12        if k:
13            l += (k,v),
14    return l
15for voc in (context.portal_vocabularies.cos,
16            context.portal_vocabularies.cos_cest,
17            context.portal_vocabularies.cos_sandwich):
18    title = voc.get(key,None)
19    if title is not None:
20        return title
21raise KeyError
Note: See TracBrowser for help on using the repository browser.