Changeset 1441 for WAeUP_SRP/trunk/skins/waeup_accommodation
- Timestamp:
- 19 Feb 2007, 15:13:22 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_accommodation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_accommodation/acco_folder_view.pt
r1438 r1441 48 48 /> 49 49 </td> 50 <td><a href="view" tal:attributes="href string: ${row/url}">50 <td><a href="view" tal:attributes="href string:/${row/url}"> 51 51 <strong tal:content="row/title" /></a> </td> 52 52 <td tal:content="row/id"> </td> … … 54 54 <td> 55 55 <a tal:condition="row/is_editable" 56 href="edit" tal:attributes="href string: ${row/url}/external_edit_form"56 href="edit" tal:attributes="href string:/${row/url}/external_edit_form" 57 57 target="edit" 58 58 onclick="javascript:window.open('','edit','width=600, height=700, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')"> -
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.