Changeset 566 for WAeUP_SRP/trunk/skins/waeup_academics/getCoursesInfo.py
- Timestamp:
- 27 Sep 2006, 08:52:17 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_academics/getCoursesInfo.py
r563 r566 28 28 info['choosen_ids'] = request.get('ids',[]) 29 29 info['doc'] = context.getContent() 30 brain = context.portal_catalog(meta_type="Department",id = dep_id)[-1] 30 res = context.portal_catalog(meta_type="Department",id = dep_id) 31 info['courses'] = [] 32 if not res: 33 return info 34 brain = res[-1] 31 35 cp = brain.getPath() 32 36 info['container_path'] = cp
Note: See TracChangeset for help on using the changeset viewer.