Changeset 1434 for WAeUP_SRP/trunk/skins/waeup_academics
- Timestamp:
- 18 Feb 2007, 08:58:35 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_academics/getCoursesCertificatesInfo.py
r913 r1434 24 24 cp = brain.getPath() 25 25 info['container_path'] = cp 26 res = context.portal_catalog(container_path="%s/courses" % cp)27 items = []28 for r in res:29 row = {}30 ro = r.getObject()31 rd = ro.getContent()32 row['id'] = r.getId33 row['title'] = rd.Title()34 row['url'] = ro.absolute_url()35 items.append(row)36 info['courses'] = items26 #res = context.portal_catalog(container_path="%s/courses" % cp) 27 #items = [] 28 #for r in res: 29 # row = {} 30 # ro = r.getObject() 31 # rd = ro.getContent() 32 # row['id'] = r.getId 33 # row['title'] = rd.Title() 34 # row['url'] = ro.absolute_url() 35 # items.append(row) 36 #info['courses'] = items 37 37 res = context.portal_catalog(container_path="%s/certificates" % cp) 38 38 items = [] … … 47 47 info['certificates'] = items 48 48 return info 49
Note: See TracChangeset for help on using the changeset viewer.