- Timestamp:
- 19 Feb 2007, 15:13:22 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_accommodation/getAccoFolderInfo.py
r1439 r1441 22 22 info['choosen_ids'] = request.get('ids',[]) 23 23 items = [] 24 is_editable = mtool.checkPermission('Modify portal content', context) 25 is_editable = False 24 26 halls = context.portal_catalog(portal_type='AccoHall') 25 27 for f in halls: 26 28 row = {} 27 fo = f.getObject() 28 row['id'] = fo.getId() 29 row['title'] = fo.Title() 30 row['url'] = fo.absolute_url() 31 row['is_editable'] = mtool.checkPermission('Modify portal content', fo) 29 row['id'] = f.id 30 row['title'] = f.Title 31 row['url'] = f.relative_path 32 #fo = f.getObject() 33 #row['is_editable'] = mtool.checkPermission('Modify portal content', fo) 34 row['is_editable'] = is_editable 32 35 items.append(row) 33 36 info['items'] = items
Note: See TracChangeset for help on using the changeset viewer.