Changeset 312
- Timestamp:
- 15 Jul 2006, 15:14:59 (19 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_academics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_academics/get_departments_voc.py
r280 r312 8 8 res = context.portal_catalog.search({'meta_type': "Department"}) 9 9 return [(d.getId,d.Title,) for d in res] 10 dep = context.portal_catalog.search({'meta_type': "Department", 'id': key})[-1] 11 return dep.Title 10 res = context.portal_catalog.search({'meta_type': "Department", 'id': key}) 11 if res: 12 return res[-1].Title 13 return "unknown Department" 14 15 return dep.Titlel -
WAeUP_SRP/trunk/skins/waeup_academics/get_faculties_voc.py
r280 r312 8 8 res = context.portal_catalog.search({'meta_type': "Faculty"}) 9 9 return [(d.getId,d.Title,) for d in res] 10 dep = context.portal_catalog.search({'meta_type': "Faculty", 'id': key})[-1] 11 return dep.Title 10 res = context.portal_catalog.search({'meta_type': "Faculty", 'id': key}) 11 if res: 12 return [-1].Title 13 return "unknown Faculty"
Note: See TracChangeset for help on using the changeset viewer.