Changeset 2273 for WAeUP_SRP/base/skins/waeup_academics
- Timestamp:
- 25 Sep 2007, 09:24:06 (17 years ago)
- Location:
- WAeUP_SRP/base/skins/waeup_academics
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_academics/getCertificatesInfo.py
r913 r2273 37 37 for r in res: 38 38 row = {} 39 ro = r.getObject() 40 rd = ro.getContent() 41 row['id'] = r.getId 42 row['title'] = rd.Title() 43 row['url'] = ro.absolute_url() 44 row['review_state'] = wf.getInfoFor(ro,'review_state','None') 45 row['is_editable'] = mtool.checkPermission('Modify portal content', ro) 46 items.append(row) 39 try: 40 ro = r.getObject() 41 rd = ro.getContent() 42 row['id'] = r.getId 43 row['title'] = rd.Title() 44 row['url'] = ro.absolute_url() 45 row['review_state'] = wf.getInfoFor(ro,'review_state','None') 46 row['is_editable'] = mtool.checkPermission('Modify portal content', ro) 47 items.append(row) 48 except AttributeError: 49 continue 47 50 info['items'] = items 48 51 return info -
WAeUP_SRP/base/skins/waeup_academics/getCoursesCertificatesInfo.py
r1434 r2273 39 39 for r in res: 40 40 row = {} 41 ro = r.getObject() 42 rd = ro.getContent() 43 row['id'] = r.getId 44 row['title'] = rd.Title() 45 row['url'] = ro.absolute_url() 46 items.append(row) 41 try: 42 ro = r.getObject() 43 rd = ro.getContent() 44 row['id'] = r.getId 45 row['title'] = rd.Title() 46 row['url'] = ro.absolute_url() 47 items.append(row) 48 except AttributeError: 49 continue 47 50 info['certificates'] = items 48 51 return info -
WAeUP_SRP/base/skins/waeup_academics/getDepartmentsInfo.py
r913 r2273 32 32 for r in res: 33 33 row = {} 34 ro = r.getObject() 35 rd = ro.getContent() 36 row['id'] = r.getId 37 row['title'] = rd.LongTitle() 38 row['url'] = ro.absolute_url() 39 row['is_editable'] = mtool.checkPermission('Modify portal content', ro) 40 items.append(row) 34 try: 35 ro = r.getObject() 36 rd = ro.getContent() 37 row['id'] = r.getId 38 row['title'] = rd.LongTitle() 39 row['url'] = ro.absolute_url() 40 row['is_editable'] = mtool.checkPermission('Modify portal content', ro) 41 items.append(row) 42 except AttributeError: 43 continue 44 41 45 info['items'] = items 42 46 return info -
WAeUP_SRP/base/skins/waeup_academics/getFacultiesInfo.py
r2028 r2273 33 33 for f in facs: 34 34 row = {} 35 fo = f.getObject() 36 fd = fo.getContent() 37 row['id'] = fo.getId() 38 row['title'] = fd.LongTitle() 39 row['url'] = fo.absolute_url() 40 row['is_editable'] = mtool.checkPermission('Modify portal content', fo) 41 items.append(row) 35 try: 36 fo = f.getObject() 37 fd = fo.getContent() 38 row['id'] = fo.getId() 39 row['title'] = fd.LongTitle() 40 row['url'] = fo.absolute_url() 41 row['is_editable'] = mtool.checkPermission('Modify portal content', fo) 42 items.append(row) 43 except AttributeError: 44 continue 45 42 46 items.sort(cmp_id) 43 47 info['items'] = items
Note: See TracChangeset for help on using the changeset viewer.