- Timestamp:
- 25 Sep 2007, 09:24:06 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset for help on using the changeset viewer.